Index: test/cctest/test-assembler-arm64.cc |
diff --git a/test/cctest/test-assembler-arm64.cc b/test/cctest/test-assembler-arm64.cc |
index ac6d1538b629ec5d60a7b8c5da057fe93297cf1e..74ab84626ba3291735cfd14063af3fad1daf069f 100644 |
--- a/test/cctest/test-assembler-arm64.cc |
+++ b/test/cctest/test-assembler-arm64.cc |
@@ -118,7 +118,7 @@ static void InitializeVM() { |
// Run tests with the simulator. |
#define SETUP_SIZE(buf_size) \ |
- Isolate* isolate = Isolate::Current(); \ |
+ Isolate* isolate = CcTest::i_isolate(); \ |
HandleScope scope(isolate); \ |
DCHECK(isolate != NULL); \ |
byte* buf = new byte[buf_size]; \ |
@@ -171,12 +171,12 @@ static void InitializeVM() { |
#else // ifdef USE_SIMULATOR. |
// Run the test on real hardware or models. |
-#define SETUP_SIZE(buf_size) \ |
- Isolate* isolate = Isolate::Current(); \ |
- HandleScope scope(isolate); \ |
- DCHECK(isolate != NULL); \ |
- byte* buf = new byte[buf_size]; \ |
- MacroAssembler masm(isolate, buf, buf_size); \ |
+#define SETUP_SIZE(buf_size) \ |
+ Isolate* isolate = CcTest::i_isolate(); \ |
+ HandleScope scope(isolate); \ |
+ DCHECK(isolate != NULL); \ |
+ byte* buf = new byte[buf_size]; \ |
+ MacroAssembler masm(isolate, buf, buf_size); \ |
RegisterDump core; |
#define RESET() \ |