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

Unified Diff: src/debug/liveedit.cc

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/debug/debug.h ('k') | src/deoptimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/liveedit.cc
diff --git a/src/debug/liveedit.cc b/src/debug/liveedit.cc
index b451842f905dc6366ba7d3959c771a3c8e82341b..64bc26fa2cc0a82fb584a9931b87b5c30355bc0c 100644
--- a/src/debug/liveedit.cc
+++ b/src/debug/liveedit.cc
@@ -1426,7 +1426,7 @@ static const char* DropFrames(Vector<StackFrame*> frames, int top_frame_index,
for (Address a = unused_stack_top;
a < unused_stack_bottom;
a += kPointerSize) {
- Memory::Object_at(a) = Smi::FromInt(0);
+ Memory::Object_at(a) = Smi::kZero;
}
return NULL;
« no previous file with comments | « src/debug/debug.h ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698