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/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 ? Deoptimizer::LAZY | 924 ? Deoptimizer::LAZY |
925 : Deoptimizer::EAGER; | 925 : Deoptimizer::EAGER; |
926 DeoptimizeIf(condition, environment, bailout_type); | 926 DeoptimizeIf(condition, environment, bailout_type); |
927 } | 927 } |
928 | 928 |
929 | 929 |
930 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { | 930 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { |
931 int length = deoptimizations_.length(); | 931 int length = deoptimizations_.length(); |
932 if (length == 0) return; | 932 if (length == 0) return; |
933 Handle<DeoptimizationInputData> data = | 933 Handle<DeoptimizationInputData> data = |
934 DeoptimizationInputData::New(isolate(), length, 0, TENURED); | 934 DeoptimizationInputData::New(isolate(), length, TENURED); |
935 | 935 |
936 Handle<ByteArray> translations = | 936 Handle<ByteArray> translations = |
937 translations_.CreateByteArray(isolate()->factory()); | 937 translations_.CreateByteArray(isolate()->factory()); |
938 data->SetTranslationByteArray(*translations); | 938 data->SetTranslationByteArray(*translations); |
939 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); | 939 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); |
940 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); | 940 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); |
941 if (info_->IsOptimizing()) { | 941 if (info_->IsOptimizing()) { |
942 // Reference to shared function info does not change between phases. | 942 // Reference to shared function info does not change between phases. |
943 AllowDeferredHandleDereference allow_handle_dereference; | 943 AllowDeferredHandleDereference allow_handle_dereference; |
944 data->SetSharedFunctionInfo(*info_->shared_info()); | 944 data->SetSharedFunctionInfo(*info_->shared_info()); |
(...skipping 4938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5883 __ Push(scope_info); | 5883 __ Push(scope_info); |
5884 __ push(ToRegister(instr->function())); | 5884 __ push(ToRegister(instr->function())); |
5885 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5885 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5886 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5886 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5887 } | 5887 } |
5888 | 5888 |
5889 | 5889 |
5890 #undef __ | 5890 #undef __ |
5891 | 5891 |
5892 } } // namespace v8::internal | 5892 } } // namespace v8::internal |
OLD | NEW |