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

Side by Side Diff: src/mips64/lithium-codegen-mips64.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/mips/lithium-codegen-mips.cc ('k') | src/objects.h » ('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 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 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/hydrogen-osr.h" 8 #include "src/hydrogen-osr.h"
9 #include "src/mips64/lithium-codegen-mips64.h" 9 #include "src/mips64/lithium-codegen-mips64.h"
10 #include "src/mips64/lithium-gap-resolver-mips64.h" 10 #include "src/mips64/lithium-gap-resolver-mips64.h"
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 ? Deoptimizer::LAZY 845 ? Deoptimizer::LAZY
846 : Deoptimizer::EAGER; 846 : Deoptimizer::EAGER;
847 DeoptimizeIf(condition, environment, bailout_type, src1, src2); 847 DeoptimizeIf(condition, environment, bailout_type, src1, src2);
848 } 848 }
849 849
850 850
851 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { 851 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) {
852 int length = deoptimizations_.length(); 852 int length = deoptimizations_.length();
853 if (length == 0) return; 853 if (length == 0) return;
854 Handle<DeoptimizationInputData> data = 854 Handle<DeoptimizationInputData> data =
855 DeoptimizationInputData::New(isolate(), length, 0, TENURED); 855 DeoptimizationInputData::New(isolate(), length, TENURED);
856 856
857 Handle<ByteArray> translations = 857 Handle<ByteArray> translations =
858 translations_.CreateByteArray(isolate()->factory()); 858 translations_.CreateByteArray(isolate()->factory());
859 data->SetTranslationByteArray(*translations); 859 data->SetTranslationByteArray(*translations);
860 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); 860 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_));
861 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); 861 data->SetOptimizationId(Smi::FromInt(info_->optimization_id()));
862 if (info_->IsOptimizing()) { 862 if (info_->IsOptimizing()) {
863 // Reference to shared function info does not change between phases. 863 // Reference to shared function info does not change between phases.
864 AllowDeferredHandleDereference allow_handle_dereference; 864 AllowDeferredHandleDereference allow_handle_dereference;
865 data->SetSharedFunctionInfo(*info_->shared_info()); 865 data->SetSharedFunctionInfo(*info_->shared_info());
(...skipping 5075 matching lines...) Expand 10 before | Expand all | Expand 10 after
5941 __ li(at, scope_info); 5941 __ li(at, scope_info);
5942 __ Push(at, ToRegister(instr->function())); 5942 __ Push(at, ToRegister(instr->function()));
5943 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5943 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5944 RecordSafepoint(Safepoint::kNoLazyDeopt); 5944 RecordSafepoint(Safepoint::kNoLazyDeopt);
5945 } 5945 }
5946 5946
5947 5947
5948 #undef __ 5948 #undef __
5949 5949
5950 } } // namespace v8::internal 5950 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698