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 #include "src/compiler/js-operator.h" | 5 #include "src/compiler/js-operator.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "src/base/lazy-instance.h" | 9 #include "src/base/lazy-instance.h" |
10 #include "src/compiler/opcodes.h" | 10 #include "src/compiler/opcodes.h" |
11 #include "src/compiler/operator.h" | 11 #include "src/compiler/operator.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 namespace compiler { | 15 namespace compiler { |
16 | 16 |
17 bool operator==(VectorSlotPair const& lhs, VectorSlotPair const& rhs) { | 17 bool operator==(VectorSlotPair const& lhs, VectorSlotPair const& rhs) { |
18 return lhs.slot() == rhs.slot() && lhs.vector() == rhs.vector(); | 18 return lhs.slot() == rhs.slot() && |
| 19 lhs.vector().location() == rhs.vector().location(); |
19 } | 20 } |
20 | 21 |
21 | 22 |
22 bool operator!=(VectorSlotPair const& lhs, VectorSlotPair const& rhs) { | 23 bool operator!=(VectorSlotPair const& lhs, VectorSlotPair const& rhs) { |
23 return !(lhs == rhs); | 24 return !(lhs == rhs); |
24 } | 25 } |
25 | 26 |
26 | 27 |
27 size_t hash_value(VectorSlotPair const& p) { | 28 size_t hash_value(VectorSlotPair const& p) { |
28 return base::hash_combine(p.slot(), p.vector()); | 29 return base::hash_combine(p.slot(), p.vector().location()); |
29 } | 30 } |
30 | 31 |
31 | 32 |
32 std::ostream& operator<<(std::ostream& os, CallFunctionParameters const& p) { | 33 std::ostream& operator<<(std::ostream& os, CallFunctionParameters const& p) { |
33 os << p.arity() << ", " << p.flags() << ", " << p.language_mode(); | 34 os << p.arity() << ", " << p.flags() << ", " << p.language_mode(); |
34 if (p.AllowTailCalls()) { | 35 if (p.AllowTailCalls()) { |
35 os << ", ALLOW_TAIL_CALLS"; | 36 os << ", ALLOW_TAIL_CALLS"; |
36 } | 37 } |
37 return os; | 38 return os; |
38 } | 39 } |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 Handle<String>::hash>( // -- | 730 Handle<String>::hash>( // -- |
730 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode | 731 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode |
731 "JSCreateCatchContext", // name | 732 "JSCreateCatchContext", // name |
732 2, 1, 1, 1, 1, 2, // counts | 733 2, 1, 1, 1, 1, 2, // counts |
733 name); // parameter | 734 name); // parameter |
734 } | 735 } |
735 | 736 |
736 } // namespace compiler | 737 } // namespace compiler |
737 } // namespace internal | 738 } // namespace internal |
738 } // namespace v8 | 739 } // namespace v8 |
OLD | NEW |