Changeset 197467 in webkit for trunk/Source/JavaScriptCore/runtime/JSObject.cpp
- Timestamp:
- Mar 2, 2016, 2:39:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSObject.cpp
r197412 r197467 1172 1172 } 1173 1173 1174 void JSObject::setPrototype (VM& vm, JSValue prototype)1174 void JSObject::setPrototypeDirect(VM& vm, JSValue prototype) 1175 1175 { 1176 1176 ASSERT(prototype); … … 1198 1198 } 1199 1199 1200 bool JSObject::setPrototypeWithCycleCheck(ExecState* exec, JSValue prototype) 1201 { 1202 ASSERT(methodTable(exec->vm())->toThis(this, exec, NotStrictMode) == this); 1200 bool JSObject::setPrototypeWithCycleCheck(VM& vm, ExecState* exec, JSValue prototype) 1201 { 1202 UNUSED_PARAM(exec); 1203 ASSERT(methodTable(vm)->toThis(this, exec, NotStrictMode) == this); 1203 1204 JSValue nextPrototype = prototype; 1204 1205 while (nextPrototype && nextPrototype.isObject()) { … … 1207 1208 nextPrototype = asObject(nextPrototype)->prototype(); 1208 1209 } 1209 setPrototype (exec->vm(), prototype);1210 setPrototypeDirect(vm, prototype); 1210 1211 return true; 1212 } 1213 1214 bool JSObject::setPrototypeOf(JSObject* object, ExecState* exec, JSValue prototype) 1215 { 1216 return object->setPrototypeWithCycleCheck(exec->vm(), exec, prototype); 1211 1217 } 1212 1218
Note:
See TracChangeset
for help on using the changeset viewer.