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

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

Issue 1419173007: [turbofan] Add support for transitioning stores to double fields. (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/code-stubs.cc ('k') | src/compiler/access-builder.h » ('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/crankshaft/hydrogen.h" 8 #include "src/crankshaft/hydrogen.h"
9 #include "src/crankshaft/lithium.h" 9 #include "src/crankshaft/lithium.h"
10 #include "src/field-index.h" 10 #include "src/field-index.h"
(...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 <> 1143 template <>
1144 HValue* CodeStubGraphBuilder<AllocateMutableHeapNumberStub>::BuildCodeStub() {
1145 HValue* result =
1146 Add<HAllocate>(Add<HConstant>(HeapNumber::kSize), HType::HeapObject(),
1147 NOT_TENURED, MUTABLE_HEAP_NUMBER_TYPE);
1148 AddStoreMapConstant(result, isolate()->factory()->mutable_heap_number_map());
1149 return result;
1150 }
1151
1152
1153 Handle<Code> AllocateMutableHeapNumberStub::GenerateCode() {
1154 return DoGenerateCode(this);
1155 }
1156
1157
1158 template <>
1144 HValue* CodeStubGraphBuilder<AllocateInNewSpaceStub>::BuildCodeStub() { 1159 HValue* CodeStubGraphBuilder<AllocateInNewSpaceStub>::BuildCodeStub() {
1145 HValue* result = Add<HAllocate>(GetParameter(0), HType::Tagged(), NOT_TENURED, 1160 HValue* result = Add<HAllocate>(GetParameter(0), HType::Tagged(), NOT_TENURED,
1146 JS_OBJECT_TYPE); 1161 JS_OBJECT_TYPE);
1147 return result; 1162 return result;
1148 } 1163 }
1149 1164
1150 1165
1151 Handle<Code> AllocateInNewSpaceStub::GenerateCode() { 1166 Handle<Code> AllocateInNewSpaceStub::GenerateCode() {
1152 return DoGenerateCode(this); 1167 return DoGenerateCode(this);
1153 } 1168 }
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
2364 return Pop(); 2379 return Pop();
2365 } 2380 }
2366 2381
2367 2382
2368 Handle<Code> KeyedLoadGenericStub::GenerateCode() { 2383 Handle<Code> KeyedLoadGenericStub::GenerateCode() {
2369 return DoGenerateCode(this); 2384 return DoGenerateCode(this);
2370 } 2385 }
2371 2386
2372 } // namespace internal 2387 } // namespace internal
2373 } // namespace v8 2388 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler/access-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698