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

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

Issue 1202173002: Remove --pretenuring-call-new (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix 64 bit release build break. Created 5 years, 3 months 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/runtime/runtime.h ('k') | src/type-info.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 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 RUNTIME_FUNCTION(Runtime_NewObject) { 1110 RUNTIME_FUNCTION(Runtime_NewObject) {
1111 HandleScope scope(isolate); 1111 HandleScope scope(isolate);
1112 DCHECK(args.length() == 2); 1112 DCHECK(args.length() == 2);
1113 CONVERT_ARG_HANDLE_CHECKED(Object, constructor, 0); 1113 CONVERT_ARG_HANDLE_CHECKED(Object, constructor, 0);
1114 CONVERT_ARG_HANDLE_CHECKED(Object, original_constructor, 1); 1114 CONVERT_ARG_HANDLE_CHECKED(Object, original_constructor, 1);
1115 return Runtime_NewObjectHelper(isolate, constructor, original_constructor, 1115 return Runtime_NewObjectHelper(isolate, constructor, original_constructor,
1116 Handle<AllocationSite>::null()); 1116 Handle<AllocationSite>::null());
1117 } 1117 }
1118 1118
1119 1119
1120 RUNTIME_FUNCTION(Runtime_NewObjectWithAllocationSite) {
1121 HandleScope scope(isolate);
1122 DCHECK(args.length() == 3);
1123 CONVERT_ARG_HANDLE_CHECKED(Object, original_constructor, 2);
1124 CONVERT_ARG_HANDLE_CHECKED(Object, constructor, 1);
1125 CONVERT_ARG_HANDLE_CHECKED(Object, feedback, 0);
1126 Handle<AllocationSite> site;
1127 if (feedback->IsAllocationSite()) {
1128 // The feedback can be an AllocationSite or undefined.
1129 site = Handle<AllocationSite>::cast(feedback);
1130 }
1131 return Runtime_NewObjectHelper(isolate, constructor, original_constructor,
1132 site);
1133 }
1134
1135
1136 RUNTIME_FUNCTION(Runtime_FinalizeInstanceSize) { 1120 RUNTIME_FUNCTION(Runtime_FinalizeInstanceSize) {
1137 HandleScope scope(isolate); 1121 HandleScope scope(isolate);
1138 DCHECK(args.length() == 1); 1122 DCHECK(args.length() == 1);
1139 1123
1140 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); 1124 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
1141 function->CompleteInobjectSlackTracking(); 1125 function->CompleteInobjectSlackTracking();
1142 1126
1143 return isolate->heap()->undefined_value(); 1127 return isolate->heap()->undefined_value();
1144 } 1128 }
1145 1129
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1558 RUNTIME_FUNCTION(Runtime_CreateIterResultObject) { 1542 RUNTIME_FUNCTION(Runtime_CreateIterResultObject) {
1559 HandleScope scope(isolate); 1543 HandleScope scope(isolate);
1560 DCHECK_EQ(2, args.length()); 1544 DCHECK_EQ(2, args.length());
1561 CONVERT_ARG_HANDLE_CHECKED(Object, value, 0); 1545 CONVERT_ARG_HANDLE_CHECKED(Object, value, 0);
1562 CONVERT_ARG_HANDLE_CHECKED(Object, done, 1); 1546 CONVERT_ARG_HANDLE_CHECKED(Object, done, 1);
1563 return *isolate->factory()->NewJSIteratorResult(value, done); 1547 return *isolate->factory()->NewJSIteratorResult(value, done);
1564 } 1548 }
1565 1549
1566 } // namespace internal 1550 } // namespace internal
1567 } // namespace v8 1551 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698