| 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/v8.h" | 
| 6 | 6 | 
| 7 #include "src/arm/lithium-codegen-arm.h" | 7 #include "src/arm/lithium-codegen-arm.h" | 
| 8 #include "src/arm/lithium-gap-resolver-arm.h" | 8 #include "src/arm/lithium-gap-resolver-arm.h" | 
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" | 
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" | 
| (...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 937   data->SetTranslationByteArray(*translations); | 937   data->SetTranslationByteArray(*translations); | 
| 938   data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); | 938   data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); | 
| 939   data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); | 939   data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); | 
| 940   if (info_->IsOptimizing()) { | 940   if (info_->IsOptimizing()) { | 
| 941     // Reference to shared function info does not change between phases. | 941     // Reference to shared function info does not change between phases. | 
| 942     AllowDeferredHandleDereference allow_handle_dereference; | 942     AllowDeferredHandleDereference allow_handle_dereference; | 
| 943     data->SetSharedFunctionInfo(*info_->shared_info()); | 943     data->SetSharedFunctionInfo(*info_->shared_info()); | 
| 944   } else { | 944   } else { | 
| 945     data->SetSharedFunctionInfo(Smi::FromInt(0)); | 945     data->SetSharedFunctionInfo(Smi::FromInt(0)); | 
| 946   } | 946   } | 
|  | 947   data->SetWeakCellCache(Smi::FromInt(0)); | 
| 947 | 948 | 
| 948   Handle<FixedArray> literals = | 949   Handle<FixedArray> literals = | 
| 949       factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); | 950       factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); | 
| 950   { AllowDeferredHandleDereference copy_handles; | 951   { AllowDeferredHandleDereference copy_handles; | 
| 951     for (int i = 0; i < deoptimization_literals_.length(); i++) { | 952     for (int i = 0; i < deoptimization_literals_.length(); i++) { | 
| 952       literals->set(i, *deoptimization_literals_[i]); | 953       literals->set(i, *deoptimization_literals_[i]); | 
| 953     } | 954     } | 
| 954     data->SetLiteralArray(*literals); | 955     data->SetLiteralArray(*literals); | 
| 955   } | 956   } | 
| 956 | 957 | 
| (...skipping 4998 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5955   __ Push(scope_info); | 5956   __ Push(scope_info); | 
| 5956   __ push(ToRegister(instr->function())); | 5957   __ push(ToRegister(instr->function())); | 
| 5957   CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5958   CallRuntime(Runtime::kPushBlockContext, 2, instr); | 
| 5958   RecordSafepoint(Safepoint::kNoLazyDeopt); | 5959   RecordSafepoint(Safepoint::kNoLazyDeopt); | 
| 5959 } | 5960 } | 
| 5960 | 5961 | 
| 5961 | 5962 | 
| 5962 #undef __ | 5963 #undef __ | 
| 5963 | 5964 | 
| 5964 } }  // namespace v8::internal | 5965 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|