diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
commit | 32761a6cee1d0dee366b885b7b9c777e67885688 (patch) | |
tree | d6bec92bebfb216f4126356e55518842c2f476a1 /Source/JavaScriptCore/dfg/DFGOSRExitPreparation.cpp | |
parent | a4e969f4965059196ca948db781e52f7cfebf19e (diff) | |
download | WebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz |
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/JavaScriptCore/dfg/DFGOSRExitPreparation.cpp')
-rw-r--r-- | Source/JavaScriptCore/dfg/DFGOSRExitPreparation.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Source/JavaScriptCore/dfg/DFGOSRExitPreparation.cpp b/Source/JavaScriptCore/dfg/DFGOSRExitPreparation.cpp index ba2a0da11..98e58a101 100644 --- a/Source/JavaScriptCore/dfg/DFGOSRExitPreparation.cpp +++ b/Source/JavaScriptCore/dfg/DFGOSRExitPreparation.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. + * Copyright (C) 2013 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -32,7 +32,7 @@ #include "Executable.h" #include "JIT.h" #include "JITCode.h" -#include "JSCInlines.h" +#include "Operations.h" namespace JSC { namespace DFG { @@ -41,14 +41,17 @@ void prepareCodeOriginForOSRExit(ExecState* exec, CodeOrigin codeOrigin) VM& vm = exec->vm(); DeferGC deferGC(vm.heap); - for (; codeOrigin.inlineCallFrame; codeOrigin = codeOrigin.inlineCallFrame->directCaller) { - CodeBlock* codeBlock = codeOrigin.inlineCallFrame->baselineCodeBlock.get(); + for (; codeOrigin.inlineCallFrame; codeOrigin = codeOrigin.inlineCallFrame->caller) { + FunctionExecutable* executable = + static_cast<FunctionExecutable*>(codeOrigin.inlineCallFrame->executable.get()); + CodeBlock* codeBlock = executable->baselineCodeBlockFor( + codeOrigin.inlineCallFrame->isCall ? CodeForCall : CodeForConstruct); + if (codeBlock->jitType() == JSC::JITCode::BaselineJIT) continue; - ASSERT(codeBlock->jitType() == JSC::JITCode::InterpreterThunk); JIT::compile(&vm, codeBlock, JITCompilationMustSucceed); - codeBlock->ownerScriptExecutable()->installCode(codeBlock); + codeBlock->install(); } } |