Changeset 201610 in webkit
- Timestamp:
- Jun 2, 2016, 12:36:59 PM (10 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
bytecode/ObjectPropertyCondition.cpp (modified) (2 diffs)
-
bytecode/ObjectPropertyCondition.h (modified) (1 diff)
-
bytecode/ObjectPropertyConditionSet.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r201609 r201610 1 2016-06-02 Keith Miller <keith_miller@apple.com> 2 3 ObjectPropertyCondition should have a isStillValidAssumingImpurePropertyWatchpoint function 4 https://bugs.webkit.org/show_bug.cgi?id=158308 5 6 Reviewed by Filip Pizlo. 7 8 Recently, structureEnsuresValidityAssumingImpurePropertyWatchpoint was converted to check 9 what should be isStillValidAssumingImpurePropertyWatchpoint. This patch fixes the API so 10 it should work as expected. This patch also changes generateConditions in 11 ObjectPropertyConditionSet to use isStillValidAssumingImpurePropertyWatchpoint. 12 13 * bytecode/ObjectPropertyCondition.cpp: 14 (JSC::ObjectPropertyCondition::structureEnsuresValidityAssumingImpurePropertyWatchpoint): 15 (JSC::ObjectPropertyCondition::isStillValidAssumingImpurePropertyWatchpoint): 16 * bytecode/ObjectPropertyCondition.h: 17 * bytecode/ObjectPropertyConditionSet.cpp: 18 1 19 2016-06-02 Filip Pizlo <fpizlo@apple.com> 2 20 -
trunk/Source/JavaScriptCore/bytecode/ObjectPropertyCondition.cpp
r201584 r201610 50 50 Structure* structure) const 51 51 { 52 return m_condition.isStillValidAssumingImpurePropertyWatchpoint(structure , m_object);52 return m_condition.isStillValidAssumingImpurePropertyWatchpoint(structure); 53 53 } 54 54 … … 73 73 return validityRequiresImpurePropertyWatchpoint(m_object->structure()); 74 74 } 75 76 bool ObjectPropertyCondition::isStillValidAssumingImpurePropertyWatchpoint(Structure* structure) const 77 { 78 return m_condition.isStillValidAssumingImpurePropertyWatchpoint(structure, m_object); 79 } 80 81 bool ObjectPropertyCondition::isStillValidAssumingImpurePropertyWatchpoint() const 82 { 83 if (!*this) 84 return false; 85 86 return isStillValidAssumingImpurePropertyWatchpoint(m_object->structure()); 87 } 88 75 89 76 90 bool ObjectPropertyCondition::isStillValid(Structure* structure) const -
trunk/Source/JavaScriptCore/bytecode/ObjectPropertyCondition.h
r196446 r201610 187 187 bool validityRequiresImpurePropertyWatchpoint() const; 188 188 189 // Checks if the condition still holds setting aside the need for an impure property watchpoint. 190 // Validity might still require watchpoints on the object. 191 bool isStillValidAssumingImpurePropertyWatchpoint(Structure*) const; 192 bool isStillValidAssumingImpurePropertyWatchpoint() const; 193 189 194 // Checks if the condition still holds. May conservatively return false, if the object and 190 195 // structure alone don't guarantee the condition. Note that this may return true if the -
trunk/Source/JavaScriptCore/bytecode/ObjectPropertyConditionSet.cpp
r201584 r201610 214 214 } 215 215 216 if (!result. structureEnsuresValidityAssumingImpurePropertyWatchpoint()) {216 if (!result.isStillValidAssumingImpurePropertyWatchpoint()) { 217 217 if (verbose) 218 218 dataLog("Failed to create condition: ", result, "\n");
Note:
See TracChangeset
for help on using the changeset viewer.