OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_INTERPRETER_CONSTANT_ARRAY_BUILDER_H_ | 5 #ifndef V8_INTERPRETER_CONSTANT_ARRAY_BUILDER_H_ |
6 #define V8_INTERPRETER_CONSTANT_ARRAY_BUILDER_H_ | 6 #define V8_INTERPRETER_CONSTANT_ARRAY_BUILDER_H_ |
7 | 7 |
8 #include "src/identity-map.h" | 8 #include "src/identity-map.h" |
9 #include "src/interpreter/bytecodes.h" | 9 #include "src/interpreter/bytecodes.h" |
10 #include "src/zone-containers.h" | 10 #include "src/zone-containers.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 DISALLOW_COPY_AND_ASSIGN(ConstantArraySlice); | 91 DISALLOW_COPY_AND_ASSIGN(ConstantArraySlice); |
92 }; | 92 }; |
93 | 93 |
94 const ConstantArraySlice* IndexToSlice(size_t index) const; | 94 const ConstantArraySlice* IndexToSlice(size_t index) const; |
95 ConstantArraySlice* OperandSizeToSlice(OperandSize operand_size) const; | 95 ConstantArraySlice* OperandSizeToSlice(OperandSize operand_size) const; |
96 | 96 |
97 IdentityMap<index_t>* constants_map() { return &constants_map_; } | 97 IdentityMap<index_t>* constants_map() { return &constants_map_; } |
98 | 98 |
99 Isolate* isolate_; | 99 Isolate* isolate_; |
100 ConstantArraySlice* idx_slice_[2]; | 100 ConstantArraySlice* idx_slice_[3]; |
101 IdentityMap<index_t> constants_map_; | 101 IdentityMap<index_t> constants_map_; |
102 }; | 102 }; |
103 | 103 |
104 } // namespace interpreter | 104 } // namespace interpreter |
105 } // namespace internal | 105 } // namespace internal |
106 } // namespace v8 | 106 } // namespace v8 |
107 | 107 |
108 #endif // V8_INTERPRETER_CONSTANT_ARRAY_BUILDER_H_ | 108 #endif // V8_INTERPRETER_CONSTANT_ARRAY_BUILDER_H_ |
OLD | NEW |