Index: test/cctest/test-macro-assembler-mips.cc |
diff --git a/test/cctest/test-macro-assembler-mips.cc b/test/cctest/test-macro-assembler-mips.cc |
index 3154aac596ebdb95135fc054a538e1ae57576bc3..a5045a8f01b19f21bd9119d6726c83e8462d5022 100644 |
--- a/test/cctest/test-macro-assembler-mips.cc |
+++ b/test/cctest/test-macro-assembler-mips.cc |
@@ -91,13 +91,10 @@ TEST(CopyBytes) { |
CodeDesc desc; |
masm->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>()); |
- ::F f = FUNCTION_CAST< ::F>(Code::cast(code)->entry()); |
+ ::F f = FUNCTION_CAST< ::F>(code->entry()); |
// Initialise source data with non-zero bytes. |
for (int i = 0; i < data_size; i++) { |