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 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
8 | 8 |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 ? Deoptimizer::LAZY | 893 ? Deoptimizer::LAZY |
894 : Deoptimizer::EAGER; | 894 : Deoptimizer::EAGER; |
895 DeoptimizeIf(cc, environment, bailout_type); | 895 DeoptimizeIf(cc, environment, bailout_type); |
896 } | 896 } |
897 | 897 |
898 | 898 |
899 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { | 899 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { |
900 int length = deoptimizations_.length(); | 900 int length = deoptimizations_.length(); |
901 if (length == 0) return; | 901 if (length == 0) return; |
902 Handle<DeoptimizationInputData> data = | 902 Handle<DeoptimizationInputData> data = |
903 DeoptimizationInputData::New(isolate(), length, 0, TENURED); | 903 DeoptimizationInputData::New(isolate(), length, TENURED); |
904 | 904 |
905 Handle<ByteArray> translations = | 905 Handle<ByteArray> translations = |
906 translations_.CreateByteArray(isolate()->factory()); | 906 translations_.CreateByteArray(isolate()->factory()); |
907 data->SetTranslationByteArray(*translations); | 907 data->SetTranslationByteArray(*translations); |
908 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); | 908 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); |
909 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); | 909 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); |
910 if (info_->IsOptimizing()) { | 910 if (info_->IsOptimizing()) { |
911 // Reference to shared function info does not change between phases. | 911 // Reference to shared function info does not change between phases. |
912 AllowDeferredHandleDereference allow_handle_dereference; | 912 AllowDeferredHandleDereference allow_handle_dereference; |
913 data->SetSharedFunctionInfo(*info_->shared_info()); | 913 data->SetSharedFunctionInfo(*info_->shared_info()); |
(...skipping 4759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5673 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5673 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5674 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5674 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5675 } | 5675 } |
5676 | 5676 |
5677 | 5677 |
5678 #undef __ | 5678 #undef __ |
5679 | 5679 |
5680 } } // namespace v8::internal | 5680 } } // namespace v8::internal |
5681 | 5681 |
5682 #endif // V8_TARGET_ARCH_IA32 | 5682 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |