Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(651)

Side by Side Diff: src/runtime/runtime-object.cc

Issue 1413003008: Support fast-path allocation for subclass constructors with correctly initialized initial maps. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/objects.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698