Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: runtime/vm/assembler_x64_test.cc

Issue 1268783003: Simplify constant pool usage in x64 code generator (by removing extra argument (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address comments Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/assembler_x64.cc ('k') | runtime/vm/code_patcher_x64_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_x64_test.cc
diff --git a/runtime/vm/assembler_x64_test.cc b/runtime/vm/assembler_x64_test.cc
index a10b52eeca8b1f11163cd174ad3a59a8479ac5bd..cd9960380cdb699c7e3eeb29024fbb9c7f77147a 100644
--- a/runtime/vm/assembler_x64_test.cc
+++ b/runtime/vm/assembler_x64_test.cc
@@ -2026,7 +2026,7 @@ ASSEMBLER_TEST_GENERATE(PackedDoubleNegate, assembler) {
double b;
} constant0 = { 1.0, 2.0 };
__ pushq(PP); // Save caller's pool pointer and load a new one here.
- __ LoadPoolPointer(PP);
+ __ LoadPoolPointer();
__ movq(RAX, Immediate(reinterpret_cast<uword>(&constant0)));
__ movups(XMM10, Address(RAX, 0));
__ negatepd(XMM10);
@@ -2049,7 +2049,7 @@ ASSEMBLER_TEST_GENERATE(PackedDoubleAbsolute, assembler) {
double b;
} constant0 = { -1.0, 2.0 };
__ pushq(PP); // Save caller's pool pointer and load a new one here.
- __ LoadPoolPointer(PP);
+ __ LoadPoolPointer();
__ movq(RAX, Immediate(reinterpret_cast<uword>(&constant0)));
__ movups(XMM10, Address(RAX, 0));
__ abspd(XMM10);
@@ -2496,7 +2496,7 @@ ASSEMBLER_TEST_RUN(PackedCompareNLE, test) {
ASSEMBLER_TEST_GENERATE(PackedNegate, assembler) {
__ pushq(PP); // Save caller's pool pointer and load a new one here.
- __ LoadPoolPointer(PP);
+ __ LoadPoolPointer();
__ movl(RAX, Immediate(bit_cast<int32_t, float>(12.3f)));
__ movd(XMM0, RAX);
__ shufps(XMM0, XMM0, Immediate(0x0));
@@ -2516,7 +2516,7 @@ ASSEMBLER_TEST_RUN(PackedNegate, test) {
ASSEMBLER_TEST_GENERATE(PackedAbsolute, assembler) {
__ pushq(PP); // Save caller's pool pointer and load a new one here.
- __ LoadPoolPointer(PP);
+ __ LoadPoolPointer();
__ movl(RAX, Immediate(bit_cast<int32_t, float>(-15.3f)));
__ movd(XMM0, RAX);
__ shufps(XMM0, XMM0, Immediate(0x0));
@@ -2536,7 +2536,7 @@ ASSEMBLER_TEST_RUN(PackedAbsolute, test) {
ASSEMBLER_TEST_GENERATE(PackedSetWZero, assembler) {
__ pushq(PP); // Save caller's pool pointer and load a new one here.
- __ LoadPoolPointer(PP);
+ __ LoadPoolPointer();
__ set1ps(XMM0, RAX, Immediate(bit_cast<int32_t, float>(12.3f)));
__ zerowps(XMM0);
__ shufps(XMM0, XMM0, Immediate(0xFF)); // Copy the W lane which is now 0.0.
@@ -2658,8 +2658,8 @@ ASSEMBLER_TEST_GENERATE(PackedLogicalNot, assembler) {
} constant1 =
{ 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF };
__ pushq(PP); // Save caller's pool pointer and load a new one here.
- __ LoadPoolPointer(PP);
- __ LoadImmediate(RAX, Immediate(reinterpret_cast<intptr_t>(&constant1)), PP);
+ __ LoadPoolPointer();
+ __ LoadImmediate(RAX, Immediate(reinterpret_cast<intptr_t>(&constant1)));
__ movups(XMM9, Address(RAX, 0));
__ notps(XMM9);
__ movaps(XMM0, XMM9);
@@ -3067,26 +3067,26 @@ ASSEMBLER_TEST_GENERATE(TestObjectCompare, assembler) {
Label fail;
__ EnterFrame(0);
__ pushq(PP); // Save caller's pool pointer and load a new one here.
- __ LoadPoolPointer(PP);
- __ LoadObject(RAX, obj, PP);
- __ CompareObject(RAX, obj, PP);
+ __ LoadPoolPointer();
+ __ LoadObject(RAX, obj);
+ __ CompareObject(RAX, obj);
__ j(NOT_EQUAL, &fail);
- __ LoadObject(RCX, obj, PP);
- __ CompareObject(RCX, obj, PP);
+ __ LoadObject(RCX, obj);
+ __ CompareObject(RCX, obj);
__ j(NOT_EQUAL, &fail);
const Smi& smi = Smi::ZoneHandle(Smi::New(15));
- __ LoadObject(RCX, smi, PP);
- __ CompareObject(RCX, smi, PP);
+ __ LoadObject(RCX, smi);
+ __ CompareObject(RCX, smi);
__ j(NOT_EQUAL, &fail);
__ pushq(RAX);
- __ StoreObject(Address(RSP, 0), obj, PP);
+ __ StoreObject(Address(RSP, 0), obj);
__ popq(RCX);
- __ CompareObject(RCX, obj, PP);
+ __ CompareObject(RCX, obj);
__ j(NOT_EQUAL, &fail);
__ pushq(RAX);
- __ StoreObject(Address(RSP, 0), smi, PP);
+ __ StoreObject(Address(RSP, 0), smi);
__ popq(RCX);
- __ CompareObject(RCX, smi, PP);
+ __ CompareObject(RCX, smi);
__ j(NOT_EQUAL, &fail);
__ movl(RAX, Immediate(1)); // OK
__ popq(PP); // Restore caller's pool pointer.
@@ -3307,7 +3307,7 @@ ASSEMBLER_TEST_RUN(SquareRootDouble, test) {
// Called from assembler_test.cc.
ASSEMBLER_TEST_GENERATE(StoreIntoObject, assembler) {
__ pushq(PP); // Save caller's pool pointer and load a new one here.
- __ LoadPoolPointer(PP);
+ __ LoadPoolPointer();
__ pushq(THR);
__ movq(THR, CallingConventions::kArg4Reg);
__ pushq(CTX);
@@ -3433,7 +3433,7 @@ ASSEMBLER_TEST_RUN(DoubleToDoubleTrunc, test) {
ASSEMBLER_TEST_GENERATE(DoubleAbs, assembler) {
__ pushq(PP); // Save caller's pool pointer and load a new one here.
- __ LoadPoolPointer(PP);
+ __ LoadPoolPointer();
__ DoubleAbs(XMM0);
__ popq(PP); // Restore caller's pool pointer.
__ ret();
« no previous file with comments | « runtime/vm/assembler_x64.cc ('k') | runtime/vm/code_patcher_x64_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698