OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_JS_OPERATOR_H_ | 5 #ifndef V8_COMPILER_JS_OPERATOR_H_ |
6 #define V8_COMPILER_JS_OPERATOR_H_ | 6 #define V8_COMPILER_JS_OPERATOR_H_ |
7 | 7 |
8 #include "src/runtime/runtime.h" | 8 #include "src/runtime/runtime.h" |
9 #include "src/unique.h" | 9 #include "src/unique.h" |
10 | 10 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 size_t hash_value(ContextAccess const&); | 92 size_t hash_value(ContextAccess const&); |
93 | 93 |
94 std::ostream& operator<<(std::ostream&, ContextAccess const&); | 94 std::ostream& operator<<(std::ostream&, ContextAccess const&); |
95 | 95 |
96 ContextAccess const& ContextAccessOf(Operator const*); | 96 ContextAccess const& ContextAccessOf(Operator const*); |
97 | 97 |
98 | 98 |
99 class VectorSlotPair { | 99 class VectorSlotPair { |
100 public: | 100 public: |
101 VectorSlotPair(Handle<TypeFeedbackVector> vector, int slot) | 101 VectorSlotPair(Handle<TypeFeedbackVector> vector, FeedbackVectorSlot slot) |
102 : vector_(vector), slot_(slot) {} | 102 : vector_(vector), slot_(slot) {} |
103 | 103 |
104 Handle<TypeFeedbackVector> vector() const { return vector_; } | 104 Handle<TypeFeedbackVector> vector() const { return vector_; } |
105 int slot() const { return slot_; } | 105 FeedbackVectorSlot slot() const { return slot_; } |
106 | 106 |
107 private: | 107 private: |
108 const Handle<TypeFeedbackVector> vector_; | 108 const Handle<TypeFeedbackVector> vector_; |
109 const int slot_; | 109 const FeedbackVectorSlot slot_; |
110 }; | 110 }; |
111 | 111 |
112 | 112 |
113 bool operator==(VectorSlotPair const& lhs, VectorSlotPair const& rhs); | 113 bool operator==(VectorSlotPair const& lhs, VectorSlotPair const& rhs); |
114 | 114 |
115 | 115 |
116 // Defines the property being loaded from an object by a named load. This is | 116 // Defines the property being loaded from an object by a named load. This is |
117 // used as a parameter by JSLoadNamed operators. | 117 // used as a parameter by JSLoadNamed operators. |
118 class LoadNamedParameters FINAL { | 118 class LoadNamedParameters FINAL { |
119 public: | 119 public: |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 | 264 |
265 const JSOperatorBuilderImpl& impl_; | 265 const JSOperatorBuilderImpl& impl_; |
266 Zone* const zone_; | 266 Zone* const zone_; |
267 }; | 267 }; |
268 | 268 |
269 } // namespace compiler | 269 } // namespace compiler |
270 } // namespace internal | 270 } // namespace internal |
271 } // namespace v8 | 271 } // namespace v8 |
272 | 272 |
273 #endif // V8_COMPILER_JS_OPERATOR_H_ | 273 #endif // V8_COMPILER_JS_OPERATOR_H_ |
OLD | NEW |