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

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

Issue 1319133002: [es6] Implement spec compliant ToName (actually ToPropertyKey). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@ToPrimitive
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 | « no previous file | 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 ReplaceWithBuiltinCall(node, Context::TO_STRING_BUILTIN_INDEX, 1);
300 } 300 }
301 301
302 302
303 void JSGenericLowering::LowerJSToName(Node* node) { 303 void JSGenericLowering::LowerJSToName(Node* node) {
304 ReplaceWithBuiltinCall(node, Context::TO_NAME_BUILTIN_INDEX, 1); 304 ReplaceWithRuntimeCall(node, Runtime::kToName);
305 } 305 }
306 306
307 307
308 void JSGenericLowering::LowerJSToObject(Node* node) { 308 void JSGenericLowering::LowerJSToObject(Node* node) {
309 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); 309 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node);
310 Callable callable = CodeFactory::ToObject(isolate()); 310 Callable callable = CodeFactory::ToObject(isolate());
311 ReplaceWithStubCall(node, callable, flags); 311 ReplaceWithStubCall(node, callable, flags);
312 } 312 }
313 313
314 314
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 } 845 }
846 846
847 847
848 MachineOperatorBuilder* JSGenericLowering::machine() const { 848 MachineOperatorBuilder* JSGenericLowering::machine() const {
849 return jsgraph()->machine(); 849 return jsgraph()->machine();
850 } 850 }
851 851
852 } // namespace compiler 852 } // namespace compiler
853 } // namespace internal 853 } // namespace internal
854 } // namespace v8 854 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698