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

Side by Side Diff: src/field-type.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/extensions/externalize-string-extension.cc ('k') | src/futex-emulation.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/field-type.h" 5 #include "src/field-type.h"
6 6
7 #include "src/ast/ast-types.h" 7 #include "src/ast/ast-types.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 FieldType* FieldType::None() { 16 FieldType* FieldType::None() {
16 // Do not Smi::kZero here or for Any(), as that may translate 17 // Do not Smi::kZero here or for Any(), as that may translate
17 // as `nullptr` which is not a valid value for `this`. 18 // as `nullptr` which is not a valid value for `this`.
18 return reinterpret_cast<FieldType*>(Smi::FromInt(2)); 19 return reinterpret_cast<FieldType*>(Smi::FromInt(2));
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } else if (IsNone()) { 85 } else if (IsNone()) {
85 os << "None"; 86 os << "None";
86 } else { 87 } else {
87 DCHECK(IsClass()); 88 DCHECK(IsClass());
88 os << "Class(" << static_cast<void*>(*AsClass()) << ")"; 89 os << "Class(" << static_cast<void*>(*AsClass()) << ")";
89 } 90 }
90 } 91 }
91 92
92 } // namespace internal 93 } // namespace internal
93 } // namespace v8 94 } // namespace v8
OLDNEW
« no previous file with comments | « src/extensions/externalize-string-extension.cc ('k') | src/futex-emulation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698