| Index: src/compiler/x87/instruction-selector-x87.cc
|
| diff --git a/src/compiler/x87/instruction-selector-x87.cc b/src/compiler/x87/instruction-selector-x87.cc
|
| index 3c2a4b63744edfe4b5661a4694db3bdae697953e..b788b9a05842cf018d19b0e2c92d831ed96fc143 100644
|
| --- a/src/compiler/x87/instruction-selector-x87.cc
|
| +++ b/src/compiler/x87/instruction-selector-x87.cc
|
| @@ -64,11 +64,16 @@ class X87OperandGenerator final : public OperandGenerator {
|
| case IrOpcode::kRelocatableInt64Constant:
|
| return true;
|
| case IrOpcode::kHeapConstant: {
|
| +// TODO(bmeurer): We must not dereference handles concurrently. If we
|
| +// really have to this here, then we need to find a way to put this
|
| +// information on the HeapConstant node already.
|
| +#if 0
|
| // Constants in new space cannot be used as immediates in V8 because
|
| // the GC does not scan code objects when collecting the new generation.
|
| Handle<HeapObject> value = OpParameter<Handle<HeapObject>>(node);
|
| Isolate* isolate = value->GetIsolate();
|
| return !isolate->heap()->InNewSpace(*value);
|
| +#endif
|
| }
|
| default:
|
| return false;
|
|
|