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

Unified Diff: src/objects.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/mips64/macro-assembler-mips64.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index d3b20c35cacbf29cec9c246a138e31d448ad100c..322dccac1ae614ead5b2b2883a4693aa125c50bf 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -1510,7 +1510,6 @@ class Smi: public Object {
void SmiPrint(std::ostream& os) const; // NOLINT
DECLARE_VERIFIER(Smi)
- static Smi* const kZero;
static const int kMinValue =
(static_cast<unsigned int>(-1)) << (kSmiValueSize - 1);
static const int kMaxValue = -(kMinValue + 1);
@@ -2873,7 +2872,7 @@ class WeakFixedArray : public FixedArray {
inline int Length() const;
inline bool IsEmptySlot(int index) const;
- static Object* Empty() { return Smi::kZero; }
+ static Object* Empty() { return Smi::FromInt(0); }
class Iterator {
public:
@@ -11212,7 +11211,7 @@ class DebugInfo: public Struct {
// Get the number of break points for this function.
int GetBreakPointCount();
- static Smi* uninitialized() { return Smi::kZero; }
+ static Smi* uninitialized() { return Smi::FromInt(0); }
inline bool HasDebugBytecodeArray();
inline bool HasDebugCode();
« no previous file with comments | « src/mips64/macro-assembler-mips64.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698