Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 504493002: Fix deoptimization address patching in Turbofan to use safepoints. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Compilation fix. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/safepoint-table.cc ('k') | src/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 ? Deoptimizer::LAZY 803 ? Deoptimizer::LAZY
804 : Deoptimizer::EAGER; 804 : Deoptimizer::EAGER;
805 DeoptimizeIf(cc, environment, bailout_type); 805 DeoptimizeIf(cc, environment, bailout_type);
806 } 806 }
807 807
808 808
809 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { 809 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) {
810 int length = deoptimizations_.length(); 810 int length = deoptimizations_.length();
811 if (length == 0) return; 811 if (length == 0) return;
812 Handle<DeoptimizationInputData> data = 812 Handle<DeoptimizationInputData> data =
813 DeoptimizationInputData::New(isolate(), length, 0, TENURED); 813 DeoptimizationInputData::New(isolate(), length, TENURED);
814 814
815 Handle<ByteArray> translations = 815 Handle<ByteArray> translations =
816 translations_.CreateByteArray(isolate()->factory()); 816 translations_.CreateByteArray(isolate()->factory());
817 data->SetTranslationByteArray(*translations); 817 data->SetTranslationByteArray(*translations);
818 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); 818 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_));
819 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); 819 data->SetOptimizationId(Smi::FromInt(info_->optimization_id()));
820 if (info_->IsOptimizing()) { 820 if (info_->IsOptimizing()) {
821 // Reference to shared function info does not change between phases. 821 // Reference to shared function info does not change between phases.
822 AllowDeferredHandleDereference allow_handle_dereference; 822 AllowDeferredHandleDereference allow_handle_dereference;
823 data->SetSharedFunctionInfo(*info_->shared_info()); 823 data->SetSharedFunctionInfo(*info_->shared_info());
(...skipping 5027 matching lines...) Expand 10 before | Expand all | Expand 10 after
5851 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5851 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5852 RecordSafepoint(Safepoint::kNoLazyDeopt); 5852 RecordSafepoint(Safepoint::kNoLazyDeopt);
5853 } 5853 }
5854 5854
5855 5855
5856 #undef __ 5856 #undef __
5857 5857
5858 } } // namespace v8::internal 5858 } } // namespace v8::internal
5859 5859
5860 #endif // V8_TARGET_ARCH_X64 5860 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/safepoint-table.cc ('k') | src/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698