| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 // Provides access to JSFunction::context() field. | 28 // Provides access to JSFunction::context() field. |
| 29 static FieldAccess ForJSFunctionContext(); | 29 static FieldAccess ForJSFunctionContext(); |
| 30 | 30 |
| 31 // Provides access to JSArrayBuffer::backing_store() field. | 31 // Provides access to JSArrayBuffer::backing_store() field. |
| 32 static FieldAccess ForJSArrayBufferBackingStore(); | 32 static FieldAccess ForJSArrayBufferBackingStore(); |
| 33 | 33 |
| 34 // Provides access to ExternalArray::external_pointer() field. | 34 // Provides access to ExternalArray::external_pointer() field. |
| 35 static FieldAccess ForExternalArrayPointer(); | 35 static FieldAccess ForExternalArrayPointer(); |
| 36 | 36 |
| 37 // Provides access to Map::instance_type() field. |
| 38 static FieldAccess ForMapInstanceType(); |
| 39 |
| 40 // Provides access to JSValue::value() field. |
| 41 static FieldAccess ForValue(); |
| 42 |
| 37 // Provides access to FixedArray elements. | 43 // Provides access to FixedArray elements. |
| 38 static ElementAccess ForFixedArrayElement(); | 44 static ElementAccess ForFixedArrayElement(); |
| 39 | 45 |
| 40 // Provides access to Fixed{type}TypedArray and External{type}Array elements. | 46 // Provides access to Fixed{type}TypedArray and External{type}Array elements. |
| 41 static ElementAccess ForTypedArrayElement(ExternalArrayType type, | 47 static ElementAccess ForTypedArrayElement(ExternalArrayType type, |
| 42 bool is_external); | 48 bool is_external); |
| 43 | 49 |
| 44 private: | 50 private: |
| 45 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); | 51 DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder); |
| 46 }; | 52 }; |
| 47 | 53 |
| 48 } // namespace compiler | 54 } // namespace compiler |
| 49 } // namespace internal | 55 } // namespace internal |
| 50 } // namespace v8 | 56 } // namespace v8 |
| 51 | 57 |
| 52 #endif // V8_COMPILER_ACCESS_BUILDER_H_ | 58 #endif // V8_COMPILER_ACCESS_BUILDER_H_ |
| OLD | NEW |