OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stdlib.h> | 5 #include <stdlib.h> |
6 #include <limits> | 6 #include <limits> |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
(...skipping 15074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15085 constructor, | 15085 constructor, |
15086 Handle<AllocationSite>::null(), | 15086 Handle<AllocationSite>::null(), |
15087 caller_args); | 15087 caller_args); |
15088 } | 15088 } |
15089 | 15089 |
15090 | 15090 |
15091 RUNTIME_FUNCTION(Runtime_NormalizeElements) { | 15091 RUNTIME_FUNCTION(Runtime_NormalizeElements) { |
15092 HandleScope scope(isolate); | 15092 HandleScope scope(isolate); |
15093 ASSERT(args.length() == 1); | 15093 ASSERT(args.length() == 1); |
15094 CONVERT_ARG_HANDLE_CHECKED(JSObject, array, 0); | 15094 CONVERT_ARG_HANDLE_CHECKED(JSObject, array, 0); |
| 15095 RUNTIME_ASSERT(!array->HasExternalArrayElements() && |
| 15096 !array->HasFixedTypedArrayElements()); |
15095 JSObject::NormalizeElements(array); | 15097 JSObject::NormalizeElements(array); |
15096 return *array; | 15098 return *array; |
15097 } | 15099 } |
15098 | 15100 |
15099 | 15101 |
15100 RUNTIME_FUNCTION(Runtime_MaxSmi) { | 15102 RUNTIME_FUNCTION(Runtime_MaxSmi) { |
15101 SealHandleScope shs(isolate); | 15103 SealHandleScope shs(isolate); |
15102 ASSERT(args.length() == 0); | 15104 ASSERT(args.length() == 0); |
15103 return Smi::FromInt(Smi::kMaxValue); | 15105 return Smi::FromInt(Smi::kMaxValue); |
15104 } | 15106 } |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15583 } | 15585 } |
15584 return NULL; | 15586 return NULL; |
15585 } | 15587 } |
15586 | 15588 |
15587 | 15589 |
15588 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { | 15590 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { |
15589 return &(kIntrinsicFunctions[static_cast<int>(id)]); | 15591 return &(kIntrinsicFunctions[static_cast<int>(id)]); |
15590 } | 15592 } |
15591 | 15593 |
15592 } } // namespace v8::internal | 15594 } } // namespace v8::internal |
OLD | NEW |