OLD | NEW |
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 static Handle<JSArray> Concat(Isolate* isolate, Arguments* args, | 136 static Handle<JSArray> Concat(Isolate* isolate, Arguments* args, |
137 uint32_t concat_size, uint32_t result_length); | 137 uint32_t concat_size, uint32_t result_length); |
138 | 138 |
139 virtual uint32_t Push(Handle<JSArray> receiver, Arguments* args, | 139 virtual uint32_t Push(Handle<JSArray> receiver, Arguments* args, |
140 uint32_t push_size) = 0; | 140 uint32_t push_size) = 0; |
141 | 141 |
142 virtual uint32_t Unshift(Handle<JSArray> receiver, | 142 virtual uint32_t Unshift(Handle<JSArray> receiver, |
143 Arguments* args, uint32_t unshift_size) = 0; | 143 Arguments* args, uint32_t unshift_size) = 0; |
144 | 144 |
145 virtual Handle<JSArray> Slice(Handle<JSObject> receiver, | 145 virtual Handle<JSObject> Slice(Handle<JSObject> receiver, uint32_t start, |
146 uint32_t start, uint32_t end) = 0; | 146 uint32_t end) = 0; |
| 147 |
| 148 virtual Handle<JSObject> Slice(Handle<JSObject> receiver, uint32_t start, |
| 149 uint32_t end, Handle<JSObject> result) = 0; |
147 | 150 |
148 virtual Handle<JSArray> Splice(Handle<JSArray> receiver, | 151 virtual Handle<JSArray> Splice(Handle<JSArray> receiver, |
149 uint32_t start, uint32_t delete_count, | 152 uint32_t start, uint32_t delete_count, |
150 Arguments* args, uint32_t add_count) = 0; | 153 Arguments* args, uint32_t add_count) = 0; |
151 | 154 |
152 virtual Handle<Object> Pop(Handle<JSArray> receiver) = 0; | 155 virtual Handle<Object> Pop(Handle<JSArray> receiver) = 0; |
153 | 156 |
154 virtual Handle<Object> Shift(Handle<JSArray> receiver) = 0; | 157 virtual Handle<Object> Shift(Handle<JSArray> receiver) = 0; |
155 | 158 |
156 virtual Handle<SeededNumberDictionary> Normalize(Handle<JSObject> object) = 0; | 159 virtual Handle<SeededNumberDictionary> Normalize(Handle<JSObject> object) = 0; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 bool allow_appending = false); | 227 bool allow_appending = false); |
225 | 228 |
226 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( | 229 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( |
227 Handle<JSArray> array, | 230 Handle<JSArray> array, |
228 Arguments* args); | 231 Arguments* args); |
229 | 232 |
230 } // namespace internal | 233 } // namespace internal |
231 } // namespace v8 | 234 } // namespace v8 |
232 | 235 |
233 #endif // V8_ELEMENTS_H_ | 236 #endif // V8_ELEMENTS_H_ |
OLD | NEW |