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

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

Issue 57123002: Reland 21774: Generate KeyedLoadGeneric with Hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Turn off by default Created 7 years 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 const int kElementsKindCount = LAST_ELEMENTS_KIND - FIRST_ELEMENTS_KIND + 1; 76 const int kElementsKindCount = LAST_ELEMENTS_KIND - FIRST_ELEMENTS_KIND + 1;
77 const int kFastElementsKindCount = LAST_FAST_ELEMENTS_KIND - 77 const int kFastElementsKindCount = LAST_FAST_ELEMENTS_KIND -
78 FIRST_FAST_ELEMENTS_KIND + 1; 78 FIRST_FAST_ELEMENTS_KIND + 1;
79 79
80 // The number to add to a packed elements kind to reach a holey elements kind 80 // The number to add to a packed elements kind to reach a holey elements kind
81 const int kFastElementsKindPackedToHoley = 81 const int kFastElementsKindPackedToHoley =
82 FAST_HOLEY_SMI_ELEMENTS - FAST_SMI_ELEMENTS; 82 FAST_HOLEY_SMI_ELEMENTS - FAST_SMI_ELEMENTS;
83 83
84 int ElementsKindToShiftSize(ElementsKind elements_kind); 84 int ElementsKindToShiftSize(ElementsKind elements_kind);
85 int GetDefaultHeaderSizeForElementsKind(ElementsKind elements_kind);
85 const char* ElementsKindToString(ElementsKind kind); 86 const char* ElementsKindToString(ElementsKind kind);
86 void PrintElementsKind(FILE* out, ElementsKind kind); 87 void PrintElementsKind(FILE* out, ElementsKind kind);
87 88
88 ElementsKind GetInitialFastElementsKind(); 89 ElementsKind GetInitialFastElementsKind();
89 90
90 ElementsKind GetFastElementsKindFromSequenceIndex(int sequence_index); 91 ElementsKind GetFastElementsKindFromSequenceIndex(int sequence_index);
91 92
92 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind); 93 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind);
93 94
94 95
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 bool allow_only_packed) { 231 bool allow_only_packed) {
231 return IsFastElementsKind(elements_kind) && 232 return IsFastElementsKind(elements_kind) &&
232 (elements_kind != TERMINAL_FAST_ELEMENTS_KIND && 233 (elements_kind != TERMINAL_FAST_ELEMENTS_KIND &&
233 (!allow_only_packed || elements_kind != FAST_ELEMENTS)); 234 (!allow_only_packed || elements_kind != FAST_ELEMENTS));
234 } 235 }
235 236
236 237
237 } } // namespace v8::internal 238 } } // namespace v8::internal
238 239
239 #endif // V8_ELEMENTS_KIND_H_ 240 #endif // V8_ELEMENTS_KIND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698