| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1227 target->GetBuffer()->backing_store() == | 1227 target->GetBuffer()->backing_store() == |
| 1228 source->GetBuffer()->backing_store()); | 1228 source->GetBuffer()->backing_store()); |
| 1229 return Smi::FromInt(TYPED_ARRAY_SET_TYPED_ARRAY_OVERLAPPING); | 1229 return Smi::FromInt(TYPED_ARRAY_SET_TYPED_ARRAY_OVERLAPPING); |
| 1230 } else { // Non-overlapping typed arrays | 1230 } else { // Non-overlapping typed arrays |
| 1231 return Smi::FromInt(TYPED_ARRAY_SET_TYPED_ARRAY_NONOVERLAPPING); | 1231 return Smi::FromInt(TYPED_ARRAY_SET_TYPED_ARRAY_NONOVERLAPPING); |
| 1232 } | 1232 } |
| 1233 } | 1233 } |
| 1234 | 1234 |
| 1235 | 1235 |
| 1236 RUNTIME_FUNCTION(MaybeObject*, Runtime_TypedArrayMaxSizeInHeap) { | 1236 RUNTIME_FUNCTION(MaybeObject*, Runtime_TypedArrayMaxSizeInHeap) { |
| 1237 ASSERT_OBJECT_SIZE(FLAG_typed_array_max_size_in_heap); | 1237 ASSERT_OBJECT_SIZE( |
| 1238 FLAG_typed_array_max_size_in_heap + FixedTypedArrayBase::kDataOffset); |
| 1238 return Smi::FromInt(FLAG_typed_array_max_size_in_heap); | 1239 return Smi::FromInt(FLAG_typed_array_max_size_in_heap); |
| 1239 } | 1240 } |
| 1240 | 1241 |
| 1241 | 1242 |
| 1242 RUNTIME_FUNCTION(MaybeObject*, Runtime_DataViewInitialize) { | 1243 RUNTIME_FUNCTION(MaybeObject*, Runtime_DataViewInitialize) { |
| 1243 HandleScope scope(isolate); | 1244 HandleScope scope(isolate); |
| 1244 ASSERT(args.length() == 4); | 1245 ASSERT(args.length() == 4); |
| 1245 CONVERT_ARG_HANDLE_CHECKED(JSDataView, holder, 0); | 1246 CONVERT_ARG_HANDLE_CHECKED(JSDataView, holder, 0); |
| 1246 CONVERT_ARG_HANDLE_CHECKED(JSArrayBuffer, buffer, 1); | 1247 CONVERT_ARG_HANDLE_CHECKED(JSArrayBuffer, buffer, 1); |
| 1247 CONVERT_ARG_HANDLE_CHECKED(Object, byte_offset, 2); | 1248 CONVERT_ARG_HANDLE_CHECKED(Object, byte_offset, 2); |
| (...skipping 13926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15174 } | 15175 } |
| 15175 } | 15176 } |
| 15176 | 15177 |
| 15177 | 15178 |
| 15178 void Runtime::OutOfMemory() { | 15179 void Runtime::OutOfMemory() { |
| 15179 Heap::FatalProcessOutOfMemory("CALL_AND_RETRY_LAST", true); | 15180 Heap::FatalProcessOutOfMemory("CALL_AND_RETRY_LAST", true); |
| 15180 UNREACHABLE(); | 15181 UNREACHABLE(); |
| 15181 } | 15182 } |
| 15182 | 15183 |
| 15183 } } // namespace v8::internal | 15184 } } // namespace v8::internal |
| OLD | NEW |