| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // Provides access to SharedFunctionInfo::feedback_vector() field. | 96 // Provides access to SharedFunctionInfo::feedback_vector() field. |
| 97 static FieldAccess ForSharedFunctionInfoTypeFeedbackVector(); | 97 static FieldAccess ForSharedFunctionInfoTypeFeedbackVector(); |
| 98 | 98 |
| 99 // Provides access to FixedArray elements. | 99 // Provides access to FixedArray elements. |
| 100 static ElementAccess ForFixedArrayElement(); | 100 static ElementAccess ForFixedArrayElement(); |
| 101 | 101 |
| 102 // Provides access to Fixed{type}TypedArray and External{type}Array elements. | 102 // Provides access to Fixed{type}TypedArray and External{type}Array elements. |
| 103 static ElementAccess ForTypedArrayElement(ExternalArrayType type, | 103 static ElementAccess ForTypedArrayElement(ExternalArrayType type, |
| 104 bool is_external); | 104 bool is_external); |
| 105 | 105 |
| 106 // Provides access to the characters of sequential strings. | |
| 107 static ElementAccess ForSeqStringChar(String::Encoding encoding); | |
| 108 | |
| 109 // =========================================================================== | 106 // =========================================================================== |
| 110 // Access to global per-isolate variables (based on external reference). | 107 // Access to global per-isolate variables (based on external reference). |
| 111 | 108 |
| 112 // Provides access to the backing store of a StatsCounter. | 109 // Provides access to the backing store of a StatsCounter. |
| 113 static FieldAccess ForStatsCounter(); | 110 static FieldAccess ForStatsCounter(); |
| 114 | 111 |
| 115 // =========================================================================== | 112 // =========================================================================== |
| 116 // Access to activation records on the stack (based on frame pointer). | 113 // Access to activation records on the stack (based on frame pointer). |
| 117 | 114 |
| 118 // Provides access to the next frame pointer in a stack frame. | 115 // Provides access to the next frame pointer in a stack frame. |
| 119 static FieldAccess ForFrameCallerFramePtr(); | 116 static FieldAccess ForFrameCallerFramePtr(); |
| 120 | 117 |
| 121 // Provides access to the marker in a stack frame. | 118 // Provides access to the marker in a stack frame. |
| 122 static FieldAccess ForFrameMarker(); | 119 static FieldAccess ForFrameMarker(); |
| 123 | 120 |
| 124 private: | 121 private: |
| 125 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); | 122 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); |
| 126 }; | 123 }; |
| 127 | 124 |
| 128 } // namespace compiler | 125 } // namespace compiler |
| 129 } // namespace internal | 126 } // namespace internal |
| 130 } // namespace v8 | 127 } // namespace v8 |
| 131 | 128 |
| 132 #endif // V8_COMPILER_ACCESS_BUILDER_H_ | 129 #endif // V8_COMPILER_ACCESS_BUILDER_H_ |
| OLD | NEW |