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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 46 // Provides access Context slots. |
47 static FieldAccess ForContextSlot(size_t index); | 47 static FieldAccess ForContextSlot(size_t index); |
48 | 48 |
49 // Provides access to the backing store of a StatsCounter. | 49 // Provides access to the backing store of a StatsCounter. |
50 static FieldAccess ForStatsCounter(); | 50 static FieldAccess ForStatsCounter(); |
51 | 51 |
| 52 // Provides access to PropertyCell::value() field. |
| 53 static FieldAccess ForPropertyCellValue(); |
| 54 |
52 // Provides access to FixedArray elements. | 55 // Provides access to FixedArray elements. |
53 static ElementAccess ForFixedArrayElement(); | 56 static ElementAccess ForFixedArrayElement(); |
54 | 57 |
55 // Provides access to Fixed{type}TypedArray and External{type}Array elements. | 58 // Provides access to Fixed{type}TypedArray and External{type}Array elements. |
56 static ElementAccess ForTypedArrayElement(ExternalArrayType type, | 59 static ElementAccess ForTypedArrayElement(ExternalArrayType type, |
57 bool is_external); | 60 bool is_external); |
58 | 61 |
59 // Provides access to the charaters of sequential strings. | 62 // Provides access to the charaters of sequential strings. |
60 static ElementAccess ForSeqStringChar(String::Encoding encoding); | 63 static ElementAccess ForSeqStringChar(String::Encoding encoding); |
61 | 64 |
62 private: | 65 private: |
63 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); | 66 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); |
64 }; | 67 }; |
65 | 68 |
66 } // namespace compiler | 69 } // namespace compiler |
67 } // namespace internal | 70 } // namespace internal |
68 } // namespace v8 | 71 } // namespace v8 |
69 | 72 |
70 #endif // V8_COMPILER_ACCESS_BUILDER_H_ | 73 #endif // V8_COMPILER_ACCESS_BUILDER_H_ |
OLD | NEW |