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 "src/v8.h" | 5 #include "src/transitions.h" |
6 | 6 |
7 #include "src/objects.h" | 7 #include "src/objects-inl.h" |
8 #include "src/transitions-inl.h" | 8 #include "src/transitions-inl.h" |
9 #include "src/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 // static | 15 // static |
16 void TransitionArray::Insert(Handle<Map> map, Handle<Name> name, | 16 void TransitionArray::Insert(Handle<Map> map, Handle<Name> name, |
17 Handle<Map> target, SimpleTransitionFlag flag) { | 17 Handle<Map> target, SimpleTransitionFlag flag) { |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 PropertyAttributes attributes, | 516 PropertyAttributes attributes, |
517 int* out_insertion_index) { | 517 int* out_insertion_index) { |
518 int transition = SearchName(name, out_insertion_index); | 518 int transition = SearchName(name, out_insertion_index); |
519 if (transition == kNotFound) { | 519 if (transition == kNotFound) { |
520 return kNotFound; | 520 return kNotFound; |
521 } | 521 } |
522 return SearchDetails(transition, kind, attributes, out_insertion_index); | 522 return SearchDetails(transition, kind, attributes, out_insertion_index); |
523 } | 523 } |
524 } // namespace internal | 524 } // namespace internal |
525 } // namespace v8 | 525 } // namespace v8 |
OLD | NEW |