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

Unified Diff: src/debug/debug.h

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/date.cc ('k') | src/debug/liveedit.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug.h
diff --git a/src/debug/debug.h b/src/debug/debug.h
index 33e4f15c5c13bb22fe6043830637281a6c29bc50..c4e8c17246903b90b805fab9c5723e270df72e46 100644
--- a/src/debug/debug.h
+++ b/src/debug/debug.h
@@ -569,11 +569,11 @@ class Debug {
}
void clear_suspended_generator() {
- thread_local_.suspended_generator_ = Smi::kZero;
+ thread_local_.suspended_generator_ = Smi::FromInt(0);
}
bool has_suspended_generator() const {
- return thread_local_.suspended_generator_ != Smi::kZero;
+ return thread_local_.suspended_generator_ != Smi::FromInt(0);
}
void OnException(Handle<Object> exception, Handle<Object> promise);
« no previous file with comments | « src/date.cc ('k') | src/debug/liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698