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

Side by Side Diff: src/code-stubs-hydrogen.cc

Issue 1404773002: Introduce AllocateInNewSpace stub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@begin-macro
Patch Set: Rebase Created 5 years, 2 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/code-stubs.cc ('k') | src/compiler/simplified-lowering.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 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 "src/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include "src/bailout-reason.h" 7 #include "src/bailout-reason.h"
8 #include "src/field-index.h" 8 #include "src/field-index.h"
9 #include "src/hydrogen.h" 9 #include "src/hydrogen.h"
10 #include "src/ic/ic.h" 10 #include "src/ic/ic.h"
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 AddStoreMapConstant(result, isolate()->factory()->heap_number_map()); 1133 AddStoreMapConstant(result, isolate()->factory()->heap_number_map());
1134 return result; 1134 return result;
1135 } 1135 }
1136 1136
1137 1137
1138 Handle<Code> AllocateHeapNumberStub::GenerateCode() { 1138 Handle<Code> AllocateHeapNumberStub::GenerateCode() {
1139 return DoGenerateCode(this); 1139 return DoGenerateCode(this);
1140 } 1140 }
1141 1141
1142 1142
1143 template <>
1144 HValue* CodeStubGraphBuilder<AllocateInNewSpaceStub>::BuildCodeStub() {
1145 HValue* result = Add<HAllocate>(GetParameter(0), HType::Tagged(), NOT_TENURED,
1146 JS_OBJECT_TYPE);
1147 return result;
1148 }
1149
1150
1151 Handle<Code> AllocateInNewSpaceStub::GenerateCode() {
1152 return DoGenerateCode(this);
1153 }
1154
1155
1143 HValue* CodeStubGraphBuilderBase::BuildArrayConstructor( 1156 HValue* CodeStubGraphBuilderBase::BuildArrayConstructor(
1144 ElementsKind kind, 1157 ElementsKind kind,
1145 AllocationSiteOverrideMode override_mode, 1158 AllocationSiteOverrideMode override_mode,
1146 ArgumentClass argument_class) { 1159 ArgumentClass argument_class) {
1147 HValue* constructor = GetParameter(ArrayConstructorStubBase::kConstructor); 1160 HValue* constructor = GetParameter(ArrayConstructorStubBase::kConstructor);
1148 HValue* alloc_site = GetParameter(ArrayConstructorStubBase::kAllocationSite); 1161 HValue* alloc_site = GetParameter(ArrayConstructorStubBase::kAllocationSite);
1149 JSArrayBuilder array_builder(this, kind, alloc_site, constructor, 1162 JSArrayBuilder array_builder(this, kind, alloc_site, constructor,
1150 override_mode); 1163 override_mode);
1151 HValue* result = NULL; 1164 HValue* result = NULL;
1152 switch (argument_class) { 1165 switch (argument_class) {
(...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after
2352 return Pop(); 2365 return Pop();
2353 } 2366 }
2354 2367
2355 2368
2356 Handle<Code> KeyedLoadGenericStub::GenerateCode() { 2369 Handle<Code> KeyedLoadGenericStub::GenerateCode() {
2357 return DoGenerateCode(this); 2370 return DoGenerateCode(this);
2358 } 2371 }
2359 2372
2360 } // namespace internal 2373 } // namespace internal
2361 } // namespace v8 2374 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698