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 7205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7216 | 7216 |
7217 static const byte kFalse = 0; | 7217 static const byte kFalse = 0; |
7218 static const byte kTrue = 1; | 7218 static const byte kTrue = 1; |
7219 static const byte kNotBooleanMask = ~1; | 7219 static const byte kNotBooleanMask = ~1; |
7220 static const byte kTheHole = 2; | 7220 static const byte kTheHole = 2; |
7221 static const byte kNull = 3; | 7221 static const byte kNull = 3; |
7222 static const byte kArgumentMarker = 4; | 7222 static const byte kArgumentMarker = 4; |
7223 static const byte kUndefined = 5; | 7223 static const byte kUndefined = 5; |
7224 static const byte kOther = 6; | 7224 static const byte kOther = 6; |
7225 | 7225 |
7226 // The ToNumber value of a hidden oddball is a negative smi. | |
7227 static const int kLeastHiddenOddballNumber = -5; | |
7228 | |
7229 typedef FixedBodyDescriptor<kToStringOffset, | 7226 typedef FixedBodyDescriptor<kToStringOffset, |
7230 kToNumberOffset + kPointerSize, | 7227 kToNumberOffset + kPointerSize, |
7231 kSize> BodyDescriptor; | 7228 kSize> BodyDescriptor; |
7232 | 7229 |
7233 private: | 7230 private: |
7234 DISALLOW_IMPLICIT_CONSTRUCTORS(Oddball); | 7231 DISALLOW_IMPLICIT_CONSTRUCTORS(Oddball); |
7235 }; | 7232 }; |
7236 | 7233 |
7237 | 7234 |
7238 class JSGlobalPropertyCell: public HeapObject { | 7235 class JSGlobalPropertyCell: public HeapObject { |
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8192 } else { | 8189 } else { |
8193 value &= ~(1 << bit_position); | 8190 value &= ~(1 << bit_position); |
8194 } | 8191 } |
8195 return value; | 8192 return value; |
8196 } | 8193 } |
8197 }; | 8194 }; |
8198 | 8195 |
8199 } } // namespace v8::internal | 8196 } } // namespace v8::internal |
8200 | 8197 |
8201 #endif // V8_OBJECTS_H_ | 8198 #endif // V8_OBJECTS_H_ |
OLD | NEW |