Changeset 167336 in webkit for trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp
- Timestamp:
- Apr 15, 2014, 4:33:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp
r167036 r167336 969 969 VM& vm = exec->vm(); 970 970 NativeCallFrameTracer tracer(&vm, exec); 971 972 if (static_cast<int32_t>(left->length() + right->length()) < 0) { 973 throwOutOfMemoryError(exec); 974 return 0; 975 } 971 976 972 977 return JSRopeString::create(vm, left, right); … … 977 982 VM& vm = exec->vm(); 978 983 NativeCallFrameTracer tracer(&vm, exec); 984 985 Checked<int32_t, RecordOverflow> length = a->length(); 986 length += b->length(); 987 length += c->length(); 988 if (length.hasOverflowed()) { 989 throwOutOfMemoryError(exec); 990 return 0; 991 } 979 992 980 993 return JSRopeString::create(vm, a, b, c);
Note:
See TracChangeset
for help on using the changeset viewer.