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