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

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

Issue 1475953002: [stubs] A new approach to TF stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Win64 build Created 5 years 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/change-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/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 GetParameter(StoreTransitionHelper::ValueIndex()); 1134 return GetParameter(StoreTransitionHelper::ValueIndex());
1135 } 1135 }
1136 1136
1137 1137
1138 Handle<Code> StoreTransitionStub::GenerateCode() { 1138 Handle<Code> StoreTransitionStub::GenerateCode() {
1139 return DoGenerateCode(this); 1139 return DoGenerateCode(this);
1140 } 1140 }
1141 1141
1142 1142
1143 template <> 1143 template <>
1144 HValue* CodeStubGraphBuilder<StringLengthStub>::BuildCodeStub() {
1145 HValue* string = BuildLoadNamedField(GetParameter(0),
1146 FieldIndex::ForInObjectOffset(JSValue::kValueOffset));
1147 return BuildLoadNamedField(string,
1148 FieldIndex::ForInObjectOffset(String::kLengthOffset));
1149 }
1150
1151
1152 Handle<Code> StringLengthStub::GenerateCode() {
1153 return DoGenerateCode(this);
1154 }
1155
1156
1157 template <>
1158 HValue* CodeStubGraphBuilder<StoreFastElementStub>::BuildCodeStub() { 1144 HValue* CodeStubGraphBuilder<StoreFastElementStub>::BuildCodeStub() {
1159 BuildUncheckedMonomorphicElementAccess( 1145 BuildUncheckedMonomorphicElementAccess(
1160 GetParameter(StoreDescriptor::kReceiverIndex), 1146 GetParameter(StoreDescriptor::kReceiverIndex),
1161 GetParameter(StoreDescriptor::kNameIndex), 1147 GetParameter(StoreDescriptor::kNameIndex),
1162 GetParameter(StoreDescriptor::kValueIndex), casted_stub()->is_js_array(), 1148 GetParameter(StoreDescriptor::kValueIndex), casted_stub()->is_js_array(),
1163 casted_stub()->elements_kind(), STORE, NEVER_RETURN_HOLE, 1149 casted_stub()->elements_kind(), STORE, NEVER_RETURN_HOLE,
1164 casted_stub()->store_mode()); 1150 casted_stub()->store_mode());
1165 1151
1166 return GetParameter(2); 1152 return GetParameter(2);
1167 } 1153 }
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after
2444 return Pop(); 2430 return Pop();
2445 } 2431 }
2446 2432
2447 2433
2448 Handle<Code> KeyedLoadGenericStub::GenerateCode() { 2434 Handle<Code> KeyedLoadGenericStub::GenerateCode() {
2449 return DoGenerateCode(this); 2435 return DoGenerateCode(this);
2450 } 2436 }
2451 2437
2452 } // namespace internal 2438 } // namespace internal
2453 } // namespace v8 2439 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler/change-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698