OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
8 #include "src/runtime/runtime-utils.h" | 8 #include "src/runtime/runtime-utils.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1163 return ArrayConstructorCommon(isolate, constructor, | 1163 return ArrayConstructorCommon(isolate, constructor, |
1164 Handle<AllocationSite>::null(), caller_args); | 1164 Handle<AllocationSite>::null(), caller_args); |
1165 } | 1165 } |
1166 | 1166 |
1167 | 1167 |
1168 RUNTIME_FUNCTION(Runtime_NormalizeElements) { | 1168 RUNTIME_FUNCTION(Runtime_NormalizeElements) { |
1169 HandleScope scope(isolate); | 1169 HandleScope scope(isolate); |
1170 DCHECK(args.length() == 1); | 1170 DCHECK(args.length() == 1); |
1171 CONVERT_ARG_HANDLE_CHECKED(JSObject, array, 0); | 1171 CONVERT_ARG_HANDLE_CHECKED(JSObject, array, 0); |
1172 RUNTIME_ASSERT(!array->HasExternalArrayElements() && | 1172 RUNTIME_ASSERT(!array->HasExternalArrayElements() && |
1173 !array->HasFixedTypedArrayElements()); | 1173 !array->HasFixedTypedArrayElements() && |
| 1174 !array->IsJSGlobalProxy()); |
1174 JSObject::NormalizeElements(array); | 1175 JSObject::NormalizeElements(array); |
1175 return *array; | 1176 return *array; |
1176 } | 1177 } |
1177 | 1178 |
1178 | 1179 |
1179 RUNTIME_FUNCTION(Runtime_HasComplexElements) { | 1180 RUNTIME_FUNCTION(Runtime_HasComplexElements) { |
1180 HandleScope scope(isolate); | 1181 HandleScope scope(isolate); |
1181 DCHECK(args.length() == 1); | 1182 DCHECK(args.length() == 1); |
1182 CONVERT_ARG_HANDLE_CHECKED(JSObject, array, 0); | 1183 CONVERT_ARG_HANDLE_CHECKED(JSObject, array, 0); |
1183 for (PrototypeIterator iter(isolate, array, | 1184 for (PrototypeIterator iter(isolate, array, |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1308 } | 1309 } |
1309 | 1310 |
1310 | 1311 |
1311 RUNTIME_FUNCTION(RuntimeReference_FastOneByteArrayJoin) { | 1312 RUNTIME_FUNCTION(RuntimeReference_FastOneByteArrayJoin) { |
1312 SealHandleScope shs(isolate); | 1313 SealHandleScope shs(isolate); |
1313 DCHECK(args.length() == 2); | 1314 DCHECK(args.length() == 2); |
1314 return isolate->heap()->undefined_value(); | 1315 return isolate->heap()->undefined_value(); |
1315 } | 1316 } |
1316 } | 1317 } |
1317 } // namespace v8::internal | 1318 } // namespace v8::internal |
OLD | NEW |