OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 ACCESSOR_INFO_TYPE, | 484 ACCESSOR_INFO_TYPE, |
485 ACCESS_CHECK_INFO_TYPE, | 485 ACCESS_CHECK_INFO_TYPE, |
486 INTERCEPTOR_INFO_TYPE, | 486 INTERCEPTOR_INFO_TYPE, |
487 CALL_HANDLER_INFO_TYPE, | 487 CALL_HANDLER_INFO_TYPE, |
488 FUNCTION_TEMPLATE_INFO_TYPE, | 488 FUNCTION_TEMPLATE_INFO_TYPE, |
489 OBJECT_TEMPLATE_INFO_TYPE, | 489 OBJECT_TEMPLATE_INFO_TYPE, |
490 SIGNATURE_INFO_TYPE, | 490 SIGNATURE_INFO_TYPE, |
491 TYPE_SWITCH_INFO_TYPE, | 491 TYPE_SWITCH_INFO_TYPE, |
492 SCRIPT_TYPE, | 492 SCRIPT_TYPE, |
493 CODE_CACHE_TYPE, | 493 CODE_CACHE_TYPE, |
494 #ifdef ENABLE_DEBUGGER_SUPPORT | 494 // The following two instance types are only used when ENABLE_DEBUGGER_SUPPORT |
| 495 // is defined. However as include/v8.h contain some of the instance type |
| 496 // constants always having them avoids them getting different numbers |
| 497 // depending on whether ENABLE_DEBUGGER_SUPPORT is defined or not. |
495 DEBUG_INFO_TYPE, | 498 DEBUG_INFO_TYPE, |
496 BREAK_POINT_INFO_TYPE, | 499 BREAK_POINT_INFO_TYPE, |
497 #endif | |
498 | 500 |
499 FIXED_ARRAY_TYPE, | 501 FIXED_ARRAY_TYPE, |
500 SHARED_FUNCTION_INFO_TYPE, | 502 SHARED_FUNCTION_INFO_TYPE, |
501 | 503 |
502 JS_VALUE_TYPE, // FIRST_JS_OBJECT_TYPE | 504 JS_VALUE_TYPE, // FIRST_JS_OBJECT_TYPE |
503 JS_OBJECT_TYPE, | 505 JS_OBJECT_TYPE, |
504 JS_CONTEXT_EXTENSION_OBJECT_TYPE, | 506 JS_CONTEXT_EXTENSION_OBJECT_TYPE, |
505 JS_GLOBAL_OBJECT_TYPE, | 507 JS_GLOBAL_OBJECT_TYPE, |
506 JS_BUILTINS_OBJECT_TYPE, | 508 JS_BUILTINS_OBJECT_TYPE, |
507 JS_GLOBAL_PROXY_TYPE, | 509 JS_GLOBAL_PROXY_TYPE, |
(...skipping 13 matching lines...) Expand all Loading... |
521 // Boundary for promotion to old data space/old pointer space. | 523 // Boundary for promotion to old data space/old pointer space. |
522 LAST_DATA_TYPE = FILLER_TYPE, | 524 LAST_DATA_TYPE = FILLER_TYPE, |
523 // Boundaries for testing the type is a JavaScript "object". Note that | 525 // Boundaries for testing the type is a JavaScript "object". Note that |
524 // function objects are not counted as objects, even though they are | 526 // function objects are not counted as objects, even though they are |
525 // implemented as such; only values whose typeof is "object" are included. | 527 // implemented as such; only values whose typeof is "object" are included. |
526 FIRST_JS_OBJECT_TYPE = JS_VALUE_TYPE, | 528 FIRST_JS_OBJECT_TYPE = JS_VALUE_TYPE, |
527 LAST_JS_OBJECT_TYPE = JS_REGEXP_TYPE | 529 LAST_JS_OBJECT_TYPE = JS_REGEXP_TYPE |
528 }; | 530 }; |
529 | 531 |
530 | 532 |
| 533 STATIC_CHECK(JS_OBJECT_TYPE == Internals::kJSObjectType); |
| 534 STATIC_CHECK(FIRST_NONSTRING_TYPE == Internals::kFirstNonstringType); |
| 535 STATIC_CHECK(PROXY_TYPE == Internals::kProxyType); |
| 536 |
| 537 |
531 enum CompareResult { | 538 enum CompareResult { |
532 LESS = -1, | 539 LESS = -1, |
533 EQUAL = 0, | 540 EQUAL = 0, |
534 GREATER = 1, | 541 GREATER = 1, |
535 | 542 |
536 NOT_EQUAL = GREATER | 543 NOT_EQUAL = GREATER |
537 }; | 544 }; |
538 | 545 |
539 | 546 |
540 #define DECL_BOOLEAN_ACCESSORS(name) \ | 547 #define DECL_BOOLEAN_ACCESSORS(name) \ |
(...skipping 4761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5302 } else { | 5309 } else { |
5303 value &= ~(1 << bit_position); | 5310 value &= ~(1 << bit_position); |
5304 } | 5311 } |
5305 return value; | 5312 return value; |
5306 } | 5313 } |
5307 }; | 5314 }; |
5308 | 5315 |
5309 } } // namespace v8::internal | 5316 } } // namespace v8::internal |
5310 | 5317 |
5311 #endif // V8_OBJECTS_H_ | 5318 #endif // V8_OBJECTS_H_ |
OLD | NEW |