| Index: test/cctest/test-assembler-x64.cc
|
| diff --git a/test/cctest/test-assembler-x64.cc b/test/cctest/test-assembler-x64.cc
|
| index ea70f54205da0f0be6608e663cc3781f0491ee8d..7e2115a10bd8be4dab6eeabbde128c48e73dfd7a 100644
|
| --- a/test/cctest/test-assembler-x64.cc
|
| +++ b/test/cctest/test-assembler-x64.cc
|
| @@ -35,31 +35,31 @@
|
| #include "serialize.h"
|
| #include "cctest.h"
|
|
|
| +using v8::internal::byte;
|
| +using v8::internal::OS;
|
| using v8::internal::Assembler;
|
| -using v8::internal::CodeDesc;
|
| -using v8::internal::FUNCTION_CAST;
|
| +using v8::internal::Operand;
|
| using v8::internal::Immediate;
|
| -using v8::internal::Isolate;
|
| using v8::internal::Label;
|
| -using v8::internal::OS;
|
| -using v8::internal::Operand;
|
| -using v8::internal::byte;
|
| -using v8::internal::greater;
|
| -using v8::internal::less_equal;
|
| -using v8::internal::not_equal;
|
| -using v8::internal::r13;
|
| -using v8::internal::r15;
|
| -using v8::internal::r8;
|
| -using v8::internal::r9;
|
| using v8::internal::rax;
|
| -using v8::internal::rbp;
|
| -using v8::internal::rcx;
|
| +using v8::internal::rsi;
|
| using v8::internal::rdi;
|
| +using v8::internal::rcx;
|
| using v8::internal::rdx;
|
| -using v8::internal::rsi;
|
| +using v8::internal::rbp;
|
| using v8::internal::rsp;
|
| +using v8::internal::r8;
|
| +using v8::internal::r9;
|
| +using v8::internal::r13;
|
| +using v8::internal::r15;
|
| using v8::internal::times_1;
|
|
|
| +using v8::internal::FUNCTION_CAST;
|
| +using v8::internal::CodeDesc;
|
| +using v8::internal::less_equal;
|
| +using v8::internal::not_equal;
|
| +using v8::internal::greater;
|
| +
|
| // Test the x64 assembler by compiling some simple functions into
|
| // a buffer and executing them. These tests do not initialize the
|
| // V8 library, create a context, or use any V8 objects.
|
| @@ -93,7 +93,7 @@ TEST(AssemblerX64ReturnOperation) {
|
| &actual_size,
|
| true));
|
| CHECK(buffer);
|
| - Assembler assm(Isolate::Current(), buffer, static_cast<int>(actual_size));
|
| + Assembler assm(buffer, static_cast<int>(actual_size));
|
|
|
| // Assemble a simple function that copies argument 2 and returns it.
|
| __ movq(rax, arg2);
|
| @@ -115,7 +115,7 @@ TEST(AssemblerX64StackOperations) {
|
| &actual_size,
|
| true));
|
| CHECK(buffer);
|
| - Assembler assm(Isolate::Current(), buffer, static_cast<int>(actual_size));
|
| + Assembler assm(buffer, static_cast<int>(actual_size));
|
|
|
| // Assemble a simple function that copies argument 2 and returns it.
|
| // We compile without stack frame pointers, so the gdb debugger shows
|
| @@ -147,7 +147,7 @@ TEST(AssemblerX64ArithmeticOperations) {
|
| &actual_size,
|
| true));
|
| CHECK(buffer);
|
| - Assembler assm(Isolate::Current(), buffer, static_cast<int>(actual_size));
|
| + Assembler assm(buffer, static_cast<int>(actual_size));
|
|
|
| // Assemble a simple function that adds arguments returning the sum.
|
| __ movq(rax, arg2);
|
| @@ -169,7 +169,7 @@ TEST(AssemblerX64ImulOperation) {
|
| &actual_size,
|
| true));
|
| CHECK(buffer);
|
| - Assembler assm(Isolate::Current(), buffer, static_cast<int>(actual_size));
|
| + Assembler assm(buffer, static_cast<int>(actual_size));
|
|
|
| // Assemble a simple function that multiplies arguments returning the high
|
| // word.
|
| @@ -197,7 +197,7 @@ TEST(AssemblerX64MemoryOperands) {
|
| &actual_size,
|
| true));
|
| CHECK(buffer);
|
| - Assembler assm(Isolate::Current(), buffer, static_cast<int>(actual_size));
|
| + Assembler assm(buffer, static_cast<int>(actual_size));
|
|
|
| // Assemble a simple function that copies argument 2 and returns it.
|
| __ push(rbp);
|
| @@ -231,7 +231,7 @@ TEST(AssemblerX64ControlFlow) {
|
| &actual_size,
|
| true));
|
| CHECK(buffer);
|
| - Assembler assm(Isolate::Current(), buffer, static_cast<int>(actual_size));
|
| + Assembler assm(buffer, static_cast<int>(actual_size));
|
|
|
| // Assemble a simple function that copies argument 1 and returns it.
|
| __ push(rbp);
|
| @@ -260,7 +260,7 @@ TEST(AssemblerX64LoopImmediates) {
|
| &actual_size,
|
| true));
|
| CHECK(buffer);
|
| - Assembler assm(Isolate::Current(), buffer, static_cast<int>(actual_size));
|
| + Assembler assm(buffer, static_cast<int>(actual_size));
|
| // Assemble two loops using rax as counter, and verify the ending counts.
|
| Label Fail;
|
| __ movq(rax, Immediate(-3));
|
|
|