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

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

Issue 1319973007: [runtime] Add %ToString and %_ToString and remove the TO_STRING builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/code-stubs.h ('k') | src/compiler/linkage.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/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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 289
290 290
291 void JSGenericLowering::LowerJSToNumber(Node* node) { 291 void JSGenericLowering::LowerJSToNumber(Node* node) {
292 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); 292 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node);
293 Callable callable = CodeFactory::ToNumber(isolate()); 293 Callable callable = CodeFactory::ToNumber(isolate());
294 ReplaceWithStubCall(node, callable, flags); 294 ReplaceWithStubCall(node, callable, flags);
295 } 295 }
296 296
297 297
298 void JSGenericLowering::LowerJSToString(Node* node) { 298 void JSGenericLowering::LowerJSToString(Node* node) {
299 ReplaceWithBuiltinCall(node, Context::TO_STRING_BUILTIN_INDEX, 1); 299 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node);
300 Callable callable = CodeFactory::ToString(isolate());
301 ReplaceWithStubCall(node, callable, flags);
300 } 302 }
301 303
302 304
303 void JSGenericLowering::LowerJSToName(Node* node) { 305 void JSGenericLowering::LowerJSToName(Node* node) {
304 ReplaceWithRuntimeCall(node, Runtime::kToName); 306 ReplaceWithRuntimeCall(node, Runtime::kToName);
305 } 307 }
306 308
307 309
308 void JSGenericLowering::LowerJSToObject(Node* node) { 310 void JSGenericLowering::LowerJSToObject(Node* node) {
309 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); 311 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node);
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 } 847 }
846 848
847 849
848 MachineOperatorBuilder* JSGenericLowering::machine() const { 850 MachineOperatorBuilder* JSGenericLowering::machine() const {
849 return jsgraph()->machine(); 851 return jsgraph()->machine();
850 } 852 }
851 853
852 } // namespace compiler 854 } // namespace compiler
853 } // namespace internal 855 } // namespace internal
854 } // namespace v8 856 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698