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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/allocation-site-scopes.h" | 7 #include "src/allocation-site-scopes.h" |
8 #include "src/arguments.h" | 8 #include "src/arguments.h" |
9 #include "src/ast.h" | 9 #include "src/ast.h" |
10 #include "src/parser.h" | 10 #include "src/parser.h" |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 if (IsMoreGeneralElementsKindTransition(boilerplate_elements_kind, | 417 if (IsMoreGeneralElementsKindTransition(boilerplate_elements_kind, |
418 transitioned_kind)) { | 418 transitioned_kind)) { |
419 JSObject::TransitionElementsKind(boilerplate_object, transitioned_kind); | 419 JSObject::TransitionElementsKind(boilerplate_object, transitioned_kind); |
420 } | 420 } |
421 } | 421 } |
422 FixedArray* object_array = FixedArray::cast(object->elements()); | 422 FixedArray* object_array = FixedArray::cast(object->elements()); |
423 object_array->set(store_index, *value); | 423 object_array->set(store_index, *value); |
424 } | 424 } |
425 return *object; | 425 return *object; |
426 } | 426 } |
427 } | 427 } // namespace internal |
428 } // namespace v8::internal | 428 } // namespace v8 |
OLD | NEW |