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/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.h" |
6 | 6 |
7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
10 #include "src/isolate-inl.h" | 10 #include "src/isolate-inl.h" |
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 CONVERT_ARG_HANDLE_CHECKED(Object, original_constructor, 1); | 1031 CONVERT_ARG_HANDLE_CHECKED(Object, original_constructor, 1); |
1032 return Runtime_NewObjectHelper(isolate, constructor, original_constructor, | 1032 return Runtime_NewObjectHelper(isolate, constructor, original_constructor, |
1033 Handle<AllocationSite>::null()); | 1033 Handle<AllocationSite>::null()); |
1034 } | 1034 } |
1035 | 1035 |
1036 | 1036 |
1037 RUNTIME_FUNCTION(Runtime_FinalizeInstanceSize) { | 1037 RUNTIME_FUNCTION(Runtime_FinalizeInstanceSize) { |
1038 HandleScope scope(isolate); | 1038 HandleScope scope(isolate); |
1039 DCHECK(args.length() == 1); | 1039 DCHECK(args.length() == 1); |
1040 | 1040 |
1041 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); | 1041 CONVERT_ARG_HANDLE_CHECKED(Map, initial_map, 0); |
1042 function->CompleteInobjectSlackTracking(); | 1042 initial_map->CompleteInobjectSlackTracking(); |
1043 | 1043 |
1044 return isolate->heap()->undefined_value(); | 1044 return isolate->heap()->undefined_value(); |
1045 } | 1045 } |
1046 | 1046 |
1047 | 1047 |
1048 RUNTIME_FUNCTION(Runtime_GlobalProxy) { | 1048 RUNTIME_FUNCTION(Runtime_GlobalProxy) { |
1049 SealHandleScope shs(isolate); | 1049 SealHandleScope shs(isolate); |
1050 DCHECK(args.length() == 1); | 1050 DCHECK(args.length() == 1); |
1051 CONVERT_ARG_CHECKED(JSFunction, function, 0); | 1051 CONVERT_ARG_CHECKED(JSFunction, function, 0); |
1052 return function->context()->global_proxy(); | 1052 return function->context()->global_proxy(); |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1558 | 1558 |
1559 RUNTIME_FUNCTION(Runtime_ObjectDefineProperties) { | 1559 RUNTIME_FUNCTION(Runtime_ObjectDefineProperties) { |
1560 HandleScope scope(isolate); | 1560 HandleScope scope(isolate); |
1561 DCHECK(args.length() == 2); | 1561 DCHECK(args.length() == 2); |
1562 CONVERT_ARG_HANDLE_CHECKED(Object, o, 0); | 1562 CONVERT_ARG_HANDLE_CHECKED(Object, o, 0); |
1563 CONVERT_ARG_HANDLE_CHECKED(Object, properties, 1); | 1563 CONVERT_ARG_HANDLE_CHECKED(Object, properties, 1); |
1564 return JSReceiver::DefineProperties(isolate, o, properties); | 1564 return JSReceiver::DefineProperties(isolate, o, properties); |
1565 } | 1565 } |
1566 } // namespace internal | 1566 } // namespace internal |
1567 } // namespace v8 | 1567 } // namespace v8 |
OLD | NEW |