OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 CONTEXTUAL | 179 CONTEXTUAL |
180 }; | 180 }; |
181 | 181 |
182 | 182 |
183 enum MutableMode { | 183 enum MutableMode { |
184 MUTABLE, | 184 MUTABLE, |
185 IMMUTABLE | 185 IMMUTABLE |
186 }; | 186 }; |
187 | 187 |
188 | 188 |
| 189 enum ExternalArrayType { |
| 190 kExternalInt8Array = 1, |
| 191 kExternalUint8Array, |
| 192 kExternalInt16Array, |
| 193 kExternalUint16Array, |
| 194 kExternalInt32Array, |
| 195 kExternalUint32Array, |
| 196 kExternalFloat32Array, |
| 197 kExternalFloat64Array, |
| 198 kExternalUint8ClampedArray, |
| 199 }; |
| 200 |
| 201 |
189 static const int kGrowICDelta = STORE_AND_GROW_NO_TRANSITION - | 202 static const int kGrowICDelta = STORE_AND_GROW_NO_TRANSITION - |
190 STANDARD_STORE; | 203 STANDARD_STORE; |
191 STATIC_ASSERT(STANDARD_STORE == 0); | 204 STATIC_ASSERT(STANDARD_STORE == 0); |
192 STATIC_ASSERT(kGrowICDelta == | 205 STATIC_ASSERT(kGrowICDelta == |
193 STORE_AND_GROW_TRANSITION_SMI_TO_OBJECT - | 206 STORE_AND_GROW_TRANSITION_SMI_TO_OBJECT - |
194 STORE_TRANSITION_SMI_TO_OBJECT); | 207 STORE_TRANSITION_SMI_TO_OBJECT); |
195 STATIC_ASSERT(kGrowICDelta == | 208 STATIC_ASSERT(kGrowICDelta == |
196 STORE_AND_GROW_TRANSITION_SMI_TO_DOUBLE - | 209 STORE_AND_GROW_TRANSITION_SMI_TO_DOUBLE - |
197 STORE_TRANSITION_SMI_TO_DOUBLE); | 210 STORE_TRANSITION_SMI_TO_DOUBLE); |
198 STATIC_ASSERT(kGrowICDelta == | 211 STATIC_ASSERT(kGrowICDelta == |
(...skipping 10870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11069 } else { | 11082 } else { |
11070 value &= ~(1 << bit_position); | 11083 value &= ~(1 << bit_position); |
11071 } | 11084 } |
11072 return value; | 11085 return value; |
11073 } | 11086 } |
11074 }; | 11087 }; |
11075 | 11088 |
11076 } } // namespace v8::internal | 11089 } } // namespace v8::internal |
11077 | 11090 |
11078 #endif // V8_OBJECTS_H_ | 11091 #endif // V8_OBJECTS_H_ |
OLD | NEW |