Index: test/cctest/test-assembler-x64.cc |
diff --git a/test/cctest/test-assembler-x64.cc b/test/cctest/test-assembler-x64.cc |
index d81923fa5c227d3e174b602a8f6464fdfb82311a..af06b013aa3939fdb7100c16357aa4f7f4a0054e 100644 |
--- a/test/cctest/test-assembler-x64.cc |
+++ b/test/cctest/test-assembler-x64.cc |
@@ -376,7 +376,8 @@ TEST(AssemblerMultiByteNop) { |
InitializeVM(); |
v8::HandleScope scope; |
v8::internal::byte buffer[1024]; |
- Assembler assm(Isolate::Current(), buffer, sizeof(buffer)); |
+ Isolate* isolate = Isolate::Current(); |
+ Assembler assm(isolate, buffer, sizeof(buffer)); |
__ push(rbx); |
__ push(rcx); |
__ push(rdx); |
@@ -425,11 +426,10 @@ TEST(AssemblerMultiByteNop) { |
CodeDesc desc; |
assm.GetCode(&desc); |
- Code* code = Code::cast(HEAP->CreateCode( |
+ Code* code = Code::cast(isolate->heap()->CreateCode( |
desc, |
Code::ComputeFlags(Code::STUB), |
- v8::internal::Handle<v8::internal::Object>( |
- HEAP->undefined_value()))->ToObjectChecked()); |
+ v8::internal::Handle<Code>())->ToObjectChecked()); |
CHECK(code->IsCode()); |
F0 f = FUNCTION_CAST<F0>(code->entry()); |