| 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/layout-descriptor.h" |
| 6 |
| 5 #include <sstream> | 7 #include <sstream> |
| 6 | 8 |
| 7 #include "src/v8.h" | |
| 8 | |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/layout-descriptor.h" | 10 #include "src/handles-inl.h" |
| 11 | 11 |
| 12 using v8::base::bits::CountTrailingZeros32; | 12 using v8::base::bits::CountTrailingZeros32; |
| 13 | 13 |
| 14 namespace v8 { | 14 namespace v8 { |
| 15 namespace internal { | 15 namespace internal { |
| 16 | 16 |
| 17 Handle<LayoutDescriptor> LayoutDescriptor::New( | 17 Handle<LayoutDescriptor> LayoutDescriptor::New( |
| 18 Handle<Map> map, Handle<DescriptorArray> descriptors, int num_descriptors) { | 18 Handle<Map> map, Handle<DescriptorArray> descriptors, int num_descriptors) { |
| 19 Isolate* isolate = descriptors->GetIsolate(); | 19 Isolate* isolate = descriptors->GetIsolate(); |
| 20 if (!FLAG_unbox_double_fields) return handle(FastPointerLayout(), isolate); | 20 if (!FLAG_unbox_double_fields) return handle(FastPointerLayout(), isolate); |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 int n = capacity(); | 279 int n = capacity(); |
| 280 for (int i = last_field_index; i < n; i++) { | 280 for (int i = last_field_index; i < n; i++) { |
| 281 DCHECK(IsTagged(i)); | 281 DCHECK(IsTagged(i)); |
| 282 } | 282 } |
| 283 } | 283 } |
| 284 } | 284 } |
| 285 return true; | 285 return true; |
| 286 } | 286 } |
| 287 } // namespace internal | 287 } // namespace internal |
| 288 } // namespace v8 | 288 } // namespace v8 |
| OLD | NEW |