Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: src/elements-kind.h

Issue 177683002: Mode clean-up pt 1: rename classic/non-strict mode to sloppy mode (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/elements.cc ('k') | src/elements-kind.cc » ('j') | src/globals.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698