diff options
| author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-05-20 09:56:07 +0000 |
|---|---|---|
| committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-05-20 09:56:07 +0000 |
| commit | 41386e9cb918eed93b3f13648cbef387e371e451 (patch) | |
| tree | a97f9d7bd1d9d091833286085f72da9d83fd0606 /Source/JavaScriptCore/dfg/DFGCommonData.cpp | |
| parent | e15dd966d523731101f70ccf768bba12435a0208 (diff) | |
| download | WebKitGtk-tarball-41386e9cb918eed93b3f13648cbef387e371e451.tar.gz | |
webkitgtk-2.4.9webkitgtk-2.4.9
Diffstat (limited to 'Source/JavaScriptCore/dfg/DFGCommonData.cpp')
| -rw-r--r-- | Source/JavaScriptCore/dfg/DFGCommonData.cpp | 32 |
1 files changed, 5 insertions, 27 deletions
diff --git a/Source/JavaScriptCore/dfg/DFGCommonData.cpp b/Source/JavaScriptCore/dfg/DFGCommonData.cpp index 881d19f8c..7b7ed0e40 100644 --- a/Source/JavaScriptCore/dfg/DFGCommonData.cpp +++ b/Source/JavaScriptCore/dfg/DFGCommonData.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013, 2015 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 @@ -31,8 +31,7 @@ #include "CodeBlock.h" #include "DFGNode.h" #include "DFGPlan.h" -#include "JSCInlines.h" -#include "TrackedReferences.h" +#include "Operations.h" #include "VM.h" namespace JSC { namespace DFG { @@ -41,9 +40,9 @@ void CommonData::notifyCompilingStructureTransition(Plan& plan, CodeBlock* codeB { plan.transitions.addLazily( codeBlock, - node->origin.semantic.codeOriginOwner(), - node->transition()->previous, - node->transition()->next); + node->codeOrigin.codeOriginOwner(), + node->structureTransitionData().previousStructure, + node->structureTransitionData().newStructure); } unsigned CommonData::addCodeOrigin(CodeOrigin codeOrigin) @@ -73,27 +72,6 @@ bool CommonData::invalidate() return true; } -void CommonData::validateReferences(const TrackedReferences& trackedReferences) -{ - if (InlineCallFrameSet* set = inlineCallFrames.get()) { - for (InlineCallFrame* inlineCallFrame : *set) { - for (ValueRecovery& recovery : inlineCallFrame->arguments) { - if (recovery.isConstant()) - trackedReferences.check(recovery.constant()); - } - - if (ScriptExecutable* executable = inlineCallFrame->executable.get()) - trackedReferences.check(executable); - - if (inlineCallFrame->calleeRecovery.isConstant()) - trackedReferences.check(inlineCallFrame->calleeRecovery.constant()); - } - } - - for (AdaptiveStructureWatchpoint* watchpoint : adaptiveStructureWatchpoints) - watchpoint->key().validateReferences(trackedReferences); -} - } } // namespace JSC::DFG #endif // ENABLE(DFG_JIT) |
