aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/test-disasm-mips64.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/test-disasm-mips64.cc')
-rw-r--r--deps/v8/test/cctest/test-disasm-mips64.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/deps/v8/test/cctest/test-disasm-mips64.cc b/deps/v8/test/cctest/test-disasm-mips64.cc
index 1b0bdcc270..ad71c1598a 100644
--- a/deps/v8/test/cctest/test-disasm-mips64.cc
+++ b/deps/v8/test/cctest/test-disasm-mips64.cc
@@ -70,12 +70,13 @@ bool DisassembleAndCompare(byte* pc, const char* compare_string) {
// Set up V8 to a state where we can at least run the assembler and
// disassembler. Declare the variables and allocate the data structures used
// in the rest of the macros.
-#define SET_UP() \
- CcTest::InitializeVM(); \
- Isolate* isolate = CcTest::i_isolate(); \
- HandleScope scope(isolate); \
- byte* buffer = reinterpret_cast<byte*>(malloc(4 * 1024)); \
- Assembler assm(AssemblerOptions{}, buffer, 4 * 1024); \
+#define SET_UP() \
+ CcTest::InitializeVM(); \
+ Isolate* isolate = CcTest::i_isolate(); \
+ HandleScope scope(isolate); \
+ byte* buffer = reinterpret_cast<byte*>(malloc(4 * 1024)); \
+ Assembler assm(AssemblerOptions{}, \
+ ExternalAssemblerBuffer(buffer, 4 * 1024)); \
bool failure = false;
// This macro assembles one instruction using the preallocated assembler and