Changeset 172737 in webkit for trunk/Source/JavaScriptCore/dfg/DFGAbstractValue.cpp
- Timestamp:
- Aug 18, 2014, 5:55:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGAbstractValue.cpp
r171660 r172737 52 52 if (!!value && value.value().isCell()) { 53 53 Structure* structure = value.structure(); 54 graph. watchpoints().consider(structure);54 graph.registerStructure(structure); 55 55 m_structure = structure; 56 56 m_arrayModes = asArrayModes(structure->indexingType()); … … 64 64 65 65 checkConsistency(); 66 assertIs Watched(graph);66 assertIsRegistered(graph); 67 67 } 68 68 … … 71 71 if (!!value && value.value().isCell()) { 72 72 Structure* structure = value.structure(); 73 if (graph.watchpoints().consider(structure)) { 74 // We should be able to assume that the watchpoint for this has already been set. 75 // But we can't because our view of what structure a value has keeps changing. That's 76 // why we call consider(). 77 // https://bugs.webkit.org/show_bug.cgi?id=133426 73 // FIXME: This check may not be necessary since any frozen value should have its structure 74 // watched already. 75 // https://bugs.webkit.org/show_bug.cgi?id=136055 76 if (graph.registerStructure(structure) == StructureRegisteredAndWatched) { 78 77 m_structure = structure; 79 78 if (clobberState == StructuresAreClobbered) { … … 95 94 96 95 checkConsistency(); 97 assertIs Watched(graph);96 assertIsRegistered(graph); 98 97 } 99 98 … … 106 105 107 106 checkConsistency(); 108 assertIs Watched(graph);107 assertIsRegistered(graph); 109 108 } 110 109 … … 117 116 118 117 checkConsistency(); 119 assertIs Watched(graph);118 assertIsRegistered(graph); 120 119 } 121 120 … … 365 364 { 366 365 FiltrationResult result = normalizeClarity(); 367 assertIs Watched(graph);366 assertIsRegistered(graph); 368 367 return result; 369 368 } … … 395 394 } 396 395 397 void AbstractValue::assertIs Watched(Graph& graph) const398 { 399 m_structure.assertIs Watched(graph);396 void AbstractValue::assertIsRegistered(Graph& graph) const 397 { 398 m_structure.assertIsRegistered(graph); 400 399 } 401 400 #endif
Note:
See TracChangeset
for help on using the changeset viewer.