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

Unified Diff: src/ast/ast.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 | « src/arm64/macro-assembler-arm64.cc ('k') | src/ast/scopeinfo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.cc
diff --git a/src/ast/ast.cc b/src/ast/ast.cc
index 95e84f0807b645a80b1aa2b00500711c2bd91480..9b26267b4b37005cc9c0b5db7b9dad428e7b8183 100644
--- a/src/ast/ast.cc
+++ b/src/ast/ast.cc
@@ -612,7 +612,7 @@ void ArrayLiteral::BuildConstantElements(Isolate* isolate) {
}
if (boilerplate_value->IsUninitialized(isolate)) {
- boilerplate_value = handle(Smi::kZero, isolate);
+ boilerplate_value = handle(Smi::FromInt(0), isolate);
is_simple = false;
}
« no previous file with comments | « src/arm64/macro-assembler-arm64.cc ('k') | src/ast/scopeinfo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698