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

Side by Side Diff: src/layout-descriptor.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/interpreter/control-flow-builders.cc ('k') | src/parsing/func-name-inferrer.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/layout-descriptor.h" 5 #include "src/layout-descriptor.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/handles-inl.h" 10 #include "src/handles-inl.h"
11 #include "src/objects-inl.h"
11 12
12 using v8::base::bits::CountTrailingZeros32; 13 using v8::base::bits::CountTrailingZeros32;
13 14
14 namespace v8 { 15 namespace v8 {
15 namespace internal { 16 namespace internal {
16 17
17 Handle<LayoutDescriptor> LayoutDescriptor::New( 18 Handle<LayoutDescriptor> LayoutDescriptor::New(
18 Handle<Map> map, Handle<DescriptorArray> descriptors, int num_descriptors) { 19 Handle<Map> map, Handle<DescriptorArray> descriptors, int num_descriptors) {
19 Isolate* isolate = descriptors->GetIsolate(); 20 Isolate* isolate = descriptors->GetIsolate();
20 if (!FLAG_unbox_double_fields) return handle(FastPointerLayout(), isolate); 21 if (!FLAG_unbox_double_fields) return handle(FastPointerLayout(), isolate);
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 int n = capacity(); 280 int n = capacity();
280 for (int i = last_field_index; i < n; i++) { 281 for (int i = last_field_index; i < n; i++) {
281 DCHECK(IsTagged(i)); 282 DCHECK(IsTagged(i));
282 } 283 }
283 } 284 }
284 } 285 }
285 return true; 286 return true;
286 } 287 }
287 } // namespace internal 288 } // namespace internal
288 } // namespace v8 289 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/control-flow-builders.cc ('k') | src/parsing/func-name-inferrer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698