Changeset 222382 in webkit for trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp
- Timestamp:
- Sep 22, 2017, 3:25:58 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp
r222380 r222382 1312 1312 } 1313 1313 1314 char* JIT_OPERATION operationNewArrayWithSizeAndHint(ExecState* exec, Structure* arrayStructure, int32_t size, int32_t vectorLengthHint, Butterfly* butterfly)1315 {1316 VM& vm = exec->vm();1317 NativeCallFrameTracer tracer(&vm, exec);1318 auto scope = DECLARE_THROW_SCOPE(vm);1319 1320 if (UNLIKELY(size < 0))1321 return bitwise_cast<char*>(throwException(exec, scope, createRangeError(exec, ASCIILiteral("Array size is not a small enough positive integer."))));1322 1323 JSArray* result;1324 if (butterfly)1325 result = JSArray::createWithButterfly(vm, nullptr, arrayStructure, butterfly);1326 else {1327 result = JSArray::tryCreate(vm, arrayStructure, size, vectorLengthHint);1328 ASSERT(result);1329 }1330 return bitwise_cast<char*>(result);1331 }1332 1333 1314 char* JIT_OPERATION operationNewArrayBuffer(ExecState* exec, Structure* arrayStructure, size_t start, size_t size) 1334 1315 {
Note:
See TracChangeset
for help on using the changeset viewer.