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 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
900 public: | 900 public: |
901 // Type testing. | 901 // Type testing. |
902 bool IsObject() { return true; } | 902 bool IsObject() { return true; } |
903 | 903 |
904 #define IS_TYPE_FUNCTION_DECL(type_) inline bool Is##type_(); | 904 #define IS_TYPE_FUNCTION_DECL(type_) inline bool Is##type_(); |
905 OBJECT_TYPE_LIST(IS_TYPE_FUNCTION_DECL) | 905 OBJECT_TYPE_LIST(IS_TYPE_FUNCTION_DECL) |
906 HEAP_OBJECT_TYPE_LIST(IS_TYPE_FUNCTION_DECL) | 906 HEAP_OBJECT_TYPE_LIST(IS_TYPE_FUNCTION_DECL) |
907 #undef IS_TYPE_FUNCTION_DECL | 907 #undef IS_TYPE_FUNCTION_DECL |
908 | 908 |
909 inline bool IsFixedArrayBase(); | 909 inline bool IsFixedArrayBase(); |
910 inline bool IsExternal(); | |
911 | 910 |
912 // Returns true if this object is an instance of the specified | 911 // Returns true if this object is an instance of the specified |
913 // function template. | 912 // function template. |
914 inline bool IsInstanceOf(FunctionTemplateInfo* type); | 913 inline bool IsInstanceOf(FunctionTemplateInfo* type); |
915 | 914 |
916 inline bool IsStruct(); | 915 inline bool IsStruct(); |
917 #define DECLARE_STRUCT_PREDICATE(NAME, Name, name) inline bool Is##Name(); | 916 #define DECLARE_STRUCT_PREDICATE(NAME, Name, name) inline bool Is##Name(); |
918 STRUCT_LIST(DECLARE_STRUCT_PREDICATE) | 917 STRUCT_LIST(DECLARE_STRUCT_PREDICATE) |
919 #undef DECLARE_STRUCT_PREDICATE | 918 #undef DECLARE_STRUCT_PREDICATE |
920 | 919 |
(...skipping 1528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2449 Object* value); | 2448 Object* value); |
2450 | 2449 |
2451 // Set operation on FixedArray without incremental write barrier. Can | 2450 // Set operation on FixedArray without incremental write barrier. Can |
2452 // only be used if the object is guaranteed to be white (whiteness witness | 2451 // only be used if the object is guaranteed to be white (whiteness witness |
2453 // is present). | 2452 // is present). |
2454 static inline void NoIncrementalWriteBarrierSet(FixedArray* array, | 2453 static inline void NoIncrementalWriteBarrierSet(FixedArray* array, |
2455 int index, | 2454 int index, |
2456 Object* value); | 2455 Object* value); |
2457 | 2456 |
2458 private: | 2457 private: |
2459 STATIC_CHECK(kHeaderSize == Internals::kFixedArrayHeaderSize); | |
2460 | |
2461 DISALLOW_IMPLICIT_CONSTRUCTORS(FixedArray); | 2458 DISALLOW_IMPLICIT_CONSTRUCTORS(FixedArray); |
2462 }; | 2459 }; |
2463 | 2460 |
2464 | 2461 |
2465 // FixedDoubleArray describes fixed-sized arrays with element type double. | 2462 // FixedDoubleArray describes fixed-sized arrays with element type double. |
2466 class FixedDoubleArray: public FixedArrayBase { | 2463 class FixedDoubleArray: public FixedArrayBase { |
2467 public: | 2464 public: |
2468 // Setter and getter for elements. | 2465 // Setter and getter for elements. |
2469 inline double get_scalar(int index); | 2466 inline double get_scalar(int index); |
2470 inline int64_t get_representation(int index); | 2467 inline int64_t get_representation(int index); |
(...skipping 6569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9040 } else { | 9037 } else { |
9041 value &= ~(1 << bit_position); | 9038 value &= ~(1 << bit_position); |
9042 } | 9039 } |
9043 return value; | 9040 return value; |
9044 } | 9041 } |
9045 }; | 9042 }; |
9046 | 9043 |
9047 } } // namespace v8::internal | 9044 } } // namespace v8::internal |
9048 | 9045 |
9049 #endif // V8_OBJECTS_H_ | 9046 #endif // V8_OBJECTS_H_ |
OLD | NEW |