OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 ? Deoptimizer::LAZY | 806 ? Deoptimizer::LAZY |
807 : Deoptimizer::EAGER; | 807 : Deoptimizer::EAGER; |
808 DeoptimizeIf(cc, environment, bailout_type); | 808 DeoptimizeIf(cc, environment, bailout_type); |
809 } | 809 } |
810 | 810 |
811 | 811 |
812 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { | 812 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { |
813 int length = deoptimizations_.length(); | 813 int length = deoptimizations_.length(); |
814 if (length == 0) return; | 814 if (length == 0) return; |
815 Handle<DeoptimizationInputData> data = | 815 Handle<DeoptimizationInputData> data = |
816 factory()->NewDeoptimizationInputData(length, TENURED); | 816 DeoptimizationInputData::New(isolate(), length, TENURED); |
817 | 817 |
818 Handle<ByteArray> translations = | 818 Handle<ByteArray> translations = |
819 translations_.CreateByteArray(isolate()->factory()); | 819 translations_.CreateByteArray(isolate()->factory()); |
820 data->SetTranslationByteArray(*translations); | 820 data->SetTranslationByteArray(*translations); |
821 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); | 821 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); |
822 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); | 822 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); |
823 if (info_->IsOptimizing()) { | 823 if (info_->IsOptimizing()) { |
824 // Reference to shared function info does not change between phases. | 824 // Reference to shared function info does not change between phases. |
825 AllowDeferredHandleDereference allow_handle_dereference; | 825 AllowDeferredHandleDereference allow_handle_dereference; |
826 data->SetSharedFunctionInfo(*info_->shared_info()); | 826 data->SetSharedFunctionInfo(*info_->shared_info()); |
(...skipping 4900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5727 __ bind(deferred->exit()); | 5727 __ bind(deferred->exit()); |
5728 __ bind(&done); | 5728 __ bind(&done); |
5729 } | 5729 } |
5730 | 5730 |
5731 | 5731 |
5732 #undef __ | 5732 #undef __ |
5733 | 5733 |
5734 } } // namespace v8::internal | 5734 } } // namespace v8::internal |
5735 | 5735 |
5736 #endif // V8_TARGET_ARCH_X64 | 5736 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |