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

Unified Diff: src/debug/debug.h

Issue 2381843002: Add Smi::Zero and replace all Smi::FromInt(0) calls (Closed)
Patch Set: Mark Smi::kZero as V8_EXPORT_PRIVATE 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 c4e8c17246903b90b805fab9c5723e270df72e46..33e4f15c5c13bb22fe6043830637281a6c29bc50 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::FromInt(0);
+ thread_local_.suspended_generator_ = Smi::kZero;
}
bool has_suspended_generator() const {
- return thread_local_.suspended_generator_ != Smi::FromInt(0);
+ return thread_local_.suspended_generator_ != Smi::kZero;
}
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