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

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

Issue 1314473007: [turbofan] Remove usage of Unique<T> from graph. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased and fixed. 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/compiler/js-context-specialization.cc ('k') | src/compiler/js-graph.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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 528
529 529
530 void JSGenericLowering::LowerJSCreateLiteralObject(Node* node) { 530 void JSGenericLowering::LowerJSCreateLiteralObject(Node* node) {
531 int literal_flags = OpParameter<int>(node->op()); 531 int literal_flags = OpParameter<int>(node->op());
532 node->InsertInput(zone(), 3, jsgraph()->SmiConstant(literal_flags)); 532 node->InsertInput(zone(), 3, jsgraph()->SmiConstant(literal_flags));
533 ReplaceWithRuntimeCall(node, Runtime::kCreateObjectLiteral); 533 ReplaceWithRuntimeCall(node, Runtime::kCreateObjectLiteral);
534 } 534 }
535 535
536 536
537 void JSGenericLowering::LowerJSCreateCatchContext(Node* node) { 537 void JSGenericLowering::LowerJSCreateCatchContext(Node* node) {
538 Unique<String> name = OpParameter<Unique<String>>(node); 538 Handle<String> name = OpParameter<Handle<String>>(node);
539 node->InsertInput(zone(), 0, jsgraph()->HeapConstant(name)); 539 node->InsertInput(zone(), 0, jsgraph()->HeapConstant(name));
540 ReplaceWithRuntimeCall(node, Runtime::kPushCatchContext); 540 ReplaceWithRuntimeCall(node, Runtime::kPushCatchContext);
541 } 541 }
542 542
543 543
544 void JSGenericLowering::LowerJSCallConstruct(Node* node) { 544 void JSGenericLowering::LowerJSCallConstruct(Node* node) {
545 int arity = OpParameter<int>(node); 545 int arity = OpParameter<int>(node);
546 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); 546 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL);
547 CallInterfaceDescriptor d = stub.GetCallInterfaceDescriptor(); 547 CallInterfaceDescriptor d = stub.GetCallInterfaceDescriptor();
548 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); 548 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node);
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 } 847 }
848 848
849 849
850 MachineOperatorBuilder* JSGenericLowering::machine() const { 850 MachineOperatorBuilder* JSGenericLowering::machine() const {
851 return jsgraph()->machine(); 851 return jsgraph()->machine();
852 } 852 }
853 853
854 } // namespace compiler 854 } // namespace compiler
855 } // namespace internal 855 } // namespace internal
856 } // namespace v8 856 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-context-specialization.cc ('k') | src/compiler/js-graph.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698