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

Side by Side Diff: src/elements.h

Issue 1820963002: Version 4.9.385.31 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.9
Patch Set: Created 4 years, 9 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
« no previous file with comments | « src/builtins.cc ('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/heap.h" 9 #include "src/heap/heap.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // all but DICTIONARY_ELEMENTS and SLOW_SLOPPY_ARGUMENTS_ELEMENTS. 47 // all but DICTIONARY_ELEMENTS and SLOW_SLOPPY_ARGUMENTS_ELEMENTS.
48 virtual bool HasElement(Handle<JSObject> holder, uint32_t index, 48 virtual bool HasElement(Handle<JSObject> holder, uint32_t index,
49 Handle<FixedArrayBase> backing_store, 49 Handle<FixedArrayBase> backing_store,
50 PropertyFilter filter = ALL_PROPERTIES) = 0; 50 PropertyFilter filter = ALL_PROPERTIES) = 0;
51 51
52 inline bool HasElement(Handle<JSObject> holder, uint32_t index, 52 inline bool HasElement(Handle<JSObject> holder, uint32_t index,
53 PropertyFilter filter = ALL_PROPERTIES) { 53 PropertyFilter filter = ALL_PROPERTIES) {
54 return HasElement(holder, index, handle(holder->elements()), filter); 54 return HasElement(holder, index, handle(holder->elements()), filter);
55 } 55 }
56 56
57 virtual bool HasAccessors(JSObject* holder) = 0;
58
57 // Returns true if the backing store is compact in the given range 59 // Returns true if the backing store is compact in the given range
58 virtual bool IsPacked(Handle<JSObject> holder, 60 virtual bool IsPacked(Handle<JSObject> holder,
59 Handle<FixedArrayBase> backing_store, uint32_t start, 61 Handle<FixedArrayBase> backing_store, uint32_t start,
60 uint32_t end) = 0; 62 uint32_t end) = 0;
61 63
62 virtual Handle<Object> Get(Handle<FixedArrayBase> backing_store, 64 virtual Handle<Object> Get(Handle<FixedArrayBase> backing_store,
63 uint32_t entry) = 0; 65 uint32_t entry) = 0;
64 66
65 // Modifies the length data property as specified for JSArrays and resizes the 67 // Modifies the length data property as specified for JSArrays and resizes the
66 // underlying backing store accordingly. The method honors the semantics of 68 // underlying backing store accordingly. The method honors the semantics of
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 bool allow_appending = false); 215 bool allow_appending = false);
214 216
215 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( 217 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements(
216 Handle<JSArray> array, 218 Handle<JSArray> array,
217 Arguments* args); 219 Arguments* args);
218 220
219 } // namespace internal 221 } // namespace internal
220 } // namespace v8 222 } // namespace v8
221 223
222 #endif // V8_ELEMENTS_H_ 224 #endif // V8_ELEMENTS_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/elements.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698