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

Side by Side Diff: src/compiler/js-generic-lowering.cc

Issue 1622493002: [stubs] Introduce ToNameStub to implement %_ToName. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix BuildNumberToString type in Crankshaft. Created 4 years, 11 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.h ('k') | src/crankshaft/hydrogen.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 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/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/compiler/common-operator.h" 7 #include "src/compiler/common-operator.h"
8 #include "src/compiler/js-generic-lowering.h" 8 #include "src/compiler/js-generic-lowering.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 260
261 261
262 void JSGenericLowering::LowerJSToString(Node* node) { 262 void JSGenericLowering::LowerJSToString(Node* node) {
263 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); 263 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node);
264 Callable callable = CodeFactory::ToString(isolate()); 264 Callable callable = CodeFactory::ToString(isolate());
265 ReplaceWithStubCall(node, callable, flags); 265 ReplaceWithStubCall(node, callable, flags);
266 } 266 }
267 267
268 268
269 void JSGenericLowering::LowerJSToName(Node* node) { 269 void JSGenericLowering::LowerJSToName(Node* node) {
270 ReplaceWithRuntimeCall(node, Runtime::kToName); 270 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node);
271 Callable callable = CodeFactory::ToName(isolate());
272 ReplaceWithStubCall(node, callable, flags);
271 } 273 }
272 274
273 275
274 void JSGenericLowering::LowerJSToObject(Node* node) { 276 void JSGenericLowering::LowerJSToObject(Node* node) {
275 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); 277 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node);
276 Callable callable = CodeFactory::ToObject(isolate()); 278 Callable callable = CodeFactory::ToObject(isolate());
277 ReplaceWithStubCall(node, callable, flags); 279 ReplaceWithStubCall(node, callable, flags);
278 } 280 }
279 281
280 282
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 } 873 }
872 874
873 875
874 MachineOperatorBuilder* JSGenericLowering::machine() const { 876 MachineOperatorBuilder* JSGenericLowering::machine() const {
875 return jsgraph()->machine(); 877 return jsgraph()->machine();
876 } 878 }
877 879
878 } // namespace compiler 880 } // namespace compiler
879 } // namespace internal 881 } // namespace internal
880 } // namespace v8 882 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/crankshaft/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698