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

Side by Side Diff: src/elements.h

Issue 2252393002: [elements, turbofan] Implement simple GrowElements (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Android build Created 4 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 | « no previous file | 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 } 107 }
108 108
109 virtual void AddElementsToKeyAccumulator(Handle<JSObject> receiver, 109 virtual void AddElementsToKeyAccumulator(Handle<JSObject> receiver,
110 KeyAccumulator* accumulator, 110 KeyAccumulator* accumulator,
111 AddKeyConversion convert) = 0; 111 AddKeyConversion convert) = 0;
112 112
113 virtual void TransitionElementsKind(Handle<JSObject> object, 113 virtual void TransitionElementsKind(Handle<JSObject> object,
114 Handle<Map> map) = 0; 114 Handle<Map> map) = 0;
115 virtual void GrowCapacityAndConvert(Handle<JSObject> object, 115 virtual void GrowCapacityAndConvert(Handle<JSObject> object,
116 uint32_t capacity) = 0; 116 uint32_t capacity) = 0;
117 // Unlike GrowCapacityAndConvert do not attempt to convert the backing store
118 // and simply return false in this case.
119 virtual bool GrowCapacity(Handle<JSObject> object, uint32_t index) = 0;
117 120
118 static void InitializeOncePerProcess(); 121 static void InitializeOncePerProcess();
119 static void TearDown(); 122 static void TearDown();
120 123
121 virtual void Set(Handle<JSObject> holder, uint32_t entry, Object* value) = 0; 124 virtual void Set(Handle<JSObject> holder, uint32_t entry, Object* value) = 0;
122 125
123 virtual void Reconfigure(Handle<JSObject> object, 126 virtual void Reconfigure(Handle<JSObject> object,
124 Handle<FixedArrayBase> backing_store, uint32_t entry, 127 Handle<FixedArrayBase> backing_store, uint32_t entry,
125 Handle<Object> value, 128 Handle<Object> value,
126 PropertyAttributes attributes) = 0; 129 PropertyAttributes attributes) = 0;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 bool allow_appending = false); 205 bool allow_appending = false);
203 206
204 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( 207 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements(
205 Handle<JSArray> array, 208 Handle<JSArray> array,
206 Arguments* args); 209 Arguments* args);
207 210
208 } // namespace internal 211 } // namespace internal
209 } // namespace v8 212 } // namespace v8
210 213
211 #endif // V8_ELEMENTS_H_ 214 #endif // V8_ELEMENTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/elements.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698