Changeset 196966 in webkit for trunk/Source/JavaScriptCore/runtime/JSGlobalObject.h
- Timestamp:
- Feb 22, 2016, 4:51:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSGlobalObject.h
r196950 r196966 732 732 else 733 733 structure = globalObject->arrayStructureForProfileDuringAllocation(exec, profile, newTarget); 734 if (exec->hadException()) 735 return nullptr; 734 736 735 737 return ArrayAllocationProfile::updateLastAllocationFor(profile, JSArray::create(exec->vm(), structure, initialLength)); … … 743 745 inline JSArray* constructArray(ExecState* exec, ArrayAllocationProfile* profile, JSGlobalObject* globalObject, const ArgList& values, JSValue newTarget = JSValue()) 744 746 { 745 return ArrayAllocationProfile::updateLastAllocationFor(profile, constructArray(exec, globalObject->arrayStructureForProfileDuringAllocation(exec, profile, newTarget), values)); 747 Structure* structure = globalObject->arrayStructureForProfileDuringAllocation(exec, profile, newTarget); 748 if (exec->hadException()) 749 return nullptr; 750 return ArrayAllocationProfile::updateLastAllocationFor(profile, constructArray(exec, structure, values)); 746 751 } 747 752 … … 753 758 inline JSArray* constructArray(ExecState* exec, ArrayAllocationProfile* profile, JSGlobalObject* globalObject, const JSValue* values, unsigned length, JSValue newTarget = JSValue()) 754 759 { 755 return ArrayAllocationProfile::updateLastAllocationFor(profile, constructArray(exec, globalObject->arrayStructureForProfileDuringAllocation(exec, profile, newTarget), values, length)); 760 Structure* structure = globalObject->arrayStructureForProfileDuringAllocation(exec, profile, newTarget); 761 if (exec->hadException()) 762 return nullptr; 763 return ArrayAllocationProfile::updateLastAllocationFor(profile, constructArray(exec, structure, values, length)); 756 764 } 757 765 … … 763 771 inline JSArray* constructArrayNegativeIndexed(ExecState* exec, ArrayAllocationProfile* profile, JSGlobalObject* globalObject, const JSValue* values, unsigned length, JSValue newTarget = JSValue()) 764 772 { 765 return ArrayAllocationProfile::updateLastAllocationFor(profile, constructArrayNegativeIndexed(exec, globalObject->arrayStructureForProfileDuringAllocation(exec, profile, newTarget), values, length)); 773 Structure* structure = globalObject->arrayStructureForProfileDuringAllocation(exec, profile, newTarget); 774 if (exec->hadException()) 775 return nullptr; 776 return ArrayAllocationProfile::updateLastAllocationFor(profile, constructArrayNegativeIndexed(exec, structure, values, length)); 766 777 } 767 778
Note:
See TracChangeset
for help on using the changeset viewer.