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

Unified Diff: src/accessors.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 | « no previous file | src/api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/accessors.cc
diff --git a/src/accessors.cc b/src/accessors.cc
index ca6796ef69f4a16eb32ebac45657db2e2f3677ed..da44151b3edbdd6d4b517e14936aacc83bd0b6fc 100644
--- a/src/accessors.cc
+++ b/src/accessors.cc
@@ -738,7 +738,7 @@ void Accessors::FunctionLengthGetter(
Handle<JSFunction>::cast(Utils::OpenHandle(*info.Holder()));
Handle<Object> result;
if (!JSFunction::GetLength(isolate, function).ToHandle(&result)) {
- result = handle(Smi::kZero, isolate);
+ result = handle(Smi::FromInt(0), isolate);
isolate->OptionalRescheduleException(false);
}
@@ -1072,7 +1072,7 @@ void Accessors::BoundFunctionLengthGetter(
Handle<JSFunction> target(JSFunction::cast(function->bound_target_function()),
isolate);
if (!JSFunction::GetLength(isolate, target).ToHandle(&target_length)) {
- target_length = handle(Smi::kZero, isolate);
+ target_length = handle(Smi::FromInt(0), isolate);
isolate->OptionalRescheduleException(false);
return;
}
« no previous file with comments | « no previous file | src/api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698