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

Side by Side Diff: src/elements.h

Issue 1322803002: Adding ElementsAccessor::Unshift (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@2015-08-28_elements_accessor_pop
Patch Set: space Created 5 years, 3 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 virtual void Add(Handle<JSObject> object, uint32_t index, 129 virtual void Add(Handle<JSObject> object, uint32_t index,
130 Handle<Object> value, PropertyAttributes attributes, 130 Handle<Object> value, PropertyAttributes attributes,
131 uint32_t new_capacity) = 0; 131 uint32_t new_capacity) = 0;
132 132
133 // TODO(cbruni): Consider passing Arguments* instead of Object** depending on 133 // TODO(cbruni): Consider passing Arguments* instead of Object** depending on
134 // the requirements of future callers. 134 // the requirements of future callers.
135 virtual uint32_t Push(Handle<JSArray> receiver, 135 virtual uint32_t Push(Handle<JSArray> receiver,
136 Handle<FixedArrayBase> backing_store, Object** objects, 136 Handle<FixedArrayBase> backing_store, Object** objects,
137 uint32_t start, int direction) = 0; 137 uint32_t start, int direction) = 0;
138 138
139 virtual uint32_t Unshift(Handle<JSArray> receiver,
140 Handle<FixedArrayBase> backing_store,
141 Arguments* args, uint32_t unshift_size) = 0;
142
139 virtual Handle<JSArray> Slice(Handle<JSObject> receiver, 143 virtual Handle<JSArray> Slice(Handle<JSObject> receiver,
140 Handle<FixedArrayBase> backing_store, 144 Handle<FixedArrayBase> backing_store,
141 uint32_t start, uint32_t end) = 0; 145 uint32_t start, uint32_t end) = 0;
142 146
143 virtual Handle<JSArray> Splice(Handle<JSArray> receiver, 147 virtual Handle<JSArray> Splice(Handle<JSArray> receiver,
144 Handle<FixedArrayBase> backing_store, 148 Handle<FixedArrayBase> backing_store,
145 uint32_t start, uint32_t delete_count, 149 uint32_t start, uint32_t delete_count,
146 Arguments args, uint32_t add_count) = 0; 150 Arguments args, uint32_t add_count) = 0;
147 151
148 virtual Handle<Object> Pop(Handle<JSArray> receiver, 152 virtual Handle<Object> Pop(Handle<JSArray> receiver,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void CheckArrayAbuse(Handle<JSObject> obj, const char* op, uint32_t index, 184 void CheckArrayAbuse(Handle<JSObject> obj, const char* op, uint32_t index,
181 bool allow_appending = false); 185 bool allow_appending = false);
182 186
183 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( 187 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements(
184 Handle<JSArray> array, 188 Handle<JSArray> array,
185 Arguments* args); 189 Arguments* args);
186 190
187 } } // namespace v8::internal 191 } } // namespace v8::internal
188 192
189 #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