| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/arm64/lithium-codegen-arm64.h" | 7 #include "src/arm64/lithium-codegen-arm64.h" |
| 8 #include "src/arm64/lithium-gap-resolver-arm64.h" | 8 #include "src/arm64/lithium-gap-resolver-arm64.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
| (...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 931 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code); | 931 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code); |
| 932 PopulateDeoptimizationData(code); | 932 PopulateDeoptimizationData(code); |
| 933 } | 933 } |
| 934 | 934 |
| 935 | 935 |
| 936 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { | 936 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { |
| 937 int length = deoptimizations_.length(); | 937 int length = deoptimizations_.length(); |
| 938 if (length == 0) return; | 938 if (length == 0) return; |
| 939 | 939 |
| 940 Handle<DeoptimizationInputData> data = | 940 Handle<DeoptimizationInputData> data = |
| 941 DeoptimizationInputData::New(isolate(), length, TENURED); | 941 DeoptimizationInputData::New(isolate(), length, 0, TENURED); |
| 942 | 942 |
| 943 Handle<ByteArray> translations = | 943 Handle<ByteArray> translations = |
| 944 translations_.CreateByteArray(isolate()->factory()); | 944 translations_.CreateByteArray(isolate()->factory()); |
| 945 data->SetTranslationByteArray(*translations); | 945 data->SetTranslationByteArray(*translations); |
| 946 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); | 946 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); |
| 947 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); | 947 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); |
| 948 if (info_->IsOptimizing()) { | 948 if (info_->IsOptimizing()) { |
| 949 // Reference to shared function info does not change between phases. | 949 // Reference to shared function info does not change between phases. |
| 950 AllowDeferredHandleDereference allow_handle_dereference; | 950 AllowDeferredHandleDereference allow_handle_dereference; |
| 951 data->SetSharedFunctionInfo(*info_->shared_info()); | 951 data->SetSharedFunctionInfo(*info_->shared_info()); |
| (...skipping 5094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6046 Handle<ScopeInfo> scope_info = instr->scope_info(); | 6046 Handle<ScopeInfo> scope_info = instr->scope_info(); |
| 6047 __ Push(scope_info); | 6047 __ Push(scope_info); |
| 6048 __ Push(ToRegister(instr->function())); | 6048 __ Push(ToRegister(instr->function())); |
| 6049 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6049 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 6050 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6050 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 6051 } | 6051 } |
| 6052 | 6052 |
| 6053 | 6053 |
| 6054 | 6054 |
| 6055 } } // namespace v8::internal | 6055 } } // namespace v8::internal |
| OLD | NEW |