| OLD | NEW | 
|---|
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/deoptimizer.h" | 5 #include "src/deoptimizer.h" | 
| 6 | 6 | 
| 7 #include <memory> | 7 #include <memory> | 
| 8 | 8 | 
| 9 #include "src/accessors.h" | 9 #include "src/accessors.h" | 
| 10 #include "src/ast/prettyprinter.h" | 10 #include "src/ast/prettyprinter.h" | 
| (...skipping 3784 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3795           object->set_properties(FixedArray::cast(*properties)); | 3795           object->set_properties(FixedArray::cast(*properties)); | 
| 3796           object->set_elements(FixedArrayBase::cast(*elements)); | 3796           object->set_elements(FixedArrayBase::cast(*elements)); | 
| 3797           object->set_prototype_or_initial_map(*prototype); | 3797           object->set_prototype_or_initial_map(*prototype); | 
| 3798           object->set_shared(SharedFunctionInfo::cast(*shared)); | 3798           object->set_shared(SharedFunctionInfo::cast(*shared)); | 
| 3799           object->set_context(Context::cast(*context)); | 3799           object->set_context(Context::cast(*context)); | 
| 3800           object->set_literals(LiteralsArray::cast(*literals)); | 3800           object->set_literals(LiteralsArray::cast(*literals)); | 
| 3801           CHECK(entry->IsNumber());  // Entry to compile lazy stub. | 3801           CHECK(entry->IsNumber());  // Entry to compile lazy stub. | 
| 3802           CHECK(next_link->IsUndefined(isolate_)); | 3802           CHECK(next_link->IsUndefined(isolate_)); | 
| 3803           return object; | 3803           return object; | 
| 3804         } | 3804         } | 
|  | 3805         case CONTEXT_EXTENSION_TYPE: { | 
|  | 3806           Handle<ContextExtension> object = | 
|  | 3807               isolate_->factory()->NewContextExtension( | 
|  | 3808                   isolate_->factory()->NewScopeInfo(1), | 
|  | 3809                   isolate_->factory()->undefined_value()); | 
|  | 3810           slot->value_ = object; | 
|  | 3811           Handle<Object> scope_info = MaterializeAt(frame_index, value_index); | 
|  | 3812           Handle<Object> extension = MaterializeAt(frame_index, value_index); | 
|  | 3813           object->set_scope_info(ScopeInfo::cast(*scope_info)); | 
|  | 3814           object->set_extension(*extension); | 
|  | 3815           return object; | 
|  | 3816         } | 
| 3805         case FIXED_ARRAY_TYPE: { | 3817         case FIXED_ARRAY_TYPE: { | 
| 3806           Handle<Object> lengthObject = MaterializeAt(frame_index, value_index); | 3818           Handle<Object> lengthObject = MaterializeAt(frame_index, value_index); | 
| 3807           int32_t length = 0; | 3819           int32_t length = 0; | 
| 3808           CHECK(lengthObject->ToInt32(&length)); | 3820           CHECK(lengthObject->ToInt32(&length)); | 
| 3809           Handle<FixedArray> object = | 3821           Handle<FixedArray> object = | 
| 3810               isolate_->factory()->NewFixedArray(length); | 3822               isolate_->factory()->NewFixedArray(length); | 
| 3811           // We need to set the map, because the fixed array we are | 3823           // We need to set the map, because the fixed array we are | 
| 3812           // materializing could be a context or an arguments object, | 3824           // materializing could be a context or an arguments object, | 
| 3813           // in which case we must retain that information. | 3825           // in which case we must retain that information. | 
| 3814           object->set_map(*map); | 3826           object->set_map(*map); | 
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4024       CHECK(value_info->IsMaterializedObject()); | 4036       CHECK(value_info->IsMaterializedObject()); | 
| 4025 | 4037 | 
| 4026       value_info->value_ = | 4038       value_info->value_ = | 
| 4027           Handle<Object>(previously_materialized_objects->get(i), isolate_); | 4039           Handle<Object>(previously_materialized_objects->get(i), isolate_); | 
| 4028     } | 4040     } | 
| 4029   } | 4041   } | 
| 4030 } | 4042 } | 
| 4031 | 4043 | 
| 4032 }  // namespace internal | 4044 }  // namespace internal | 
| 4033 }  // namespace v8 | 4045 }  // namespace v8 | 
| OLD | NEW | 
|---|