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

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, 7 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/deoptimizer.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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 virtual void Reconfigure(Handle<JSObject> object, 121 virtual void Reconfigure(Handle<JSObject> object,
122 Handle<FixedArrayBase> backing_store, uint32_t entry, 122 Handle<FixedArrayBase> backing_store, uint32_t entry,
123 Handle<Object> value, 123 Handle<Object> value,
124 PropertyAttributes attributes) = 0; 124 PropertyAttributes attributes) = 0;
125 125
126 virtual void Add(Handle<JSObject> object, uint32_t index, 126 virtual void Add(Handle<JSObject> object, uint32_t index,
127 Handle<Object> value, PropertyAttributes attributes, 127 Handle<Object> value, PropertyAttributes attributes,
128 uint32_t new_capacity) = 0; 128 uint32_t new_capacity) = 0;
129 129
130 static Handle<JSArray> Concat(Isolate* isolate, Arguments* args, 130 static Handle<JSArray> Concat(Isolate* isolate, Arguments* args,
131 uint32_t concat_size); 131 uint32_t concat_size, uint32_t result_length);
132 132
133 virtual uint32_t Push(Handle<JSArray> receiver, Arguments* args, 133 virtual uint32_t Push(Handle<JSArray> receiver, Arguments* args,
134 uint32_t push_size) = 0; 134 uint32_t push_size) = 0;
135 135
136 virtual uint32_t Unshift(Handle<JSArray> receiver, 136 virtual uint32_t Unshift(Handle<JSArray> receiver,
137 Arguments* args, uint32_t unshift_size) = 0; 137 Arguments* args, uint32_t unshift_size) = 0;
138 138
139 virtual Handle<JSArray> Slice(Handle<JSObject> receiver, 139 virtual Handle<JSArray> Slice(Handle<JSObject> receiver,
140 uint32_t start, uint32_t end) = 0; 140 uint32_t start, uint32_t end) = 0;
141 141
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 bool allow_appending = false); 187 bool allow_appending = false);
188 188
189 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( 189 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements(
190 Handle<JSArray> array, 190 Handle<JSArray> array,
191 Arguments* args); 191 Arguments* args);
192 192
193 } // namespace internal 193 } // namespace internal
194 } // namespace v8 194 } // namespace v8
195 195
196 #endif // V8_ELEMENTS_H_ 196 #endif // V8_ELEMENTS_H_
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/elements.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698