| Index: test/cctest/test-disasm-a64.cc
|
| diff --git a/test/cctest/test-disasm-a64.cc b/test/cctest/test-disasm-a64.cc
|
| index a00730db157346749e9ca24a3de31258d4271c6a..8b0351ae37d1124cd1bda8df235fd40f835c81e1 100644
|
| --- a/test/cctest/test-disasm-a64.cc
|
| +++ b/test/cctest/test-disasm-a64.cc
|
| @@ -45,10 +45,11 @@ using namespace v8::internal;
|
| #define INSTR_SIZE (1024)
|
| #define SET_UP_CLASS(ASMCLASS) \
|
| InitializeVM(); \
|
| - v8::HandleScope scope; \
|
| + Isolate* isolate = Isolate::Current(); \
|
| + HandleScope scope(isolate); \
|
| byte* buf = static_cast<byte*>(malloc(INSTR_SIZE)); \
|
| uint32_t encoding = 0; \
|
| - ASMCLASS* assm = new ASMCLASS(Isolate::Current(), buf, INSTR_SIZE); \
|
| + ASMCLASS* assm = new ASMCLASS(isolate, buf, INSTR_SIZE); \
|
| Decoder* decoder = new Decoder(); \
|
| Disassembler* disasm = new Disassembler(); \
|
| decoder->AppendVisitor(disasm)
|
|
|