| 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 11 matching lines...) Expand all  Loading... | 
| 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 
| 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 
| 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 
| 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
| 27 | 27 | 
| 28 #ifndef V8_OBJECTS_H_ | 28 #ifndef V8_OBJECTS_H_ | 
| 29 #define V8_OBJECTS_H_ | 29 #define V8_OBJECTS_H_ | 
| 30 | 30 | 
| 31 #include "builtins.h" | 31 #include "builtins.h" | 
| 32 #include "code-stubs.h" |  | 
| 33 #include "smart-pointer.h" | 32 #include "smart-pointer.h" | 
| 34 #include "unicode-inl.h" | 33 #include "unicode-inl.h" | 
| 35 #if V8_TARGET_ARCH_ARM | 34 #if V8_TARGET_ARCH_ARM | 
| 36 #include "arm/constants-arm.h" | 35 #include "arm/constants-arm.h" | 
| 37 #elif V8_TARGET_ARCH_MIPS | 36 #elif V8_TARGET_ARCH_MIPS | 
| 38 #include "mips/constants-mips.h" | 37 #include "mips/constants-mips.h" | 
| 39 #endif | 38 #endif | 
| 40 | 39 | 
| 41 // | 40 // | 
| 42 // Most object types in the V8 JavaScript are described in this file. | 41 // Most object types in the V8 JavaScript are described in this file. | 
| (...skipping 2836 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2879   // Testers for IC stub kinds. | 2878   // Testers for IC stub kinds. | 
| 2880   inline bool is_inline_cache_stub(); | 2879   inline bool is_inline_cache_stub(); | 
| 2881   inline bool is_load_stub() { return kind() == LOAD_IC; } | 2880   inline bool is_load_stub() { return kind() == LOAD_IC; } | 
| 2882   inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; } | 2881   inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; } | 
| 2883   inline bool is_store_stub() { return kind() == STORE_IC; } | 2882   inline bool is_store_stub() { return kind() == STORE_IC; } | 
| 2884   inline bool is_keyed_store_stub() { return kind() == KEYED_STORE_IC; } | 2883   inline bool is_keyed_store_stub() { return kind() == KEYED_STORE_IC; } | 
| 2885   inline bool is_call_stub() { return kind() == CALL_IC; } | 2884   inline bool is_call_stub() { return kind() == CALL_IC; } | 
| 2886   inline bool is_keyed_call_stub() { return kind() == KEYED_CALL_IC; } | 2885   inline bool is_keyed_call_stub() { return kind() == KEYED_CALL_IC; } | 
| 2887 | 2886 | 
| 2888   // [major_key]: For kind STUB or BINARY_OP_IC, the major key. | 2887   // [major_key]: For kind STUB or BINARY_OP_IC, the major key. | 
| 2889   inline CodeStub::Major major_key(); | 2888   inline int major_key(); | 
| 2890   inline void set_major_key(CodeStub::Major major); | 2889   inline void set_major_key(int major); | 
| 2891 | 2890 | 
| 2892   // Flags operations. | 2891   // Flags operations. | 
| 2893   static inline Flags ComputeFlags(Kind kind, | 2892   static inline Flags ComputeFlags(Kind kind, | 
| 2894                                    InLoopFlag in_loop = NOT_IN_LOOP, | 2893                                    InLoopFlag in_loop = NOT_IN_LOOP, | 
| 2895                                    InlineCacheState ic_state = UNINITIALIZED, | 2894                                    InlineCacheState ic_state = UNINITIALIZED, | 
| 2896                                    PropertyType type = NORMAL, | 2895                                    PropertyType type = NORMAL, | 
| 2897                                    int argc = -1, | 2896                                    int argc = -1, | 
| 2898                                    InlineCacheHolderFlag holder = OWN_MAP); | 2897                                    InlineCacheHolderFlag holder = OWN_MAP); | 
| 2899 | 2898 | 
| 2900   static inline Flags ComputeMonomorphicFlags( | 2899   static inline Flags ComputeMonomorphicFlags( | 
| (...skipping 2651 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5552     } else { | 5551     } else { | 
| 5553       value &= ~(1 << bit_position); | 5552       value &= ~(1 << bit_position); | 
| 5554     } | 5553     } | 
| 5555     return value; | 5554     return value; | 
| 5556   } | 5555   } | 
| 5557 }; | 5556 }; | 
| 5558 | 5557 | 
| 5559 } }  // namespace v8::internal | 5558 } }  // namespace v8::internal | 
| 5560 | 5559 | 
| 5561 #endif  // V8_OBJECTS_H_ | 5560 #endif  // V8_OBJECTS_H_ | 
| OLD | NEW | 
|---|