Index: src/compiler/x64/instruction-selector-x64.cc |
diff --git a/src/compiler/x64/instruction-selector-x64.cc b/src/compiler/x64/instruction-selector-x64.cc |
index ecb99f34f4618903d1e0c77622611d274e2cfab4..e3837eeff529ad092bb5ca83c85c97ad927a4d3b 100644 |
--- a/src/compiler/x64/instruction-selector-x64.cc |
+++ b/src/compiler/x64/instruction-selector-x64.cc |
@@ -22,7 +22,9 @@ class X64OperandGenerator final : public OperandGenerator { |
bool CanBeImmediate(Node* node) { |
switch (node->opcode()) { |
case IrOpcode::kInt32Constant: |
+ case IrOpcode::kRelocatableInt32Constant: |
return true; |
+ case IrOpcode::kRelocatableInt64Constant: |
titzer
2016/03/23 20:35:36
Probably don't want this case here.
gdeepti1
2016/03/31 22:29:54
Done.
|
case IrOpcode::kInt64Constant: { |
const int64_t value = OpParameter<int64_t>(node); |
return value == static_cast<int64_t>(static_cast<int32_t>(value)); |