Index: test/cctest/test-disasm-ia32.cc |
diff --git a/test/cctest/test-disasm-ia32.cc b/test/cctest/test-disasm-ia32.cc |
index 7ca95f6c91901c47810ba61c6d7a17facd280612..9d9fde510259914e3bcc079f251f44f25ac33bd4 100644 |
--- a/test/cctest/test-disasm-ia32.cc |
+++ b/test/cctest/test-disasm-ia32.cc |
@@ -462,15 +462,12 @@ TEST(DisasmIa320) { |
CodeDesc desc; |
assm.GetCode(&desc); |
- Object* code = isolate->heap()->CreateCode( |
- desc, |
- Code::ComputeFlags(Code::STUB), |
- Handle<Code>())->ToObjectChecked(); |
- CHECK(code->IsCode()); |
+ Handle<Code> code = isolate->factory()->NewCode( |
+ desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef OBJECT_PRINT |
- Code::cast(code)->Print(); |
- byte* begin = Code::cast(code)->instruction_start(); |
- byte* end = begin + Code::cast(code)->instruction_size(); |
+ code->Print(); |
+ byte* begin = code->instruction_start(); |
+ byte* end = begin + code->instruction_size(); |
disasm::Disassembler::Disassemble(stdout, begin, end); |
#endif |
} |