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

Unified Diff: test/cctest/test-code-stub-assembler.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
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/cctest/test-dictionary.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-code-stub-assembler.cc
diff --git a/test/cctest/test-code-stub-assembler.cc b/test/cctest/test-code-stub-assembler.cc
index 80bc83071df1a578b096cc7b30c3416153703e72..588f4301315af2560cb315b3b38a6c29e9f990f8 100644
--- a/test/cctest/test-code-stub-assembler.cc
+++ b/test/cctest/test-code-stub-assembler.cc
@@ -173,7 +173,7 @@ TEST(TryToName) {
{
// TryToName(<zero smi>) => if_keyisindex: smi value.
- Handle<Object> key(Smi::kZero, isolate);
+ Handle<Object> key(Smi::FromInt(0), isolate);
ft.CheckTrue(key, expect_index, key);
}
@@ -944,7 +944,7 @@ TEST(TryLookupElement) {
FunctionTester ft(code, kNumParams);
Factory* factory = isolate->factory();
- Handle<Object> smi0(Smi::kZero, isolate);
+ Handle<Object> smi0(Smi::FromInt(0), isolate);
Handle<Object> smi1(Smi::FromInt(1), isolate);
Handle<Object> smi7(Smi::FromInt(7), isolate);
Handle<Object> smi13(Smi::FromInt(13), isolate);
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/cctest/test-dictionary.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698