| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 "v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "objects.h" | 7 #include "src/objects.h" |
| 8 #include "transitions-inl.h" | 8 #include "src/transitions-inl.h" |
| 9 #include "utils.h" | 9 #include "src/utils.h" |
| 10 | 10 |
| 11 namespace v8 { | 11 namespace v8 { |
| 12 namespace internal { | 12 namespace internal { |
| 13 | 13 |
| 14 | 14 |
| 15 Handle<TransitionArray> TransitionArray::Allocate(Isolate* isolate, | 15 Handle<TransitionArray> TransitionArray::Allocate(Isolate* isolate, |
| 16 int number_of_transitions) { | 16 int number_of_transitions) { |
| 17 Handle<FixedArray> array = | 17 Handle<FixedArray> array = |
| 18 isolate->factory()->NewFixedArray(ToKeyIndex(number_of_transitions)); | 18 isolate->factory()->NewFixedArray(ToKeyIndex(number_of_transitions)); |
| 19 array->set(kPrototypeTransitionsIndex, Smi::FromInt(0)); | 19 array->set(kPrototypeTransitionsIndex, Smi::FromInt(0)); |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 result->NoIncrementalWriteBarrierCopyFrom( | 147 result->NoIncrementalWriteBarrierCopyFrom( |
| 148 array, insertion_index, insertion_index + 1); | 148 array, insertion_index, insertion_index + 1); |
| 149 } | 149 } |
| 150 | 150 |
| 151 result->set_back_pointer_storage(array->back_pointer_storage()); | 151 result->set_back_pointer_storage(array->back_pointer_storage()); |
| 152 return result; | 152 return result; |
| 153 } | 153 } |
| 154 | 154 |
| 155 | 155 |
| 156 } } // namespace v8::internal | 156 } } // namespace v8::internal |
| OLD | NEW |