V8 Project
access-builder.h
Go to the documentation of this file.
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
3 // found in the LICENSE file.
4 
5 #ifndef V8_COMPILER_ACCESS_BUILDER_H_
6 #define V8_COMPILER_ACCESS_BUILDER_H_
7 
9 
10 namespace v8 {
11 namespace internal {
12 namespace compiler {
13 
14 // This access builder provides a set of static methods constructing commonly
15 // used FieldAccess and ElementAccess descriptors. These descriptors server as
16 // parameters to simplified load/store operators.
17 class AccessBuilder FINAL : public AllStatic {
18  public:
19  // Provides access to HeapObject::map() field.
20  static FieldAccess ForMap();
21 
22  // Provides access to JSObject::properties() field.
24 
25  // Provides access to JSObject::elements() field.
27 
28  // Provides access to JSFunction::context() field.
30 
31  // Provides access to JSArrayBuffer::backing_store() field.
33 
34  // Provides access to ExternalArray::external_pointer() field.
36 
37  // Provides access to FixedArray elements.
39 
40  // Provides access to Fixed{type}TypedArray and External{type}Array elements.
42  bool is_external);
43 
44  private:
46 };
47 
48 } // namespace compiler
49 } // namespace internal
50 } // namespace v8
51 
52 #endif // V8_COMPILER_ACCESS_BUILDER_H_
static ElementAccess ForFixedArrayElement()
static FieldAccess ForMap()
static FieldAccess ForJSArrayBufferBackingStore()
DISALLOW_IMPLICIT_CONSTRUCTORS(AccessBuilder)
static ElementAccess ForTypedArrayElement(ExternalArrayType type, bool is_external)
static FieldAccess ForJSObjectProperties()
static FieldAccess ForExternalArrayPointer()
static FieldAccess ForJSObjectElements()
static FieldAccess ForJSFunctionContext()
Debugger support for the V8 JavaScript engine.
Definition: accessors.cc:20
ExternalArrayType
Definition: v8.h:2217