OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 JS_BUILTINS_OBJECT_TYPE, | 528 JS_BUILTINS_OBJECT_TYPE, |
529 JS_GLOBAL_PROXY_TYPE, | 529 JS_GLOBAL_PROXY_TYPE, |
530 JS_ARRAY_TYPE, | 530 JS_ARRAY_TYPE, |
531 JS_REGEXP_TYPE, | 531 JS_REGEXP_TYPE, |
532 | 532 |
533 JS_FUNCTION_TYPE, | 533 JS_FUNCTION_TYPE, |
534 | 534 |
535 // Pseudo-types | 535 // Pseudo-types |
536 FIRST_NONSTRING_TYPE = MAP_TYPE, | 536 FIRST_NONSTRING_TYPE = MAP_TYPE, |
537 FIRST_TYPE = 0x0, | 537 FIRST_TYPE = 0x0, |
| 538 INVALID_TYPE = FIRST_TYPE - 1, |
538 LAST_TYPE = JS_FUNCTION_TYPE, | 539 LAST_TYPE = JS_FUNCTION_TYPE, |
539 // Boundaries for testing the type is a JavaScript "object". Note that | 540 // Boundaries for testing the type is a JavaScript "object". Note that |
540 // function objects are not counted as objects, even though they are | 541 // function objects are not counted as objects, even though they are |
541 // implemented as such; only values whose typeof is "object" are included. | 542 // implemented as such; only values whose typeof is "object" are included. |
542 FIRST_JS_OBJECT_TYPE = JS_VALUE_TYPE, | 543 FIRST_JS_OBJECT_TYPE = JS_VALUE_TYPE, |
543 LAST_JS_OBJECT_TYPE = JS_REGEXP_TYPE | 544 LAST_JS_OBJECT_TYPE = JS_REGEXP_TYPE |
544 }; | 545 }; |
545 | 546 |
546 | 547 |
547 enum CompareResult { | 548 enum CompareResult { |
(...skipping 3546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4094 } else { | 4095 } else { |
4095 value &= ~(1 << bit_position); | 4096 value &= ~(1 << bit_position); |
4096 } | 4097 } |
4097 return value; | 4098 return value; |
4098 } | 4099 } |
4099 }; | 4100 }; |
4100 | 4101 |
4101 } } // namespace v8::internal | 4102 } } // namespace v8::internal |
4102 | 4103 |
4103 #endif // V8_OBJECTS_H_ | 4104 #endif // V8_OBJECTS_H_ |
OLD | NEW |