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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // together at once. | 44 // together at once. |
45 FAST_ELEMENTS, | 45 FAST_ELEMENTS, |
46 FAST_HOLEY_ELEMENTS, | 46 FAST_HOLEY_ELEMENTS, |
47 | 47 |
48 // The "fast" kind for unwrapped, non-tagged double values. | 48 // The "fast" kind for unwrapped, non-tagged double values. |
49 FAST_DOUBLE_ELEMENTS, | 49 FAST_DOUBLE_ELEMENTS, |
50 FAST_HOLEY_DOUBLE_ELEMENTS, | 50 FAST_HOLEY_DOUBLE_ELEMENTS, |
51 | 51 |
52 // The "slow" kind. | 52 // The "slow" kind. |
53 DICTIONARY_ELEMENTS, | 53 DICTIONARY_ELEMENTS, |
54 NON_STRICT_ARGUMENTS_ELEMENTS, | 54 SLOPPY_ARGUMENTS_ELEMENTS, |
55 // The "fast" kind for external arrays | 55 // The "fast" kind for external arrays |
56 EXTERNAL_INT8_ELEMENTS, | 56 EXTERNAL_INT8_ELEMENTS, |
57 EXTERNAL_UINT8_ELEMENTS, | 57 EXTERNAL_UINT8_ELEMENTS, |
58 EXTERNAL_INT16_ELEMENTS, | 58 EXTERNAL_INT16_ELEMENTS, |
59 EXTERNAL_UINT16_ELEMENTS, | 59 EXTERNAL_UINT16_ELEMENTS, |
60 EXTERNAL_INT32_ELEMENTS, | 60 EXTERNAL_INT32_ELEMENTS, |
61 EXTERNAL_UINT32_ELEMENTS, | 61 EXTERNAL_UINT32_ELEMENTS, |
62 EXTERNAL_FLOAT32_ELEMENTS, | 62 EXTERNAL_FLOAT32_ELEMENTS, |
63 EXTERNAL_FLOAT64_ELEMENTS, | 63 EXTERNAL_FLOAT64_ELEMENTS, |
64 EXTERNAL_UINT8_CLAMPED_ELEMENTS, | 64 EXTERNAL_UINT8_CLAMPED_ELEMENTS, |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 bool allow_only_packed) { | 255 bool allow_only_packed) { |
256 return IsFastElementsKind(elements_kind) && | 256 return IsFastElementsKind(elements_kind) && |
257 (elements_kind != TERMINAL_FAST_ELEMENTS_KIND && | 257 (elements_kind != TERMINAL_FAST_ELEMENTS_KIND && |
258 (!allow_only_packed || elements_kind != FAST_ELEMENTS)); | 258 (!allow_only_packed || elements_kind != FAST_ELEMENTS)); |
259 } | 259 } |
260 | 260 |
261 | 261 |
262 } } // namespace v8::internal | 262 } } // namespace v8::internal |
263 | 263 |
264 #endif // V8_ELEMENTS_KIND_H_ | 264 #endif // V8_ELEMENTS_KIND_H_ |
OLD | NEW |