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

Side by Side Diff: src/compiler/access-builder.h

Issue 2312703002: [turbofan] Use MachineRepresentation for PropertyCell access. (Closed)
Patch Set: Nit. 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_COMPILER_ACCESS_BUILDER_H_ 5 #ifndef V8_COMPILER_ACCESS_BUILDER_H_
6 #define V8_COMPILER_ACCESS_BUILDER_H_ 6 #define V8_COMPILER_ACCESS_BUILDER_H_
7 7
8 #include "src/compiler/simplified-operator.h" 8 #include "src/compiler/simplified-operator.h"
9 #include "src/elements-kind.h" 9 #include "src/elements-kind.h"
10 10
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // Provides access to arguments object fields. 188 // Provides access to arguments object fields.
189 static FieldAccess ForArgumentsLength(); 189 static FieldAccess ForArgumentsLength();
190 static FieldAccess ForArgumentsCallee(); 190 static FieldAccess ForArgumentsCallee();
191 191
192 // Provides access to FixedArray slots. 192 // Provides access to FixedArray slots.
193 static FieldAccess ForFixedArraySlot(size_t index); 193 static FieldAccess ForFixedArraySlot(size_t index);
194 194
195 // Provides access to Context slots. 195 // Provides access to Context slots.
196 static FieldAccess ForContextSlot(size_t index); 196 static FieldAccess ForContextSlot(size_t index);
197 197
198 // Provides access to PropertyCell::value() field.
199 static FieldAccess ForPropertyCellValue();
200 static FieldAccess ForPropertyCellValue(Type* type);
201
202 // Provides access to FixedArray elements. 198 // Provides access to FixedArray elements.
203 static ElementAccess ForFixedArrayElement(); 199 static ElementAccess ForFixedArrayElement();
204 static ElementAccess ForFixedArrayElement(ElementsKind kind); 200 static ElementAccess ForFixedArrayElement(ElementsKind kind);
205 201
206 // Provides access to FixedDoubleArray elements. 202 // Provides access to FixedDoubleArray elements.
207 static ElementAccess ForFixedDoubleArrayElement(); 203 static ElementAccess ForFixedDoubleArrayElement();
208 204
209 // Provides access to Fixed{type}TypedArray and External{type}Array elements. 205 // Provides access to Fixed{type}TypedArray and External{type}Array elements.
210 static ElementAccess ForTypedArrayElement(ExternalArrayType type, 206 static ElementAccess ForTypedArrayElement(ExternalArrayType type,
211 bool is_external); 207 bool is_external);
212 208
213 private: 209 private:
214 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); 210 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder);
215 }; 211 };
216 212
217 } // namespace compiler 213 } // namespace compiler
218 } // namespace internal 214 } // namespace internal
219 } // namespace v8 215 } // namespace v8
220 216
221 #endif // V8_COMPILER_ACCESS_BUILDER_H_ 217 #endif // V8_COMPILER_ACCESS_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/access-builder.cc » ('j') | src/compiler/js-global-object-specialization.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698