Chromium Code Reviews| 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/type-feedback-vector.h" | |
|
Michael Starzinger
2015/09/01 11:43:42
Please leave this include at the top as it was bef
| |
| 6 | |
| 7 #include "src/code-stubs.h" | 5 #include "src/code-stubs.h" |
| 8 #include "src/ic/ic.h" | 6 #include "src/ic/ic.h" |
| 9 #include "src/ic/ic-state.h" | 7 #include "src/ic/ic-state.h" |
| 10 #include "src/objects.h" | 8 #include "src/objects.h" |
| 9 #include "src/type-feedback-vector.h" | |
| 11 #include "src/type-feedback-vector-inl.h" | 10 #include "src/type-feedback-vector-inl.h" |
| 12 | 11 |
| 13 namespace v8 { | 12 namespace v8 { |
| 14 namespace internal { | 13 namespace internal { |
| 15 | 14 |
| 16 // static | 15 // static |
| 17 TypeFeedbackVector::VectorICKind TypeFeedbackVector::FromCodeKind( | 16 TypeFeedbackVector::VectorICKind TypeFeedbackVector::FromCodeKind( |
| 18 Code::Kind kind) { | 17 Code::Kind kind) { |
| 19 switch (kind) { | 18 switch (kind) { |
| 20 case Code::CALL_IC: | 19 case Code::CALL_IC: |
| (...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 787 return mode; | 786 return mode; |
| 788 } | 787 } |
| 789 | 788 |
| 790 | 789 |
| 791 IcCheckType KeyedStoreICNexus::GetKeyType() const { | 790 IcCheckType KeyedStoreICNexus::GetKeyType() const { |
| 792 // The structure of the vector slots tells us the type. | 791 // The structure of the vector slots tells us the type. |
| 793 return GetFeedback()->IsName() ? PROPERTY : ELEMENT; | 792 return GetFeedback()->IsName() ? PROPERTY : ELEMENT; |
| 794 } | 793 } |
| 795 } // namespace internal | 794 } // namespace internal |
| 796 } // namespace v8 | 795 } // namespace v8 |
| OLD | NEW |