Index: test/cctest/test-disasm-ia32.cc |
diff --git a/test/cctest/test-disasm-ia32.cc b/test/cctest/test-disasm-ia32.cc |
index 26da5c9c81f7bb40ab7fc8ad80e797db32c4262e..cb735c78e07c90faace7a5d74f1e0a6385069bc8 100644 |
--- a/test/cctest/test-disasm-ia32.cc |
+++ b/test/cctest/test-disasm-ia32.cc |
@@ -58,7 +58,7 @@ TEST(DisasmIa320) { |
InitializeVM(); |
v8::HandleScope scope; |
v8::internal::byte buffer[2048]; |
- Assembler assm(buffer, sizeof buffer); |
+ Assembler assm(Isolate::Current(), buffer, sizeof buffer); |
DummyStaticFunction(NULL); // just bloody use it (DELETE; debugging) |
// Short immediate instructions |
@@ -107,12 +107,12 @@ TEST(DisasmIa320) { |
__ xor_(edx, 3); |
__ nop(); |
{ |
- CHECK(Isolate::Current()->cpu_features()->IsSupported(CPUID)); |
+ CHECK(CpuFeatures::IsSupported(CPUID)); |
CpuFeatures::Scope fscope(CPUID); |
__ cpuid(); |
} |
{ |
- CHECK(Isolate::Current()->cpu_features()->IsSupported(RDTSC)); |
+ CHECK(CpuFeatures::IsSupported(RDTSC)); |
CpuFeatures::Scope fscope(RDTSC); |
__ rdtsc(); |
} |
@@ -375,7 +375,7 @@ TEST(DisasmIa320) { |
__ fwait(); |
__ nop(); |
{ |
- if (Isolate::Current()->cpu_features()->IsSupported(SSE2)) { |
+ if (CpuFeatures::IsSupported(SSE2)) { |
CpuFeatures::Scope fscope(SSE2); |
__ cvttss2si(edx, Operand(ebx, ecx, times_4, 10000)); |
__ cvtsi2sd(xmm1, Operand(ebx, ecx, times_4, 10000)); |
@@ -397,7 +397,7 @@ TEST(DisasmIa320) { |
// cmov. |
{ |
- if (Isolate::Current()->cpu_features()->IsSupported(CMOV)) { |
+ if (CpuFeatures::IsSupported(CMOV)) { |
CpuFeatures::Scope use_cmov(CMOV); |
__ cmov(overflow, eax, Operand(eax, 0)); |
__ cmov(no_overflow, eax, Operand(eax, 1)); |
@@ -420,7 +420,7 @@ TEST(DisasmIa320) { |
// andpd, cmpltsd, movaps, psllq, psrlq, por. |
{ |
- if (Isolate::Current()->cpu_features()->IsSupported(SSE2)) { |
+ if (CpuFeatures::IsSupported(SSE2)) { |
CpuFeatures::Scope fscope(SSE2); |
__ andpd(xmm0, xmm1); |
__ andpd(xmm1, xmm2); |
@@ -449,7 +449,7 @@ TEST(DisasmIa320) { |
} |
{ |
- if (Isolate::Current()->cpu_features()->IsSupported(SSE4_1)) { |
+ if (CpuFeatures::IsSupported(SSE4_1)) { |
CpuFeatures::Scope scope(SSE4_1); |
__ pextrd(Operand(eax), xmm0, 1); |
__ pinsrd(xmm1, Operand(eax), 0); |