Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(756)

Side by Side Diff: src/type-feedback-vector.cc

Issue 1309303008: Make type-feedback-vector.h usable without objects-inl.h header (and others). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/type-feedback-vector.h ('k') | src/type-feedback-vector-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/type-feedback-vector.h ('k') | src/type-feedback-vector-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698