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_COMPILER_ACCESS_INFO_H_ | 5 #ifndef V8_COMPILER_ACCESS_INFO_H_ |
6 #define V8_COMPILER_ACCESS_INFO_H_ | 6 #define V8_COMPILER_ACCESS_INFO_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/field-index.h" | 10 #include "src/field-index.h" |
11 #include "src/objects.h" | 11 #include "src/objects.h" |
12 #include "src/zone-containers.h" | 12 #include "src/zone-containers.h" |
13 | 13 |
14 namespace v8 { | 14 namespace v8 { |
15 namespace internal { | 15 namespace internal { |
16 | 16 |
17 // Forward declarations. | 17 // Forward declarations. |
18 class CompilationDependencies; | 18 class CompilationDependencies; |
19 class Factory; | 19 class Factory; |
20 class TypeCache; | |
21 | 20 |
22 namespace compiler { | 21 namespace compiler { |
23 | 22 |
| 23 // Forward declarations. |
| 24 class TypeCache; |
| 25 |
24 // Whether we are loading a property or storing to a property. | 26 // Whether we are loading a property or storing to a property. |
25 enum class AccessMode { kLoad, kStore }; | 27 enum class AccessMode { kLoad, kStore }; |
26 | 28 |
27 std::ostream& operator<<(std::ostream&, AccessMode); | 29 std::ostream& operator<<(std::ostream&, AccessMode); |
28 | 30 |
29 typedef std::vector<Handle<Map>> MapList; | 31 typedef std::vector<Handle<Map>> MapList; |
30 | 32 |
31 // Mapping of transition source to transition target. | 33 // Mapping of transition source to transition target. |
32 typedef std::vector<std::pair<Handle<Map>, Handle<Map>>> MapTransitionList; | 34 typedef std::vector<std::pair<Handle<Map>, Handle<Map>>> MapTransitionList; |
33 | 35 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 Zone* const zone_; | 151 Zone* const zone_; |
150 | 152 |
151 DISALLOW_COPY_AND_ASSIGN(AccessInfoFactory); | 153 DISALLOW_COPY_AND_ASSIGN(AccessInfoFactory); |
152 }; | 154 }; |
153 | 155 |
154 } // namespace compiler | 156 } // namespace compiler |
155 } // namespace internal | 157 } // namespace internal |
156 } // namespace v8 | 158 } // namespace v8 |
157 | 159 |
158 #endif // V8_COMPILER_ACCESS_INFO_H_ | 160 #endif // V8_COMPILER_ACCESS_INFO_H_ |
OLD | NEW |