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

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

Issue 555283004: [turbofan] Next step towards shared operators. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/js-generic-lowering.h ('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-stubs.h" 5 #include "src/code-stubs.h"
6 #include "src/compiler/common-operator.h" 6 #include "src/compiler/common-operator.h"
7 #include "src/compiler/graph-inl.h" 7 #include "src/compiler/graph-inl.h"
8 #include "src/compiler/js-generic-lowering.h" 8 #include "src/compiler/js-generic-lowering.h"
9 #include "src/compiler/machine-operator.h" 9 #include "src/compiler/machine-operator.h"
10 #include "src/compiler/node-aux-data-inl.h" 10 #include "src/compiler/node-aux-data-inl.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 114
115 JSGenericLowering::JSGenericLowering(CompilationInfo* info, JSGraph* jsgraph, 115 JSGenericLowering::JSGenericLowering(CompilationInfo* info, JSGraph* jsgraph,
116 MachineOperatorBuilder* machine) 116 MachineOperatorBuilder* machine)
117 : info_(info), 117 : info_(info),
118 jsgraph_(jsgraph), 118 jsgraph_(jsgraph),
119 linkage_(new (jsgraph->zone()) Linkage(info)), 119 linkage_(new (jsgraph->zone()) Linkage(info)),
120 machine_(machine) {} 120 machine_(machine) {}
121 121
122 122
123 void JSGenericLowering::PatchOperator(Node* node, Operator* op) { 123 void JSGenericLowering::PatchOperator(Node* node, const Operator* op) {
124 node->set_op(op); 124 node->set_op(op);
125 } 125 }
126 126
127 127
128 void JSGenericLowering::PatchInsertInput(Node* node, int index, Node* input) { 128 void JSGenericLowering::PatchInsertInput(Node* node, int index, Node* input) {
129 node->InsertInput(zone(), index, input); 129 node->InsertInput(zone(), index, input);
130 } 130 }
131 131
132 132
133 Node* JSGenericLowering::SmiConstant(int32_t immediate) { 133 Node* JSGenericLowering::SmiConstant(int32_t immediate) {
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 Node* JSGenericLowering::LowerJSCallRuntime(Node* node) { 528 Node* JSGenericLowering::LowerJSCallRuntime(Node* node) {
529 Runtime::FunctionId function = OpParameter<Runtime::FunctionId>(node); 529 Runtime::FunctionId function = OpParameter<Runtime::FunctionId>(node);
530 int arity = OperatorProperties::GetValueInputCount(node->op()); 530 int arity = OperatorProperties::GetValueInputCount(node->op());
531 ReplaceWithRuntimeCall(node, function, arity); 531 ReplaceWithRuntimeCall(node, function, arity);
532 return node; 532 return node;
533 } 533 }
534 534
535 } // namespace compiler 535 } // namespace compiler
536 } // namespace internal 536 } // namespace internal
537 } // namespace v8 537 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.h ('k') | src/compiler/js-graph.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698