Index: test/cctest/test-disasm-ia32.cc |
diff --git a/test/cctest/test-disasm-ia32.cc b/test/cctest/test-disasm-ia32.cc |
index c35ba559b2caac0bda06ee80b12f42698f842fc9..59d1e04faf063fd137426ef5761fe02abc5b76bd 100644 |
--- a/test/cctest/test-disasm-ia32.cc |
+++ b/test/cctest/test-disasm-ia32.cc |
@@ -459,10 +459,11 @@ TEST(DisasmIa320) { |
CodeDesc desc; |
assm.GetCode(&desc); |
- Object* code = HEAP->CreateCode( |
+ Isolate* isolate = Isolate::Current(); |
+ Object* code = isolate->heap()->CreateCode( |
desc, |
Code::ComputeFlags(Code::STUB), |
- Handle<Object>(HEAP->undefined_value()))->ToObjectChecked(); |
+ Handle<Code>())->ToObjectChecked(); |
CHECK(code->IsCode()); |
#ifdef OBJECT_PRINT |
Code::cast(code)->Print(); |