| 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 #include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker! | 12 #include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker! |
| 13 #include "src/type-feedback-vector-inl.h" | 13 #include "src/type-feedback-vector-inl.h" |
| 14 | 14 |
| 15 namespace v8 { | 15 namespace v8 { |
| 16 namespace internal { | 16 namespace internal { |
| 17 namespace compiler { | 17 namespace compiler { |
| 18 | 18 |
| 19 VectorSlotPair::VectorSlotPair() : slot_(FeedbackVectorICSlot::Invalid()) {} | 19 VectorSlotPair::VectorSlotPair() {} |
| 20 | 20 |
| 21 | 21 |
| 22 int VectorSlotPair::index() const { | 22 int VectorSlotPair::index() const { |
| 23 return vector_.is_null() ? -1 : vector_->GetIndex(slot_); | 23 return vector_.is_null() ? -1 : vector_->GetIndex(slot_); |
| 24 } | 24 } |
| 25 | 25 |
| 26 | 26 |
| 27 bool operator==(VectorSlotPair const& lhs, VectorSlotPair const& rhs) { | 27 bool operator==(VectorSlotPair const& lhs, VectorSlotPair const& rhs) { |
| 28 return lhs.slot() == rhs.slot() && | 28 return lhs.slot() == rhs.slot() && |
| 29 lhs.vector().location() == rhs.vector().location(); | 29 lhs.vector().location() == rhs.vector().location(); |
| (...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 Handle<ScopeInfo>::hash>( // -- | 801 Handle<ScopeInfo>::hash>( // -- |
| 802 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode | 802 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode |
| 803 "JSCreateScriptContext", // name | 803 "JSCreateScriptContext", // name |
| 804 1, 1, 1, 1, 1, 2, // counts | 804 1, 1, 1, 1, 1, 2, // counts |
| 805 scpope_info); // parameter | 805 scpope_info); // parameter |
| 806 } | 806 } |
| 807 | 807 |
| 808 } // namespace compiler | 808 } // namespace compiler |
| 809 } // namespace internal | 809 } // namespace internal |
| 810 } // namespace v8 | 810 } // namespace v8 |
| OLD | NEW |