| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 // Boundaries for testing the type is a JavaScript "object". Note that | 576 // Boundaries for testing the type is a JavaScript "object". Note that |
| 577 // function objects are not counted as objects, even though they are | 577 // function objects are not counted as objects, even though they are |
| 578 // implemented as such; only values whose typeof is "object" are included. | 578 // implemented as such; only values whose typeof is "object" are included. |
| 579 FIRST_JS_OBJECT_TYPE = JS_VALUE_TYPE, | 579 FIRST_JS_OBJECT_TYPE = JS_VALUE_TYPE, |
| 580 LAST_JS_OBJECT_TYPE = JS_REGEXP_TYPE, | 580 LAST_JS_OBJECT_TYPE = JS_REGEXP_TYPE, |
| 581 // RegExp objects have [[Class]] "function" because they are callable. | 581 // RegExp objects have [[Class]] "function" because they are callable. |
| 582 // All types from this type and above are objects with [[Class]] "function". | 582 // All types from this type and above are objects with [[Class]] "function". |
| 583 FIRST_FUNCTION_CLASS_TYPE = JS_REGEXP_TYPE | 583 FIRST_FUNCTION_CLASS_TYPE = JS_REGEXP_TYPE |
| 584 }; | 584 }; |
| 585 | 585 |
| 586 static const int kExternalArrayTypeCount = LAST_EXTERNAL_ARRAY_TYPE - |
| 587 FIRST_EXTERNAL_ARRAY_TYPE + 1; |
| 586 | 588 |
| 587 STATIC_CHECK(JS_OBJECT_TYPE == Internals::kJSObjectType); | 589 STATIC_CHECK(JS_OBJECT_TYPE == Internals::kJSObjectType); |
| 588 STATIC_CHECK(FIRST_NONSTRING_TYPE == Internals::kFirstNonstringType); | 590 STATIC_CHECK(FIRST_NONSTRING_TYPE == Internals::kFirstNonstringType); |
| 589 STATIC_CHECK(PROXY_TYPE == Internals::kProxyType); | 591 STATIC_CHECK(PROXY_TYPE == Internals::kProxyType); |
| 590 | 592 |
| 591 | 593 |
| 592 enum CompareResult { | 594 enum CompareResult { |
| 593 LESS = -1, | 595 LESS = -1, |
| 594 EQUAL = 0, | 596 EQUAL = 0, |
| 595 GREATER = 1, | 597 GREATER = 1, |
| (...skipping 6050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6646 } else { | 6648 } else { |
| 6647 value &= ~(1 << bit_position); | 6649 value &= ~(1 << bit_position); |
| 6648 } | 6650 } |
| 6649 return value; | 6651 return value; |
| 6650 } | 6652 } |
| 6651 }; | 6653 }; |
| 6652 | 6654 |
| 6653 } } // namespace v8::internal | 6655 } } // namespace v8::internal |
| 6654 | 6656 |
| 6655 #endif // V8_OBJECTS_H_ | 6657 #endif // V8_OBJECTS_H_ |
| OLD | NEW |