Changeset 37697 in webkit for trunk/JavaScriptCore/VM/Machine.cpp
- Timestamp:
- Oct 18, 2008, 10:17:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/Machine.cpp
r37691 r37697 4541 4541 JSValuePtr baseVal = ARG_src2; 4542 4542 JSValuePtr proto = ARG_src3; 4543 JSCell* valueCell = asCell(value);4544 JSCell* baseCell = asCell(baseVal);4545 JSCell* protoCell = asCell(proto);4546 4543 4547 4544 // at least one of these checks must have failed to get to the slow case 4548 ASSERT(JSImmediate::isAnyImmediate(value Cell, baseCell, protoCell)4549 || !value Cell->isObject() || !baseCell->isObject() || !protoCell->isObject()4550 || ( baseCell->structureID()->typeInfo().flags() & (ImplementsHasInstance | OverridesHasInstance)) != ImplementsHasInstance);4545 ASSERT(JSImmediate::isAnyImmediate(value, baseVal, proto) 4546 || !value->isObject() || !baseVal->isObject() || !proto->isObject() 4547 || (asObject(baseVal)->structureID()->typeInfo().flags() & (ImplementsHasInstance | OverridesHasInstance)) != ImplementsHasInstance); 4551 4548 4552 4549 if (!baseVal->isObject()) { … … 4559 4556 } 4560 4557 4561 if (! baseCell->structureID()->typeInfo().implementsHasInstance())4558 if (!asObject(baseVal)->structureID()->typeInfo().implementsHasInstance()) 4562 4559 return jsBoolean(false); 4563 4560 … … 4570 4567 return jsBoolean(false); 4571 4568 4572 JSValuePtr result = jsBoolean(asObject(base Cell)->hasInstance(callFrame, valueCell, protoCell));4569 JSValuePtr result = jsBoolean(asObject(baseVal)->hasInstance(callFrame, value, proto)); 4573 4570 VM_CHECK_EXCEPTION_AT_END(); 4574 4571 … … 4931 4928 ConstructType constructType = constrVal->getConstructData(constructData); 4932 4929 4933 JSObject* constructor = asObject(constrVal);4934 4935 4930 if (constructType == ConstructTypeHost) { 4931 JSObject* constructor = asObject(constrVal); 4932 4936 4933 if (*ARG_profilerReference) 4937 4934 (*ARG_profilerReference)->willExecute(callFrame, constructor);
Note:
See TracChangeset
for help on using the changeset viewer.