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

Side by Side Diff: src/elements.h

Issue 2244983004: [elements, turbofan] Implement simple GrowElements (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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') | src/elements.cc » ('J')
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 capacity) = 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 bool allow_appending = false); 198 bool allow_appending = false);
196 199
197 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( 200 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements(
198 Handle<JSArray> array, 201 Handle<JSArray> array,
199 Arguments* args); 202 Arguments* args);
200 203
201 } // namespace internal 204 } // namespace internal
202 } // namespace v8 205 } // namespace v8
203 206
204 #endif // V8_ELEMENTS_H_ 207 #endif // V8_ELEMENTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/elements.cc » ('j') | src/elements.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698