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

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

Issue 11365174: A change in the way we place TransitionElementKinds in the tree. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 bool IsMoreGeneralElementsKindTransition(ElementsKind from_kind, 204 bool IsMoreGeneralElementsKindTransition(ElementsKind from_kind,
205 ElementsKind to_kind); 205 ElementsKind to_kind);
206 206
207 207
208 inline bool IsTransitionableFastElementsKind(ElementsKind from_kind) { 208 inline bool IsTransitionableFastElementsKind(ElementsKind from_kind) {
209 return IsFastElementsKind(from_kind) && 209 return IsFastElementsKind(from_kind) &&
210 from_kind != TERMINAL_FAST_ELEMENTS_KIND; 210 from_kind != TERMINAL_FAST_ELEMENTS_KIND;
211 } 211 }
212 212
213 213
214 ElementsKind GetUnifiedFastElementsKind(ElementsKind e1, ElementsKind e2);
danno 2012/11/14 15:28:18 kind1, kind2? Perhaps a comment what this fellow d
mvstanton 2012/11/16 15:15:06 Done.
214 ElementsKind GetNextMoreGeneralFastElementsKind(ElementsKind elements_kind, 215 ElementsKind GetNextMoreGeneralFastElementsKind(ElementsKind elements_kind,
215 bool allow_only_packed); 216 bool allow_only_packed);
216 217
217 218
218 inline bool CanTransitionToMoreGeneralFastElementsKind( 219 inline bool CanTransitionToMoreGeneralFastElementsKind(
219 ElementsKind elements_kind, 220 ElementsKind elements_kind,
220 bool allow_only_packed) { 221 bool allow_only_packed) {
221 return IsFastElementsKind(elements_kind) && 222 return IsFastElementsKind(elements_kind) &&
222 (elements_kind != TERMINAL_FAST_ELEMENTS_KIND && 223 (elements_kind != TERMINAL_FAST_ELEMENTS_KIND &&
223 (!allow_only_packed || elements_kind != FAST_ELEMENTS)); 224 (!allow_only_packed || elements_kind != FAST_ELEMENTS));
224 } 225 }
225 226
226 227
227 } } // namespace v8::internal 228 } } // namespace v8::internal
228 229
229 #endif // V8_ELEMENTS_KIND_H_ 230 #endif // V8_ELEMENTS_KIND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698