| 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" | 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 Loading... |
| 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 |
| OLD | NEW |