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

Unified Diff: src/compiler/instruction-selector-impl.h

Issue 552653003: [turbofan] Fix the node matchers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address nit. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/js-context-specialization.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/instruction-selector-impl.h
diff --git a/src/compiler/instruction-selector-impl.h b/src/compiler/instruction-selector-impl.h
index 2a96ba08a7edc158c4d9fdebbd46cd33547a1cb1..6f3a6df19737df71df9bd683c638b9173cbe931a 100644
--- a/src/compiler/instruction-selector-impl.h
+++ b/src/compiler/instruction-selector-impl.h
@@ -143,16 +143,16 @@ class OperandGenerator {
static Constant ToConstant(const Node* node) {
switch (node->opcode()) {
case IrOpcode::kInt32Constant:
- return Constant(ValueOf<int32_t>(node->op()));
+ return Constant(OpParameter<int32_t>(node));
case IrOpcode::kInt64Constant:
- return Constant(ValueOf<int64_t>(node->op()));
+ return Constant(OpParameter<int64_t>(node));
case IrOpcode::kNumberConstant:
case IrOpcode::kFloat64Constant:
- return Constant(ValueOf<double>(node->op()));
+ return Constant(OpParameter<double>(node));
case IrOpcode::kExternalConstant:
- return Constant(ValueOf<ExternalReference>(node->op()));
+ return Constant(OpParameter<ExternalReference>(node));
case IrOpcode::kHeapConstant:
- return Constant(ValueOf<Handle<HeapObject> >(node->op()));
+ return Constant(OpParameter<Unique<HeapObject> >(node).handle());
default:
break;
}
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/js-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698