Chromium Code Reviews| 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 2099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2110 | 2110 |
| 2111 enum Kind { | 2111 enum Kind { |
| 2112 FUNCTION, | 2112 FUNCTION, |
| 2113 STUB, | 2113 STUB, |
| 2114 BUILTIN, | 2114 BUILTIN, |
| 2115 LOAD_IC, | 2115 LOAD_IC, |
| 2116 KEYED_LOAD_IC, | 2116 KEYED_LOAD_IC, |
| 2117 CALL_IC, | 2117 CALL_IC, |
| 2118 STORE_IC, | 2118 STORE_IC, |
| 2119 KEYED_STORE_IC, | 2119 KEYED_STORE_IC, |
| 2120 // No more than eight kinds. The value currently encoded in three bits in | |
|
Erik Corry
2008/11/21 13:03:04
Please add an assert somewhere.
Lasse Reichstein
2008/11/24 08:32:33
Done.
| |
| 2121 // Flags. | |
| 2120 | 2122 |
| 2121 // Pseudo-kinds. | 2123 // Pseudo-kinds. |
| 2124 REGEXP = BUILTIN, | |
| 2122 FIRST_IC_KIND = LOAD_IC, | 2125 FIRST_IC_KIND = LOAD_IC, |
| 2123 LAST_IC_KIND = KEYED_STORE_IC | 2126 LAST_IC_KIND = KEYED_STORE_IC |
| 2124 }; | 2127 }; |
| 2125 | 2128 |
| 2126 enum { | 2129 enum { |
| 2127 NUMBER_OF_KINDS = LAST_IC_KIND + 1 | 2130 NUMBER_OF_KINDS = KEYED_STORE_IC + 1 |
| 2128 }; | 2131 }; |
| 2129 | 2132 |
| 2130 // A state indicates that inline cache in this Code object contains | 2133 // A state indicates that inline cache in this Code object contains |
| 2131 // objects or relative instruction addresses. | 2134 // objects or relative instruction addresses. |
| 2132 enum ICTargetState { | 2135 enum ICTargetState { |
| 2133 IC_TARGET_IS_ADDRESS, | 2136 IC_TARGET_IS_ADDRESS, |
| 2134 IC_TARGET_IS_OBJECT | 2137 IC_TARGET_IS_OBJECT |
| 2135 }; | 2138 }; |
| 2136 | 2139 |
| 2137 #ifdef ENABLE_DISASSEMBLER | 2140 #ifdef ENABLE_DISASSEMBLER |
| (...skipping 2061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4199 } else { | 4202 } else { |
| 4200 value &= ~(1 << bit_position); | 4203 value &= ~(1 << bit_position); |
| 4201 } | 4204 } |
| 4202 return value; | 4205 return value; |
| 4203 } | 4206 } |
| 4204 }; | 4207 }; |
| 4205 | 4208 |
| 4206 } } // namespace v8::internal | 4209 } } // namespace v8::internal |
| 4207 | 4210 |
| 4208 #endif // V8_OBJECTS_H_ | 4211 #endif // V8_OBJECTS_H_ |
| OLD | NEW |