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

Side by Side Diff: src/elements.h

Issue 1818933003: Version 5.0.71.22 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.0
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 54
55 // Returns true if the backing store is compact in the given range 55 // Returns true if the backing store is compact in the given range
56 virtual bool IsPacked(Handle<JSObject> holder, 56 virtual bool IsPacked(Handle<JSObject> holder,
57 Handle<FixedArrayBase> backing_store, uint32_t start, 57 Handle<FixedArrayBase> backing_store, uint32_t start,
58 uint32_t end) = 0; 58 uint32_t end) = 0;
59 59
60 virtual Handle<Object> Get(Handle<JSObject> holder, uint32_t entry) = 0; 60 virtual Handle<Object> Get(Handle<JSObject> holder, uint32_t entry) = 0;
61 61
62 virtual PropertyDetails GetDetails(JSObject* holder, uint32_t entry) = 0; 62 virtual PropertyDetails GetDetails(JSObject* holder, uint32_t entry) = 0;
63 virtual bool HasAccessors(JSObject* holder) = 0;
63 64
64 // Modifies the length data property as specified for JSArrays and resizes the 65 // Modifies the length data property as specified for JSArrays and resizes the
65 // underlying backing store accordingly. The method honors the semantics of 66 // underlying backing store accordingly. The method honors the semantics of
66 // changing array sizes as defined in EcmaScript 5.1 15.4.5.2, i.e. array that 67 // changing array sizes as defined in EcmaScript 5.1 15.4.5.2, i.e. array that
67 // have non-deletable elements can only be shrunk to the size of highest 68 // have non-deletable elements can only be shrunk to the size of highest
68 // element that is non-deletable. 69 // element that is non-deletable.
69 virtual void SetLength(Handle<JSArray> holder, uint32_t new_length) = 0; 70 virtual void SetLength(Handle<JSArray> holder, uint32_t new_length) = 0;
70 71
71 // Deletes an element in an object. 72 // Deletes an element in an object.
72 virtual void Delete(Handle<JSObject> holder, uint32_t entry) = 0; 73 virtual void Delete(Handle<JSObject> holder, uint32_t entry) = 0;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 bool allow_appending = false); 184 bool allow_appending = false);
184 185
185 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( 186 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements(
186 Handle<JSArray> array, 187 Handle<JSArray> array,
187 Arguments* args); 188 Arguments* args);
188 189
189 } // namespace internal 190 } // namespace internal
190 } // namespace v8 191 } // namespace v8
191 192
192 #endif // V8_ELEMENTS_H_ 193 #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