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

Side by Side Diff: src/elements.h

Issue 2164573003: [turbofan] Introduce a TransitionElementsKind simplified operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix the runtime fallback. Created 4 years, 5 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/compiler/verifier.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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 Handle<JSObject> object, Handle<FixedArray> keys, 103 Handle<JSObject> object, Handle<FixedArray> keys,
104 GetKeysConversion convert, PropertyFilter filter = ALL_PROPERTIES) { 104 GetKeysConversion convert, PropertyFilter filter = ALL_PROPERTIES) {
105 return PrependElementIndices(object, handle(object->elements()), keys, 105 return PrependElementIndices(object, handle(object->elements()), keys,
106 convert, filter); 106 convert, filter);
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,
114 Handle<Map> map) = 0;
113 virtual void GrowCapacityAndConvert(Handle<JSObject> object, 115 virtual void GrowCapacityAndConvert(Handle<JSObject> object,
114 uint32_t capacity) = 0; 116 uint32_t capacity) = 0;
115 117
116 static void InitializeOncePerProcess(); 118 static void InitializeOncePerProcess();
117 static void TearDown(); 119 static void TearDown();
118 120
119 virtual void Set(Handle<JSObject> holder, uint32_t entry, Object* value) = 0; 121 virtual void Set(Handle<JSObject> holder, uint32_t entry, Object* value) = 0;
120 122
121 virtual void Reconfigure(Handle<JSObject> object, 123 virtual void Reconfigure(Handle<JSObject> object,
122 Handle<FixedArrayBase> backing_store, uint32_t entry, 124 Handle<FixedArrayBase> backing_store, uint32_t entry,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 bool allow_appending = false); 189 bool allow_appending = false);
188 190
189 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( 191 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements(
190 Handle<JSArray> array, 192 Handle<JSArray> array,
191 Arguments* args); 193 Arguments* args);
192 194
193 } // namespace internal 195 } // namespace internal
194 } // namespace v8 196 } // namespace v8
195 197
196 #endif // V8_ELEMENTS_H_ 198 #endif // V8_ELEMENTS_H_
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/elements.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698