Chromium Code Reviews| Index: src/compiler/ia32/instruction-selector-ia32.cc |
| diff --git a/src/compiler/ia32/instruction-selector-ia32.cc b/src/compiler/ia32/instruction-selector-ia32.cc |
| index 7b6b721a376e5441ed704ecf9c9922324de9d328..ab5ea5e586b868e0a9ed405679a9c7ecb2904d24 100644 |
| --- a/src/compiler/ia32/instruction-selector-ia32.cc |
| +++ b/src/compiler/ia32/instruction-selector-ia32.cc |
| @@ -31,7 +31,8 @@ class IA32OperandGenerator FINAL : public OperandGenerator { |
| // Constants in new space cannot be used as immediates in V8 because |
| // the GC does not scan code objects when collecting the new generation. |
| Unique<HeapObject> value = OpParameter<Unique<HeapObject> >(node); |
| - return !isolate()->heap()->InNewSpace(*value.handle()); |
| + return !value.handle()->GetIsolate()->heap()->InNewSpace( |
|
Michael Starzinger
2015/01/23 14:21:10
nit: Can we pull out the Isolate into a local vari
danno
2015/01/23 14:45:20
Done.
|
| + *value.handle()); |
| } |
| default: |
| return false; |