OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 7567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7578 | 7578 |
7579 static const byte kFalse = 0; | 7579 static const byte kFalse = 0; |
7580 static const byte kTrue = 1; | 7580 static const byte kTrue = 1; |
7581 static const byte kNotBooleanMask = ~1; | 7581 static const byte kNotBooleanMask = ~1; |
7582 static const byte kTheHole = 2; | 7582 static const byte kTheHole = 2; |
7583 static const byte kNull = 3; | 7583 static const byte kNull = 3; |
7584 static const byte kArgumentMarker = 4; | 7584 static const byte kArgumentMarker = 4; |
7585 static const byte kUndefined = 5; | 7585 static const byte kUndefined = 5; |
7586 static const byte kOther = 6; | 7586 static const byte kOther = 6; |
7587 | 7587 |
7588 // The ToNumber value of a hidden oddball is a negative smi. | |
7589 static const int kLeastHiddenOddballNumber = -5; | |
7590 | |
7591 typedef FixedBodyDescriptor<kToStringOffset, | 7588 typedef FixedBodyDescriptor<kToStringOffset, |
7592 kToNumberOffset + kPointerSize, | 7589 kToNumberOffset + kPointerSize, |
7593 kSize> BodyDescriptor; | 7590 kSize> BodyDescriptor; |
7594 | 7591 |
7595 private: | 7592 private: |
7596 DISALLOW_IMPLICIT_CONSTRUCTORS(Oddball); | 7593 DISALLOW_IMPLICIT_CONSTRUCTORS(Oddball); |
7597 }; | 7594 }; |
7598 | 7595 |
7599 | 7596 |
7600 class JSGlobalPropertyCell: public HeapObject { | 7597 class JSGlobalPropertyCell: public HeapObject { |
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8586 } else { | 8583 } else { |
8587 value &= ~(1 << bit_position); | 8584 value &= ~(1 << bit_position); |
8588 } | 8585 } |
8589 return value; | 8586 return value; |
8590 } | 8587 } |
8591 }; | 8588 }; |
8592 | 8589 |
8593 } } // namespace v8::internal | 8590 } } // namespace v8::internal |
8594 | 8591 |
8595 #endif // V8_OBJECTS_H_ | 8592 #endif // V8_OBJECTS_H_ |
OLD | NEW |