| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 6620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6631 | 6631 |
| 6632 static const byte kFalse = 0; | 6632 static const byte kFalse = 0; |
| 6633 static const byte kTrue = 1; | 6633 static const byte kTrue = 1; |
| 6634 static const byte kNotBooleanMask = ~1; | 6634 static const byte kNotBooleanMask = ~1; |
| 6635 static const byte kTheHole = 2; | 6635 static const byte kTheHole = 2; |
| 6636 static const byte kNull = 3; | 6636 static const byte kNull = 3; |
| 6637 static const byte kArgumentMarker = 4; | 6637 static const byte kArgumentMarker = 4; |
| 6638 static const byte kUndefined = 5; | 6638 static const byte kUndefined = 5; |
| 6639 static const byte kOther = 6; | 6639 static const byte kOther = 6; |
| 6640 | 6640 |
| 6641 // The ToNumber value of a hidden oddball is a negative smi. |
| 6642 static const int kLeastHiddenOddballNumber = -5; |
| 6643 |
| 6641 typedef FixedBodyDescriptor<kToStringOffset, | 6644 typedef FixedBodyDescriptor<kToStringOffset, |
| 6642 kToNumberOffset + kPointerSize, | 6645 kToNumberOffset + kPointerSize, |
| 6643 kSize> BodyDescriptor; | 6646 kSize> BodyDescriptor; |
| 6644 | 6647 |
| 6645 private: | 6648 private: |
| 6646 DISALLOW_IMPLICIT_CONSTRUCTORS(Oddball); | 6649 DISALLOW_IMPLICIT_CONSTRUCTORS(Oddball); |
| 6647 }; | 6650 }; |
| 6648 | 6651 |
| 6649 | 6652 |
| 6650 class JSGlobalPropertyCell: public HeapObject { | 6653 class JSGlobalPropertyCell: public HeapObject { |
| (...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7490 } else { | 7493 } else { |
| 7491 value &= ~(1 << bit_position); | 7494 value &= ~(1 << bit_position); |
| 7492 } | 7495 } |
| 7493 return value; | 7496 return value; |
| 7494 } | 7497 } |
| 7495 }; | 7498 }; |
| 7496 | 7499 |
| 7497 } } // namespace v8::internal | 7500 } } // namespace v8::internal |
| 7498 | 7501 |
| 7499 #endif // V8_OBJECTS_H_ | 7502 #endif // V8_OBJECTS_H_ |
| OLD | NEW |