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 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 ? Deoptimizer::LAZY | 804 ? Deoptimizer::LAZY |
805 : Deoptimizer::EAGER; | 805 : Deoptimizer::EAGER; |
806 DeoptimizeIf(cc, environment, bailout_type); | 806 DeoptimizeIf(cc, environment, bailout_type); |
807 } | 807 } |
808 | 808 |
809 | 809 |
810 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { | 810 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { |
811 int length = deoptimizations_.length(); | 811 int length = deoptimizations_.length(); |
812 if (length == 0) return; | 812 if (length == 0) return; |
813 Handle<DeoptimizationInputData> data = | 813 Handle<DeoptimizationInputData> data = |
814 DeoptimizationInputData::New(isolate(), length, TENURED); | 814 DeoptimizationInputData::New(isolate(), length, 0, TENURED); |
815 | 815 |
816 Handle<ByteArray> translations = | 816 Handle<ByteArray> translations = |
817 translations_.CreateByteArray(isolate()->factory()); | 817 translations_.CreateByteArray(isolate()->factory()); |
818 data->SetTranslationByteArray(*translations); | 818 data->SetTranslationByteArray(*translations); |
819 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); | 819 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); |
820 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); | 820 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); |
821 if (info_->IsOptimizing()) { | 821 if (info_->IsOptimizing()) { |
822 // Reference to shared function info does not change between phases. | 822 // Reference to shared function info does not change between phases. |
823 AllowDeferredHandleDereference allow_handle_dereference; | 823 AllowDeferredHandleDereference allow_handle_dereference; |
824 data->SetSharedFunctionInfo(*info_->shared_info()); | 824 data->SetSharedFunctionInfo(*info_->shared_info()); |
(...skipping 5027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5852 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5852 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5853 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5853 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5854 } | 5854 } |
5855 | 5855 |
5856 | 5856 |
5857 #undef __ | 5857 #undef __ |
5858 | 5858 |
5859 } } // namespace v8::internal | 5859 } } // namespace v8::internal |
5860 | 5860 |
5861 #endif // V8_TARGET_ARCH_X64 | 5861 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |