Changeset 45039 in webkit for trunk/JavaScriptCore/interpreter/Interpreter.cpp
- Timestamp:
- Jun 23, 2009, 7:47:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/interpreter/Interpreter.cpp
r44923 r45039 971 971 } 972 972 973 StructureChain* protoChain = structure->prototypeChain(callFrame); 974 if (!protoChain->isCacheable()) { 975 vPC[0] = getOpcode(op_put_by_id_generic); 976 return; 977 } 978 973 979 // Structure transition, cache transition info 974 980 if (slot.type() == PutPropertySlot::NewProperty) { … … 976 982 vPC[4] = structure->previousID(); 977 983 vPC[5] = structure; 978 vPC[6] = structure->prototypeChain(callFrame);984 vPC[6] = protoChain; 979 985 vPC[7] = slot.cachedOffset(); 980 986 codeBlock->refStructures(vPC); … … 1078 1084 } 1079 1085 1086 StructureChain* protoChain = structure->prototypeChain(callFrame); 1087 if (!protoChain->isCacheable()) { 1088 vPC[0] = getOpcode(op_put_by_id_generic); 1089 return; 1090 } 1091 1080 1092 vPC[0] = getOpcode(op_get_by_id_chain); 1081 1093 vPC[4] = structure; 1082 vPC[5] = structure->prototypeChain(callFrame);1094 vPC[5] = protoChain; 1083 1095 vPC[6] = count; 1084 1096 vPC[7] = slot.cachedOffset();
Note:
See TracChangeset
for help on using the changeset viewer.