From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- .../bytecode/CodeBlockJettisoningWatchpoint.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'Source/JavaScriptCore/bytecode/CodeBlockJettisoningWatchpoint.cpp') diff --git a/Source/JavaScriptCore/bytecode/CodeBlockJettisoningWatchpoint.cpp b/Source/JavaScriptCore/bytecode/CodeBlockJettisoningWatchpoint.cpp index be50c9778..50cf7378d 100644 --- a/Source/JavaScriptCore/bytecode/CodeBlockJettisoningWatchpoint.cpp +++ b/Source/JavaScriptCore/bytecode/CodeBlockJettisoningWatchpoint.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013 Apple Inc. All rights reserved. + * Copyright (C) 2013-2015 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -28,18 +28,16 @@ #include "CodeBlock.h" #include "DFGCommon.h" +#include "JSCInlines.h" namespace JSC { -void CodeBlockJettisoningWatchpoint::fireInternal() +void CodeBlockJettisoningWatchpoint::fireInternal(const FireDetail& detail) { - if (DFG::shouldShowDisassembly()) + if (DFG::shouldDumpDisassembly()) dataLog("Firing watchpoint ", RawPointer(this), " on ", *m_codeBlock, "\n"); - m_codeBlock->jettison(CountReoptimization); - - if (isOnList()) - remove(); + m_codeBlock->jettison(Profiler::JettisonDueToUnprofiledWatchpoint, CountReoptimization, &detail); } } // namespace JSC -- cgit v1.2.1