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

Unified Diff: src/compiler/common-operator.h

Issue 545153002: [turbofan] Add MachineType to Phi. (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 side-by-side diff with in-line comments
Download patch
Index: src/compiler/common-operator.h
diff --git a/src/compiler/common-operator.h b/src/compiler/common-operator.h
index cc447ee8f4e0d2817234d63b339c2005719db5ed..b99606e1ac268658d7cb0197dff8da1f0d8cad43 100644
--- a/src/compiler/common-operator.h
+++ b/src/compiler/common-operator.h
@@ -5,10 +5,9 @@
#ifndef V8_COMPILER_COMMON_OPERATOR_H_
#define V8_COMPILER_COMMON_OPERATOR_H_
-#include "src/v8.h"
-
#include "src/assembler.h"
#include "src/compiler/linkage.h"
+#include "src/compiler/machine-type.h"
#include "src/compiler/opcodes.h"
#include "src/compiler/operator.h"
#include "src/unique.h"
@@ -115,8 +114,9 @@ class CommonOperatorBuilder {
1, "Parameter", index);
}
Operator* Int32Constant(int32_t value) {
- return new (zone_) Operator1<int>(IrOpcode::kInt32Constant, Operator::kPure,
- 0, 1, "Int32Constant", value);
+ return new (zone_)
+ Operator1<int32_t>(IrOpcode::kInt32Constant, Operator::kPure, 0, 1,
+ "Int32Constant", value);
}
Operator* Int64Constant(int64_t value) {
return new (zone_)
@@ -142,10 +142,10 @@ class CommonOperatorBuilder {
return new (zone_) Operator1<Unique<Object> >(
IrOpcode::kHeapConstant, Operator::kPure, 0, 1, "HeapConstant", value);
}
- Operator* Phi(int arguments) {
+ Operator* Phi(MachineType type, int arguments) {
DCHECK(arguments > 0); // Disallow empty phis.
- return new (zone_) Operator1<int>(IrOpcode::kPhi, Operator::kPure,
- arguments, 1, "Phi", arguments);
+ return new (zone_) Operator1<MachineType>(IrOpcode::kPhi, Operator::kPure,
+ arguments, 1, "Phi", type);
}
Operator* EffectPhi(int arguments) {
DCHECK(arguments > 0); // Disallow empty phis.

Powered by Google App Engine
This is Rietveld 408576698