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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // - CodeCache | 141 // - CodeCache |
142 // | 142 // |
143 // Formats of Object*: | 143 // Formats of Object*: |
144 // Smi: [31 bit signed int] 0 | 144 // Smi: [31 bit signed int] 0 |
145 // HeapObject: [32 bit direct pointer] (4 byte aligned) | 01 | 145 // HeapObject: [32 bit direct pointer] (4 byte aligned) | 01 |
146 // Failure: [30 bit signed int] 11 | 146 // Failure: [30 bit signed int] 11 |
147 | 147 |
148 namespace v8 { | 148 namespace v8 { |
149 namespace internal { | 149 namespace internal { |
150 | 150 |
151 enum CompareMapMode { | |
152 REQUIRE_EXACT_MAP, | |
153 ALLOW_ELEMENT_TRANSITION_MAPS | |
154 }; | |
155 | |
156 enum KeyedAccessStoreMode { | 151 enum KeyedAccessStoreMode { |
157 STANDARD_STORE, | 152 STANDARD_STORE, |
158 STORE_TRANSITION_SMI_TO_OBJECT, | 153 STORE_TRANSITION_SMI_TO_OBJECT, |
159 STORE_TRANSITION_SMI_TO_DOUBLE, | 154 STORE_TRANSITION_SMI_TO_DOUBLE, |
160 STORE_TRANSITION_DOUBLE_TO_OBJECT, | 155 STORE_TRANSITION_DOUBLE_TO_OBJECT, |
161 STORE_TRANSITION_HOLEY_SMI_TO_OBJECT, | 156 STORE_TRANSITION_HOLEY_SMI_TO_OBJECT, |
162 STORE_TRANSITION_HOLEY_SMI_TO_DOUBLE, | 157 STORE_TRANSITION_HOLEY_SMI_TO_DOUBLE, |
163 STORE_TRANSITION_HOLEY_DOUBLE_TO_OBJECT, | 158 STORE_TRANSITION_HOLEY_DOUBLE_TO_OBJECT, |
164 STORE_AND_GROW_NO_TRANSITION, | 159 STORE_AND_GROW_NO_TRANSITION, |
165 STORE_AND_GROW_TRANSITION_SMI_TO_OBJECT, | 160 STORE_AND_GROW_TRANSITION_SMI_TO_OBJECT, |
(...skipping 9152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9318 } else { | 9313 } else { |
9319 value &= ~(1 << bit_position); | 9314 value &= ~(1 << bit_position); |
9320 } | 9315 } |
9321 return value; | 9316 return value; |
9322 } | 9317 } |
9323 }; | 9318 }; |
9324 | 9319 |
9325 } } // namespace v8::internal | 9320 } } // namespace v8::internal |
9326 | 9321 |
9327 #endif // V8_OBJECTS_H_ | 9322 #endif // V8_OBJECTS_H_ |
OLD | NEW |