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

Unified Diff: test/cctest/test-macro-assembler-x64.cc

Issue 2396353002: Revert "Add Smi::Zero and replace all Smi::FromInt(0) calls" (Closed)
Patch Set: Created 4 years, 2 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
Index: test/cctest/test-macro-assembler-x64.cc
diff --git a/test/cctest/test-macro-assembler-x64.cc b/test/cctest/test-macro-assembler-x64.cc
index 1f6c2472885d53167593b11c71298ce8766b93c7..cfdb75d1e869f84f25b8f2270ad074c19fd593f7 100644
--- a/test/cctest/test-macro-assembler-x64.cc
+++ b/test/cctest/test-macro-assembler-x64.cc
@@ -176,7 +176,7 @@ TEST(SmiMove) {
EntryCode(masm);
Label exit;
- TestMoveSmi(masm, &exit, 1, Smi::kZero);
+ TestMoveSmi(masm, &exit, 1, Smi::FromInt(0));
TestMoveSmi(masm, &exit, 2, Smi::FromInt(127));
TestMoveSmi(masm, &exit, 3, Smi::FromInt(128));
TestMoveSmi(masm, &exit, 4, Smi::FromInt(255));
@@ -315,7 +315,7 @@ TEST(Integer32ToSmi) {
__ movq(rax, Immediate(1)); // Test number.
__ movl(rcx, Immediate(0));
__ Integer32ToSmi(rcx, rcx);
- __ Set(rdx, reinterpret_cast<intptr_t>(Smi::kZero));
+ __ Set(rdx, reinterpret_cast<intptr_t>(Smi::FromInt(0)));
__ cmpq(rcx, rdx);
__ j(not_equal, &exit);
@@ -352,7 +352,7 @@ TEST(Integer32ToSmi) {
__ movq(rax, Immediate(6)); // Test number.
__ movl(rcx, Immediate(0));
__ Integer32ToSmi(r8, rcx);
- __ Set(rdx, reinterpret_cast<intptr_t>(Smi::kZero));
+ __ Set(rdx, reinterpret_cast<intptr_t>(Smi::FromInt(0)));
__ cmpq(r8, rdx);
__ j(not_equal, &exit);
« no previous file with comments | « test/cctest/test-field-type-tracking.cc ('k') | test/unittests/interpreter/bytecode-array-builder-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698