OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 2045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2056 // A state indicates that inline cache in this Code object contains | 2056 // A state indicates that inline cache in this Code object contains |
2057 // objects or relative instruction addresses. | 2057 // objects or relative instruction addresses. |
2058 enum ICTargetState { | 2058 enum ICTargetState { |
2059 IC_TARGET_IS_ADDRESS, | 2059 IC_TARGET_IS_ADDRESS, |
2060 IC_TARGET_IS_OBJECT | 2060 IC_TARGET_IS_OBJECT |
2061 }; | 2061 }; |
2062 | 2062 |
2063 #ifdef ENABLE_DISASSEMBLER | 2063 #ifdef ENABLE_DISASSEMBLER |
2064 // Printing | 2064 // Printing |
2065 static const char* Kind2String(Kind kind); | 2065 static const char* Kind2String(Kind kind); |
| 2066 static const char* ICState2String(InlineCacheState state); |
2066 void Disassemble(); | 2067 void Disassemble(); |
2067 #endif // ENABLE_DISASSEMBLER | 2068 #endif // ENABLE_DISASSEMBLER |
2068 | 2069 |
2069 // [instruction_size]: Size of the native instructions | 2070 // [instruction_size]: Size of the native instructions |
2070 inline int instruction_size(); | 2071 inline int instruction_size(); |
2071 inline void set_instruction_size(int value); | 2072 inline void set_instruction_size(int value); |
2072 | 2073 |
2073 // [relocation_size]: Size of relocation information. | 2074 // [relocation_size]: Size of relocation information. |
2074 inline int relocation_size(); | 2075 inline int relocation_size(); |
2075 inline void set_relocation_size(int value); | 2076 inline void set_relocation_size(int value); |
(...skipping 1774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3850 } else { | 3851 } else { |
3851 value &= ~(1 << bit_position); | 3852 value &= ~(1 << bit_position); |
3852 } | 3853 } |
3853 return value; | 3854 return value; |
3854 } | 3855 } |
3855 }; | 3856 }; |
3856 | 3857 |
3857 } } // namespace v8::internal | 3858 } } // namespace v8::internal |
3858 | 3859 |
3859 #endif // V8_OBJECTS_H_ | 3860 #endif // V8_OBJECTS_H_ |
OLD | NEW |