OLD | NEW |
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 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 // Provides access to Map::instance_type() field. | 37 // Provides access to Map::instance_type() field. |
38 static FieldAccess ForMapInstanceType(); | 38 static FieldAccess ForMapInstanceType(); |
39 | 39 |
40 // Provides access to String::length() field. | 40 // Provides access to String::length() field. |
41 static FieldAccess ForStringLength(); | 41 static FieldAccess ForStringLength(); |
42 | 42 |
43 // Provides access to JSValue::value() field. | 43 // Provides access to JSValue::value() field. |
44 static FieldAccess ForValue(); | 44 static FieldAccess ForValue(); |
45 | 45 |
| 46 // Provides access Context slots. |
| 47 static FieldAccess ForContextSlot(size_t index); |
| 48 |
46 // Provides access to FixedArray elements. | 49 // Provides access to FixedArray elements. |
47 static ElementAccess ForFixedArrayElement(); | 50 static ElementAccess ForFixedArrayElement(); |
48 | 51 |
49 // Provides access to Fixed{type}TypedArray and External{type}Array elements. | 52 // Provides access to Fixed{type}TypedArray and External{type}Array elements. |
50 static ElementAccess ForTypedArrayElement(ExternalArrayType type, | 53 static ElementAccess ForTypedArrayElement(ExternalArrayType type, |
51 bool is_external); | 54 bool is_external); |
52 | 55 |
53 private: | 56 private: |
54 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); | 57 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); |
55 }; | 58 }; |
56 | 59 |
57 } // namespace compiler | 60 } // namespace compiler |
58 } // namespace internal | 61 } // namespace internal |
59 } // namespace v8 | 62 } // namespace v8 |
60 | 63 |
61 #endif // V8_COMPILER_ACCESS_BUILDER_H_ | 64 #endif // V8_COMPILER_ACCESS_BUILDER_H_ |
OLD | NEW |