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

Side by Side Diff: src/elements.h

Issue 1409123003: [runtime] Avoid @@isConcatSpreadable lookup for fast path Array.prototype.concat (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: merging with master Created 4 years, 8 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
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 virtual void Reconfigure(Handle<JSObject> object, 128 virtual void Reconfigure(Handle<JSObject> object,
129 Handle<FixedArrayBase> backing_store, uint32_t entry, 129 Handle<FixedArrayBase> backing_store, uint32_t entry,
130 Handle<Object> value, 130 Handle<Object> value,
131 PropertyAttributes attributes) = 0; 131 PropertyAttributes attributes) = 0;
132 132
133 virtual void Add(Handle<JSObject> object, uint32_t index, 133 virtual void Add(Handle<JSObject> object, uint32_t index,
134 Handle<Object> value, PropertyAttributes attributes, 134 Handle<Object> value, PropertyAttributes attributes,
135 uint32_t new_capacity) = 0; 135 uint32_t new_capacity) = 0;
136 136
137 static Handle<JSArray> Concat(Isolate* isolate, Arguments* args, 137 static Handle<JSArray> Concat(Isolate* isolate, Arguments* args,
138 uint32_t concat_size); 138 uint32_t concat_size, uint32_t result_length);
139 139
140 virtual uint32_t Push(Handle<JSArray> receiver, Arguments* args, 140 virtual uint32_t Push(Handle<JSArray> receiver, Arguments* args,
141 uint32_t push_size) = 0; 141 uint32_t push_size) = 0;
142 142
143 virtual uint32_t Unshift(Handle<JSArray> receiver, 143 virtual uint32_t Unshift(Handle<JSArray> receiver,
144 Arguments* args, uint32_t unshift_size) = 0; 144 Arguments* args, uint32_t unshift_size) = 0;
145 145
146 virtual Handle<JSArray> Slice(Handle<JSObject> receiver, 146 virtual Handle<JSArray> Slice(Handle<JSObject> receiver,
147 uint32_t start, uint32_t end) = 0; 147 uint32_t start, uint32_t end) = 0;
148 148
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 bool allow_appending = false); 194 bool allow_appending = false);
195 195
196 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( 196 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements(
197 Handle<JSArray> array, 197 Handle<JSArray> array,
198 Arguments* args); 198 Arguments* args);
199 199
200 } // namespace internal 200 } // namespace internal
201 } // namespace v8 201 } // namespace v8
202 202
203 #endif // V8_ELEMENTS_H_ 203 #endif // V8_ELEMENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698