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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 V(FUNCTION_TEMPLATE_INFO_TYPE) \ | 271 V(FUNCTION_TEMPLATE_INFO_TYPE) \ |
272 V(OBJECT_TEMPLATE_INFO_TYPE) \ | 272 V(OBJECT_TEMPLATE_INFO_TYPE) \ |
273 V(SIGNATURE_INFO_TYPE) \ | 273 V(SIGNATURE_INFO_TYPE) \ |
274 V(TYPE_SWITCH_INFO_TYPE) \ | 274 V(TYPE_SWITCH_INFO_TYPE) \ |
275 V(DEBUG_INFO_TYPE) \ | 275 V(DEBUG_INFO_TYPE) \ |
276 V(BREAK_POINT_INFO_TYPE) \ | 276 V(BREAK_POINT_INFO_TYPE) \ |
277 V(SCRIPT_TYPE) \ | 277 V(SCRIPT_TYPE) \ |
278 \ | 278 \ |
279 V(JS_VALUE_TYPE) \ | 279 V(JS_VALUE_TYPE) \ |
280 V(JS_OBJECT_TYPE) \ | 280 V(JS_OBJECT_TYPE) \ |
| 281 V(JS_CONTEXT_EXTENSION_OBJECT_TYPE) \ |
281 V(JS_GLOBAL_OBJECT_TYPE) \ | 282 V(JS_GLOBAL_OBJECT_TYPE) \ |
282 V(JS_BUILTINS_OBJECT_TYPE) \ | 283 V(JS_BUILTINS_OBJECT_TYPE) \ |
283 V(JS_GLOBAL_PROXY_TYPE) \ | 284 V(JS_GLOBAL_PROXY_TYPE) \ |
284 V(JS_ARRAY_TYPE) \ | 285 V(JS_ARRAY_TYPE) \ |
285 V(JS_REGEXP_TYPE) \ | 286 V(JS_REGEXP_TYPE) \ |
286 \ | 287 \ |
287 V(JS_FUNCTION_TYPE) \ | 288 V(JS_FUNCTION_TYPE) \ |
288 | 289 |
289 | 290 |
290 // Since string types are not consecutive, this macro is used to | 291 // Since string types are not consecutive, this macro is used to |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 FUNCTION_TEMPLATE_INFO_TYPE, | 529 FUNCTION_TEMPLATE_INFO_TYPE, |
529 OBJECT_TEMPLATE_INFO_TYPE, | 530 OBJECT_TEMPLATE_INFO_TYPE, |
530 SIGNATURE_INFO_TYPE, | 531 SIGNATURE_INFO_TYPE, |
531 TYPE_SWITCH_INFO_TYPE, | 532 TYPE_SWITCH_INFO_TYPE, |
532 DEBUG_INFO_TYPE, | 533 DEBUG_INFO_TYPE, |
533 BREAK_POINT_INFO_TYPE, | 534 BREAK_POINT_INFO_TYPE, |
534 SCRIPT_TYPE, | 535 SCRIPT_TYPE, |
535 | 536 |
536 JS_VALUE_TYPE, | 537 JS_VALUE_TYPE, |
537 JS_OBJECT_TYPE, | 538 JS_OBJECT_TYPE, |
| 539 JS_CONTEXT_EXTENSION_OBJECT_TYPE, |
538 JS_GLOBAL_OBJECT_TYPE, | 540 JS_GLOBAL_OBJECT_TYPE, |
539 JS_BUILTINS_OBJECT_TYPE, | 541 JS_BUILTINS_OBJECT_TYPE, |
540 JS_GLOBAL_PROXY_TYPE, | 542 JS_GLOBAL_PROXY_TYPE, |
541 JS_ARRAY_TYPE, | 543 JS_ARRAY_TYPE, |
542 JS_REGEXP_TYPE, | 544 JS_REGEXP_TYPE, |
543 | 545 |
544 JS_FUNCTION_TYPE, | 546 JS_FUNCTION_TYPE, |
545 | 547 |
546 // Pseudo-types | 548 // Pseudo-types |
547 FIRST_NONSTRING_TYPE = MAP_TYPE, | 549 FIRST_NONSTRING_TYPE = MAP_TYPE, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 inline bool IsSeqTwoByteString(); | 617 inline bool IsSeqTwoByteString(); |
616 inline bool IsSeqAsciiString(); | 618 inline bool IsSeqAsciiString(); |
617 | 619 |
618 inline bool IsNumber(); | 620 inline bool IsNumber(); |
619 inline bool IsByteArray(); | 621 inline bool IsByteArray(); |
620 inline bool IsFailure(); | 622 inline bool IsFailure(); |
621 inline bool IsRetryAfterGC(); | 623 inline bool IsRetryAfterGC(); |
622 inline bool IsOutOfMemoryFailure(); | 624 inline bool IsOutOfMemoryFailure(); |
623 inline bool IsException(); | 625 inline bool IsException(); |
624 inline bool IsJSObject(); | 626 inline bool IsJSObject(); |
| 627 inline bool IsJSContextExtensionObject(); |
625 inline bool IsMap(); | 628 inline bool IsMap(); |
626 inline bool IsFixedArray(); | 629 inline bool IsFixedArray(); |
627 inline bool IsDescriptorArray(); | 630 inline bool IsDescriptorArray(); |
628 inline bool IsContext(); | 631 inline bool IsContext(); |
629 inline bool IsCatchContext(); | 632 inline bool IsCatchContext(); |
630 inline bool IsGlobalContext(); | 633 inline bool IsGlobalContext(); |
631 inline bool IsJSFunction(); | 634 inline bool IsJSFunction(); |
632 inline bool IsCode(); | 635 inline bool IsCode(); |
633 inline bool IsOddball(); | 636 inline bool IsOddball(); |
634 inline bool IsSharedFunctionInfo(); | 637 inline bool IsSharedFunctionInfo(); |
(...skipping 3580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4215 } else { | 4218 } else { |
4216 value &= ~(1 << bit_position); | 4219 value &= ~(1 << bit_position); |
4217 } | 4220 } |
4218 return value; | 4221 return value; |
4219 } | 4222 } |
4220 }; | 4223 }; |
4221 | 4224 |
4222 } } // namespace v8::internal | 4225 } } // namespace v8::internal |
4223 | 4226 |
4224 #endif // V8_OBJECTS_H_ | 4227 #endif // V8_OBJECTS_H_ |
OLD | NEW |