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

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

Issue 295913009: Allow specifying base offset when constructing Keyed hydrogen instructions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove more unnecessary code Created 6 years, 7 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/arm64/lithium-codegen-arm64.cc ('k') | src/elements-kind.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 "v8checks.h" 8 #include "v8checks.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 const int kElementsKindCount = LAST_ELEMENTS_KIND - FIRST_ELEMENTS_KIND + 1; 66 const int kElementsKindCount = LAST_ELEMENTS_KIND - FIRST_ELEMENTS_KIND + 1;
67 const int kFastElementsKindCount = LAST_FAST_ELEMENTS_KIND - 67 const int kFastElementsKindCount = LAST_FAST_ELEMENTS_KIND -
68 FIRST_FAST_ELEMENTS_KIND + 1; 68 FIRST_FAST_ELEMENTS_KIND + 1;
69 69
70 // The number to add to a packed elements kind to reach a holey elements kind 70 // The number to add to a packed elements kind to reach a holey elements kind
71 const int kFastElementsKindPackedToHoley = 71 const int kFastElementsKindPackedToHoley =
72 FAST_HOLEY_SMI_ELEMENTS - FAST_SMI_ELEMENTS; 72 FAST_HOLEY_SMI_ELEMENTS - FAST_SMI_ELEMENTS;
73 73
74 int ElementsKindToShiftSize(ElementsKind elements_kind); 74 int ElementsKindToShiftSize(ElementsKind elements_kind);
75 int GetDefaultHeaderSizeForElementsKind(ElementsKind elements_kind);
75 const char* ElementsKindToString(ElementsKind kind); 76 const char* ElementsKindToString(ElementsKind kind);
76 void PrintElementsKind(FILE* out, ElementsKind kind); 77 void PrintElementsKind(FILE* out, ElementsKind kind);
77 78
78 ElementsKind GetInitialFastElementsKind(); 79 ElementsKind GetInitialFastElementsKind();
79 80
80 ElementsKind GetFastElementsKindFromSequenceIndex(int sequence_number); 81 ElementsKind GetFastElementsKindFromSequenceIndex(int sequence_number);
81 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind); 82 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind);
82 83
83 ElementsKind GetNextTransitionElementsKind(ElementsKind elements_kind); 84 ElementsKind GetNextTransitionElementsKind(ElementsKind elements_kind);
84 85
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 bool allow_only_packed) { 244 bool allow_only_packed) {
244 return IsFastElementsKind(elements_kind) && 245 return IsFastElementsKind(elements_kind) &&
245 (elements_kind != TERMINAL_FAST_ELEMENTS_KIND && 246 (elements_kind != TERMINAL_FAST_ELEMENTS_KIND &&
246 (!allow_only_packed || elements_kind != FAST_ELEMENTS)); 247 (!allow_only_packed || elements_kind != FAST_ELEMENTS));
247 } 248 }
248 249
249 250
250 } } // namespace v8::internal 251 } } // namespace v8::internal
251 252
252 #endif // V8_ELEMENTS_KIND_H_ 253 #endif // V8_ELEMENTS_KIND_H_
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/elements-kind.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698