Changeset 172737 in webkit for trunk/Source/JavaScriptCore/dfg/DFGGraph.cpp
- Timestamp:
- Aug 18, 2014, 5:55:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGGraph.cpp
r172176 r172737 66 66 , m_machineCaptureStart(std::numeric_limits<int>::max()) 67 67 , m_fixpointState(BeforeFixpoint) 68 , m_structure WatchpointState(HaveNotStartedWatching)68 , m_structureRegistrationState(HaveNotStartedRegistering) 69 69 , m_form(LoadStore) 70 70 , m_unificationState(LocallyUnified) … … 944 944 m_codeBlock->constants().resize(0); 945 945 for (FrozenValue* value : m_frozenValues) { 946 if (value->structure() && value->structure()->dfgShouldWatch())947 m_plan.weakReferences.addLazily(value->structure());946 if (value->structure()) 947 ASSERT(m_plan.weakReferences.contains(value->structure())); 948 948 949 949 switch (value->strength()) { … … 1072 1072 { 1073 1073 if (value->structure()) 1074 assertIs Watched(value->structure());1074 assertIsRegistered(value->structure()); 1075 1075 if (m_form == ThreadedCPS) { 1076 1076 if (node->op() == GetLocal) … … 1092 1092 } 1093 1093 1094 void Graph::assertIsWatched(Structure* structure) 1095 { 1096 if (m_structureWatchpointState == HaveNotStartedWatching) 1094 StructureRegistrationResult Graph::registerStructure(Structure* structure) 1095 { 1096 m_plan.weakReferences.addLazily(structure); 1097 if (m_plan.watchpoints.consider(structure)) 1098 return StructureRegisteredAndWatched; 1099 return StructureRegisteredNormally; 1100 } 1101 1102 void Graph::assertIsRegistered(Structure* structure) 1103 { 1104 if (m_structureRegistrationState == HaveNotStartedRegistering) 1097 1105 return; 1106 1107 DFG_ASSERT(*this, nullptr, m_plan.weakReferences.contains(structure)); 1098 1108 1099 1109 if (!structure->dfgShouldWatch())
Note:
See TracChangeset
for help on using the changeset viewer.