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

Side by Side Diff: src/objects.h

Issue 8983027: Rollback 10331: Make sure transitioned arrays efficiently call builtin Array functions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 11 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/lithium.h ('k') | src/x64/lithium-codegen-x64.h » ('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 2011 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
11 // with the distribution. 11 // with the distribution.
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 EXTERNAL_DOUBLE_ELEMENTS, 155 EXTERNAL_DOUBLE_ELEMENTS,
156 EXTERNAL_PIXEL_ELEMENTS, 156 EXTERNAL_PIXEL_ELEMENTS,
157 157
158 // Derived constants from ElementsKind 158 // Derived constants from ElementsKind
159 FIRST_EXTERNAL_ARRAY_ELEMENTS_KIND = EXTERNAL_BYTE_ELEMENTS, 159 FIRST_EXTERNAL_ARRAY_ELEMENTS_KIND = EXTERNAL_BYTE_ELEMENTS,
160 LAST_EXTERNAL_ARRAY_ELEMENTS_KIND = EXTERNAL_PIXEL_ELEMENTS, 160 LAST_EXTERNAL_ARRAY_ELEMENTS_KIND = EXTERNAL_PIXEL_ELEMENTS,
161 FIRST_ELEMENTS_KIND = FAST_SMI_ONLY_ELEMENTS, 161 FIRST_ELEMENTS_KIND = FAST_SMI_ONLY_ELEMENTS,
162 LAST_ELEMENTS_KIND = EXTERNAL_PIXEL_ELEMENTS 162 LAST_ELEMENTS_KIND = EXTERNAL_PIXEL_ELEMENTS
163 }; 163 };
164 164
165 enum CompareMapMode {
166 REQUIRE_EXACT_MAP,
167 ALLOW_ELEMENT_TRANSITION_MAPS
168 };
169
170 const int kElementsKindCount = LAST_ELEMENTS_KIND - FIRST_ELEMENTS_KIND + 1; 165 const int kElementsKindCount = LAST_ELEMENTS_KIND - FIRST_ELEMENTS_KIND + 1;
171 166
172 void PrintElementsKind(FILE* out, ElementsKind kind); 167 void PrintElementsKind(FILE* out, ElementsKind kind);
173 168
174 inline bool IsMoreGeneralElementsKindTransition(ElementsKind from_kind, 169 inline bool IsMoreGeneralElementsKindTransition(ElementsKind from_kind,
175 ElementsKind to_kind); 170 ElementsKind to_kind);
176 171
177 // Setter that skips the write barrier if mode is SKIP_WRITE_BARRIER. 172 // Setter that skips the write barrier if mode is SKIP_WRITE_BARRIER.
178 enum WriteBarrierMode { SKIP_WRITE_BARRIER, UPDATE_WRITE_BARRIER }; 173 enum WriteBarrierMode { SKIP_WRITE_BARRIER, UPDATE_WRITE_BARRIER };
179 174
(...skipping 7836 matching lines...) Expand 10 before | Expand all | Expand 10 after
8016 } else { 8011 } else {
8017 value &= ~(1 << bit_position); 8012 value &= ~(1 << bit_position);
8018 } 8013 }
8019 return value; 8014 return value;
8020 } 8015 }
8021 }; 8016 };
8022 8017
8023 } } // namespace v8::internal 8018 } } // namespace v8::internal
8024 8019
8025 #endif // V8_OBJECTS_H_ 8020 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/lithium.h ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698