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

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

Issue 426233002: Land the Fan (disabled) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback, rebase and "git cl format" 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/deoptimizer-mips.cc ('k') | src/mips/lithium-mips.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
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 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 ? Deoptimizer::LAZY 890 ? Deoptimizer::LAZY
891 : Deoptimizer::EAGER; 891 : Deoptimizer::EAGER;
892 DeoptimizeIf(condition, environment, bailout_type, src1, src2); 892 DeoptimizeIf(condition, environment, bailout_type, src1, src2);
893 } 893 }
894 894
895 895
896 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { 896 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) {
897 int length = deoptimizations_.length(); 897 int length = deoptimizations_.length();
898 if (length == 0) return; 898 if (length == 0) return;
899 Handle<DeoptimizationInputData> data = 899 Handle<DeoptimizationInputData> data =
900 DeoptimizationInputData::New(isolate(), length, TENURED); 900 DeoptimizationInputData::New(isolate(), length, 0, TENURED);
901 901
902 Handle<ByteArray> translations = 902 Handle<ByteArray> translations =
903 translations_.CreateByteArray(isolate()->factory()); 903 translations_.CreateByteArray(isolate()->factory());
904 data->SetTranslationByteArray(*translations); 904 data->SetTranslationByteArray(*translations);
905 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); 905 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_));
906 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); 906 data->SetOptimizationId(Smi::FromInt(info_->optimization_id()));
907 if (info_->IsOptimizing()) { 907 if (info_->IsOptimizing()) {
908 // Reference to shared function info does not change between phases. 908 // Reference to shared function info does not change between phases.
909 AllowDeferredHandleDereference allow_handle_dereference; 909 AllowDeferredHandleDereference allow_handle_dereference;
910 data->SetSharedFunctionInfo(*info_->shared_info()); 910 data->SetSharedFunctionInfo(*info_->shared_info());
(...skipping 5001 matching lines...) Expand 10 before | Expand all | Expand 10 after
5912 __ li(at, scope_info); 5912 __ li(at, scope_info);
5913 __ Push(at, ToRegister(instr->function())); 5913 __ Push(at, ToRegister(instr->function()));
5914 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5914 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5915 RecordSafepoint(Safepoint::kNoLazyDeopt); 5915 RecordSafepoint(Safepoint::kNoLazyDeopt);
5916 } 5916 }
5917 5917
5918 5918
5919 #undef __ 5919 #undef __
5920 5920
5921 } } // namespace v8::internal 5921 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/deoptimizer-mips.cc ('k') | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698