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

Side by Side Diff: src/crankshaft/hydrogen-types.cc

Issue 2622503002: include fixing: api.h shouldn't include objects-inl.h (Closed)
Patch Set: static type check Created 3 years, 11 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/compiler/types.cc ('k') | src/d8.cc » ('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/crankshaft/hydrogen-types.h" 5 #include "src/crankshaft/hydrogen-types.h"
6 6
7 #include "src/field-type.h" 7 #include "src/field-type.h"
8 #include "src/handles-inl.h" 8 #include "src/handles-inl.h"
9 #include "src/objects-inl.h"
9 #include "src/ostreams.h" 10 #include "src/ostreams.h"
10 11
11 namespace v8 { 12 namespace v8 {
12 namespace internal { 13 namespace internal {
13 14
14 // static 15 // static
15 HType HType::FromType(AstType* type) { 16 HType HType::FromType(AstType* type) {
16 if (AstType::Any()->Is(type)) return HType::Any(); 17 if (AstType::Any()->Is(type)) return HType::Any();
17 if (!type->IsInhabited()) return HType::None(); 18 if (!type->IsInhabited()) return HType::None();
18 if (type->Is(AstType::SignedSmall())) return HType::Smi(); 19 if (type->Is(AstType::SignedSmall())) return HType::Smi();
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 return os << #Name; 67 return os << #Name;
67 HTYPE_LIST(DEFINE_CASE) 68 HTYPE_LIST(DEFINE_CASE)
68 #undef DEFINE_CASE 69 #undef DEFINE_CASE
69 } 70 }
70 UNREACHABLE(); 71 UNREACHABLE();
71 return os; 72 return os;
72 } 73 }
73 74
74 } // namespace internal 75 } // namespace internal
75 } // namespace v8 76 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/types.cc ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698