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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 // | 326 // |
327 // NOTE: Everything following JS_VALUE_TYPE is considered a | 327 // NOTE: Everything following JS_VALUE_TYPE is considered a |
328 // JSObject for GC purposes. The first four entries here have typeof | 328 // JSObject for GC purposes. The first four entries here have typeof |
329 // 'object', whereas JS_FUNCTION_TYPE has typeof 'function'. | 329 // 'object', whereas JS_FUNCTION_TYPE has typeof 'function'. |
330 #define INSTANCE_TYPE_LIST_ALL(V) \ | 330 #define INSTANCE_TYPE_LIST_ALL(V) \ |
331 V(STRING_TYPE) \ | 331 V(STRING_TYPE) \ |
332 V(ASCII_STRING_TYPE) \ | 332 V(ASCII_STRING_TYPE) \ |
333 V(CONS_STRING_TYPE) \ | 333 V(CONS_STRING_TYPE) \ |
334 V(CONS_ASCII_STRING_TYPE) \ | 334 V(CONS_ASCII_STRING_TYPE) \ |
335 V(SLICED_STRING_TYPE) \ | 335 V(SLICED_STRING_TYPE) \ |
| 336 V(SLICED_ASCII_STRING_TYPE) \ |
336 V(EXTERNAL_STRING_TYPE) \ | 337 V(EXTERNAL_STRING_TYPE) \ |
337 V(EXTERNAL_ASCII_STRING_TYPE) \ | 338 V(EXTERNAL_ASCII_STRING_TYPE) \ |
338 V(EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE) \ | 339 V(EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE) \ |
339 V(SHORT_EXTERNAL_STRING_TYPE) \ | 340 V(SHORT_EXTERNAL_STRING_TYPE) \ |
340 V(SHORT_EXTERNAL_ASCII_STRING_TYPE) \ | 341 V(SHORT_EXTERNAL_ASCII_STRING_TYPE) \ |
341 V(SHORT_EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE) \ | 342 V(SHORT_EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE) \ |
342 \ | 343 \ |
343 V(INTERNALIZED_STRING_TYPE) \ | 344 V(INTERNALIZED_STRING_TYPE) \ |
344 V(ASCII_INTERNALIZED_STRING_TYPE) \ | 345 V(ASCII_INTERNALIZED_STRING_TYPE) \ |
345 V(CONS_INTERNALIZED_STRING_TYPE) \ | 346 V(CONS_INTERNALIZED_STRING_TYPE) \ |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 V(JS_GENERATOR_OBJECT_TYPE) \ | 410 V(JS_GENERATOR_OBJECT_TYPE) \ |
410 V(JS_MODULE_TYPE) \ | 411 V(JS_MODULE_TYPE) \ |
411 V(JS_GLOBAL_OBJECT_TYPE) \ | 412 V(JS_GLOBAL_OBJECT_TYPE) \ |
412 V(JS_BUILTINS_OBJECT_TYPE) \ | 413 V(JS_BUILTINS_OBJECT_TYPE) \ |
413 V(JS_GLOBAL_PROXY_TYPE) \ | 414 V(JS_GLOBAL_PROXY_TYPE) \ |
414 V(JS_ARRAY_TYPE) \ | 415 V(JS_ARRAY_TYPE) \ |
415 V(JS_ARRAY_BUFFER_TYPE) \ | 416 V(JS_ARRAY_BUFFER_TYPE) \ |
416 V(JS_TYPED_ARRAY_TYPE) \ | 417 V(JS_TYPED_ARRAY_TYPE) \ |
417 V(JS_DATA_VIEW_TYPE) \ | 418 V(JS_DATA_VIEW_TYPE) \ |
418 V(JS_PROXY_TYPE) \ | 419 V(JS_PROXY_TYPE) \ |
| 420 V(JS_SET_TYPE) \ |
| 421 V(JS_MAP_TYPE) \ |
419 V(JS_WEAK_MAP_TYPE) \ | 422 V(JS_WEAK_MAP_TYPE) \ |
420 V(JS_WEAK_SET_TYPE) \ | 423 V(JS_WEAK_SET_TYPE) \ |
421 V(JS_REGEXP_TYPE) \ | 424 V(JS_REGEXP_TYPE) \ |
422 \ | 425 \ |
423 V(JS_FUNCTION_TYPE) \ | 426 V(JS_FUNCTION_TYPE) \ |
424 V(JS_FUNCTION_PROXY_TYPE) \ | 427 V(JS_FUNCTION_PROXY_TYPE) \ |
425 | 428 |
426 #ifdef ENABLE_DEBUGGER_SUPPORT | 429 #ifdef ENABLE_DEBUGGER_SUPPORT |
427 #define INSTANCE_TYPE_LIST_DEBUGGER(V) \ | 430 #define INSTANCE_TYPE_LIST_DEBUGGER(V) \ |
428 V(DEBUG_INFO_TYPE) \ | 431 V(DEBUG_INFO_TYPE) \ |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 JS_WEAK_MAP_TYPE, | 779 JS_WEAK_MAP_TYPE, |
777 JS_WEAK_SET_TYPE, | 780 JS_WEAK_SET_TYPE, |
778 | 781 |
779 JS_REGEXP_TYPE, | 782 JS_REGEXP_TYPE, |
780 | 783 |
781 JS_FUNCTION_TYPE, // LAST_JS_OBJECT_TYPE, LAST_JS_RECEIVER_TYPE | 784 JS_FUNCTION_TYPE, // LAST_JS_OBJECT_TYPE, LAST_JS_RECEIVER_TYPE |
782 | 785 |
783 // Pseudo-types | 786 // Pseudo-types |
784 FIRST_TYPE = 0x0, | 787 FIRST_TYPE = 0x0, |
785 LAST_TYPE = JS_FUNCTION_TYPE, | 788 LAST_TYPE = JS_FUNCTION_TYPE, |
786 INVALID_TYPE = FIRST_TYPE - 1, | |
787 FIRST_NAME_TYPE = FIRST_TYPE, | 789 FIRST_NAME_TYPE = FIRST_TYPE, |
788 LAST_NAME_TYPE = SYMBOL_TYPE, | 790 LAST_NAME_TYPE = SYMBOL_TYPE, |
789 FIRST_UNIQUE_NAME_TYPE = INTERNALIZED_STRING_TYPE, | 791 FIRST_UNIQUE_NAME_TYPE = INTERNALIZED_STRING_TYPE, |
790 LAST_UNIQUE_NAME_TYPE = SYMBOL_TYPE, | 792 LAST_UNIQUE_NAME_TYPE = SYMBOL_TYPE, |
791 FIRST_NONSTRING_TYPE = SYMBOL_TYPE, | 793 FIRST_NONSTRING_TYPE = SYMBOL_TYPE, |
792 // Boundaries for testing for an external array. | 794 // Boundaries for testing for an external array. |
793 FIRST_EXTERNAL_ARRAY_TYPE = EXTERNAL_BYTE_ARRAY_TYPE, | 795 FIRST_EXTERNAL_ARRAY_TYPE = EXTERNAL_BYTE_ARRAY_TYPE, |
794 LAST_EXTERNAL_ARRAY_TYPE = EXTERNAL_PIXEL_ARRAY_TYPE, | 796 LAST_EXTERNAL_ARRAY_TYPE = EXTERNAL_PIXEL_ARRAY_TYPE, |
795 // Boundary for promotion to old data space/old pointer space. | 797 // Boundary for promotion to old data space/old pointer space. |
796 LAST_DATA_TYPE = FILLER_TYPE, | 798 LAST_DATA_TYPE = FILLER_TYPE, |
(...skipping 9372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10169 } else { | 10171 } else { |
10170 value &= ~(1 << bit_position); | 10172 value &= ~(1 << bit_position); |
10171 } | 10173 } |
10172 return value; | 10174 return value; |
10173 } | 10175 } |
10174 }; | 10176 }; |
10175 | 10177 |
10176 } } // namespace v8::internal | 10178 } } // namespace v8::internal |
10177 | 10179 |
10178 #endif // V8_OBJECTS_H_ | 10180 #endif // V8_OBJECTS_H_ |
OLD | NEW |