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

Side by Side Diff: src/elements.h

Issue 430503007: Rename ASSERT* to DCHECK*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and fixes Created 6 years, 4 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/effects.h ('k') | src/elements.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_H_ 5 #ifndef V8_ELEMENTS_H_
6 #define V8_ELEMENTS_H_ 6 #define V8_ELEMENTS_H_
7 7
8 #include "src/elements-kind.h" 8 #include "src/elements-kind.h"
9 #include "src/heap.h" 9 #include "src/heap.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 MUST_USE_RESULT inline MaybeHandle<FixedArray> AddElementsToFixedArray( 192 MUST_USE_RESULT inline MaybeHandle<FixedArray> AddElementsToFixedArray(
193 Handle<Object> receiver, 193 Handle<Object> receiver,
194 Handle<JSObject> holder, 194 Handle<JSObject> holder,
195 Handle<FixedArray> to) { 195 Handle<FixedArray> to) {
196 return AddElementsToFixedArray( 196 return AddElementsToFixedArray(
197 receiver, holder, to, handle(holder->elements())); 197 receiver, holder, to, handle(holder->elements()));
198 } 198 }
199 199
200 // Returns a shared ElementsAccessor for the specified ElementsKind. 200 // Returns a shared ElementsAccessor for the specified ElementsKind.
201 static ElementsAccessor* ForKind(ElementsKind elements_kind) { 201 static ElementsAccessor* ForKind(ElementsKind elements_kind) {
202 ASSERT(elements_kind < kElementsKindCount); 202 DCHECK(elements_kind < kElementsKindCount);
203 return elements_accessors_[elements_kind]; 203 return elements_accessors_[elements_kind];
204 } 204 }
205 205
206 static ElementsAccessor* ForArray(Handle<FixedArrayBase> array); 206 static ElementsAccessor* ForArray(Handle<FixedArrayBase> array);
207 207
208 static void InitializeOncePerProcess(); 208 static void InitializeOncePerProcess();
209 static void TearDown(); 209 static void TearDown();
210 210
211 protected: 211 protected:
212 friend class SloppyArgumentsElementsAccessor; 212 friend class SloppyArgumentsElementsAccessor;
(...skipping 21 matching lines...) Expand all
234 void CheckArrayAbuse(Handle<JSObject> obj, const char* op, uint32_t key, 234 void CheckArrayAbuse(Handle<JSObject> obj, const char* op, uint32_t key,
235 bool allow_appending = false); 235 bool allow_appending = false);
236 236
237 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( 237 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements(
238 Handle<JSArray> array, 238 Handle<JSArray> array,
239 Arguments* args); 239 Arguments* args);
240 240
241 } } // namespace v8::internal 241 } } // namespace v8::internal
242 242
243 #endif // V8_ELEMENTS_H_ 243 #endif // V8_ELEMENTS_H_
OLDNEW
« no previous file with comments | « src/effects.h ('k') | src/elements.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698