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 6560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6571 static const int kKindOffset = kToNumberOffset + kPointerSize; | 6571 static const int kKindOffset = kToNumberOffset + kPointerSize; |
6572 static const int kSize = kKindOffset + kPointerSize; | 6572 static const int kSize = kKindOffset + kPointerSize; |
6573 | 6573 |
6574 static const byte kFalse = 0; | 6574 static const byte kFalse = 0; |
6575 static const byte kTrue = 1; | 6575 static const byte kTrue = 1; |
6576 static const byte kNotBooleanMask = ~1; | 6576 static const byte kNotBooleanMask = ~1; |
6577 static const byte kTheHole = 2; | 6577 static const byte kTheHole = 2; |
6578 static const byte kNull = 3; | 6578 static const byte kNull = 3; |
6579 static const byte kArgumentMarker = 4; | 6579 static const byte kArgumentMarker = 4; |
6580 static const byte kUndefined = 5; | 6580 static const byte kUndefined = 5; |
6581 static const byte kOther = 6; | 6581 static const byte kFrameAlignmentMarker = 6; |
Kevin Millikin (Chromium)
2011/09/23 09:38:49
You never use this constant that I can see. Can y
William Hesse
2011/09/23 12:50:11
Done.
| |
6582 static const byte kOther = 7; | |
6583 | |
6584 // The ToNumber value of a hidden oddball is a negative smi. | |
6585 static const int kLeastHiddenOddballNumber = -5; | |
6582 | 6586 |
6583 typedef FixedBodyDescriptor<kToStringOffset, | 6587 typedef FixedBodyDescriptor<kToStringOffset, |
6584 kToNumberOffset + kPointerSize, | 6588 kToNumberOffset + kPointerSize, |
6585 kSize> BodyDescriptor; | 6589 kSize> BodyDescriptor; |
6586 | 6590 |
6587 private: | 6591 private: |
6588 DISALLOW_IMPLICIT_CONSTRUCTORS(Oddball); | 6592 DISALLOW_IMPLICIT_CONSTRUCTORS(Oddball); |
6589 }; | 6593 }; |
6590 | 6594 |
6591 | 6595 |
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
7403 } else { | 7407 } else { |
7404 value &= ~(1 << bit_position); | 7408 value &= ~(1 << bit_position); |
7405 } | 7409 } |
7406 return value; | 7410 return value; |
7407 } | 7411 } |
7408 }; | 7412 }; |
7409 | 7413 |
7410 } } // namespace v8::internal | 7414 } } // namespace v8::internal |
7411 | 7415 |
7412 #endif // V8_OBJECTS_H_ | 7416 #endif // V8_OBJECTS_H_ |
OLD | NEW |