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

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

Issue 546683003: Make KeyedLoads from a sloppy arguments array use a handler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Webkit test found bug, updating. Created 6 years, 2 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
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/ic/arm/ic-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_ELEMENTS_KIND_H_ 5 #ifndef V8_ELEMENTS_KIND_H_
6 #define V8_ELEMENTS_KIND_H_ 6 #define V8_ELEMENTS_KIND_H_
7 7
8 #include "src/checks.h" 8 #include "src/checks.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 ElementsKind GetFastElementsKindFromSequenceIndex(int sequence_number); 80 ElementsKind GetFastElementsKindFromSequenceIndex(int sequence_number);
81 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind); 81 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind);
82 82
83 ElementsKind GetNextTransitionElementsKind(ElementsKind elements_kind); 83 ElementsKind GetNextTransitionElementsKind(ElementsKind elements_kind);
84 84
85 inline bool IsDictionaryElementsKind(ElementsKind kind) { 85 inline bool IsDictionaryElementsKind(ElementsKind kind) {
86 return kind == DICTIONARY_ELEMENTS; 86 return kind == DICTIONARY_ELEMENTS;
87 } 87 }
88 88
89 89
90 inline bool IsSloppyArgumentsElements(ElementsKind kind) {
91 return kind == SLOPPY_ARGUMENTS_ELEMENTS;
92 }
93
94
90 inline bool IsExternalArrayElementsKind(ElementsKind kind) { 95 inline bool IsExternalArrayElementsKind(ElementsKind kind) {
91 return kind >= FIRST_EXTERNAL_ARRAY_ELEMENTS_KIND && 96 return kind >= FIRST_EXTERNAL_ARRAY_ELEMENTS_KIND &&
92 kind <= LAST_EXTERNAL_ARRAY_ELEMENTS_KIND; 97 kind <= LAST_EXTERNAL_ARRAY_ELEMENTS_KIND;
93 } 98 }
94 99
95 100
96 inline bool IsTerminalElementsKind(ElementsKind kind) { 101 inline bool IsTerminalElementsKind(ElementsKind kind) {
97 return kind == TERMINAL_FAST_ELEMENTS_KIND || 102 return kind == TERMINAL_FAST_ELEMENTS_KIND ||
98 IsExternalArrayElementsKind(kind); 103 IsExternalArrayElementsKind(kind);
99 } 104 }
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 bool allow_only_packed) { 248 bool allow_only_packed) {
244 return IsFastElementsKind(elements_kind) && 249 return IsFastElementsKind(elements_kind) &&
245 (elements_kind != TERMINAL_FAST_ELEMENTS_KIND && 250 (elements_kind != TERMINAL_FAST_ELEMENTS_KIND &&
246 (!allow_only_packed || elements_kind != FAST_ELEMENTS)); 251 (!allow_only_packed || elements_kind != FAST_ELEMENTS));
247 } 252 }
248 253
249 254
250 } } // namespace v8::internal 255 } } // namespace v8::internal
251 256
252 #endif // V8_ELEMENTS_KIND_H_ 257 #endif // V8_ELEMENTS_KIND_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/ic/arm/ic-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698