Changeset 35368 in webkit for trunk/JavaScriptCore/VM/CodeGenerator.cpp
- Timestamp:
- Jul 25, 2008, 8:52:24 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/CodeGenerator.cpp
r35309 r35368 623 623 } 624 624 625 bool CodeGenerator::findScopedProperty(const Identifier& property, int& index, size_t& stackDepth )625 bool CodeGenerator::findScopedProperty(const Identifier& property, int& index, size_t& stackDepth, bool forWriting) 626 626 { 627 627 // Cases where we cannot optimise the lookup … … 645 645 // Found the property 646 646 if (!entry.isNull()) { 647 if (entry.isReadOnly() && forWriting) { 648 stackDepth = 0; 649 index = missingSymbolMarker(); 650 return false; 651 } 647 652 stackDepth = depth; 648 653 index = entry.getIndex(); … … 663 668 size_t depth = 0; 664 669 int index = 0; 665 if (!findScopedProperty(property, index, depth )) {670 if (!findScopedProperty(property, index, depth, false)) { 666 671 // We can't optimise at all :-( 667 672 emitOpcode(op_resolve);
Note:
See TracChangeset
for help on using the changeset viewer.