| 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 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 LAST_JS_OBJECT_TYPE = LAST_TYPE, | 820 LAST_JS_OBJECT_TYPE = LAST_TYPE, |
| 821 // Boundaries for testing the types represented as JSProxy | 821 // Boundaries for testing the types represented as JSProxy |
| 822 FIRST_JS_PROXY_TYPE = JS_FUNCTION_PROXY_TYPE, | 822 FIRST_JS_PROXY_TYPE = JS_FUNCTION_PROXY_TYPE, |
| 823 LAST_JS_PROXY_TYPE = JS_PROXY_TYPE, | 823 LAST_JS_PROXY_TYPE = JS_PROXY_TYPE, |
| 824 // Boundaries for testing whether the type is a JavaScript object. | 824 // Boundaries for testing whether the type is a JavaScript object. |
| 825 FIRST_SPEC_OBJECT_TYPE = FIRST_JS_RECEIVER_TYPE, | 825 FIRST_SPEC_OBJECT_TYPE = FIRST_JS_RECEIVER_TYPE, |
| 826 LAST_SPEC_OBJECT_TYPE = LAST_JS_RECEIVER_TYPE, | 826 LAST_SPEC_OBJECT_TYPE = LAST_JS_RECEIVER_TYPE, |
| 827 // Boundaries for testing the types for which typeof is "object". | 827 // Boundaries for testing the types for which typeof is "object". |
| 828 FIRST_NONCALLABLE_SPEC_OBJECT_TYPE = JS_PROXY_TYPE, | 828 FIRST_NONCALLABLE_SPEC_OBJECT_TYPE = JS_PROXY_TYPE, |
| 829 LAST_NONCALLABLE_SPEC_OBJECT_TYPE = JS_REGEXP_TYPE, | 829 LAST_NONCALLABLE_SPEC_OBJECT_TYPE = JS_REGEXP_TYPE, |
| 830 // Boundaries for testing ArrayBufferViews. |
| 831 FIRST_ARRAY_BUFFER_VIEW_TYPE = JS_TYPED_ARRAY_TYPE, |
| 832 LAST_ARRAY_BUFFER_VIEW_TYPE = JS_DATA_VIEW_TYPE, |
| 830 // Note that the types for which typeof is "function" are not continuous. | 833 // Note that the types for which typeof is "function" are not continuous. |
| 831 // Define this so that we can put assertions on discrete checks. | 834 // Define this so that we can put assertions on discrete checks. |
| 832 NUM_OF_CALLABLE_SPEC_OBJECT_TYPES = 2 | 835 NUM_OF_CALLABLE_SPEC_OBJECT_TYPES = 2 |
| 833 }; | 836 }; |
| 834 | 837 |
| 835 const int kExternalArrayTypeCount = | 838 const int kExternalArrayTypeCount = |
| 836 LAST_EXTERNAL_ARRAY_TYPE - FIRST_EXTERNAL_ARRAY_TYPE + 1; | 839 LAST_EXTERNAL_ARRAY_TYPE - FIRST_EXTERNAL_ARRAY_TYPE + 1; |
| 837 | 840 |
| 838 STATIC_CHECK(JS_OBJECT_TYPE == Internals::kJSObjectType); | 841 STATIC_CHECK(JS_OBJECT_TYPE == Internals::kJSObjectType); |
| 839 STATIC_CHECK(FIRST_NONSTRING_TYPE == Internals::kFirstNonstringType); | 842 STATIC_CHECK(FIRST_NONSTRING_TYPE == Internals::kFirstNonstringType); |
| (...skipping 10393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11233 } else { | 11236 } else { |
| 11234 value &= ~(1 << bit_position); | 11237 value &= ~(1 << bit_position); |
| 11235 } | 11238 } |
| 11236 return value; | 11239 return value; |
| 11237 } | 11240 } |
| 11238 }; | 11241 }; |
| 11239 | 11242 |
| 11240 } } // namespace v8::internal | 11243 } } // namespace v8::internal |
| 11241 | 11244 |
| 11242 #endif // V8_OBJECTS_H_ | 11245 #endif // V8_OBJECTS_H_ |
| OLD | NEW |