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

Side by Side Diff: src/arm64/lithium-codegen-arm64.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/arm64/lithium-arm64.cc ('k') | src/arm64/simulator-arm64.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 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 #include "src/arm64/lithium-codegen-arm64.h" 7 #include "src/arm64/lithium-codegen-arm64.h"
8 #include "src/arm64/lithium-gap-resolver-arm64.h" 8 #include "src/arm64/lithium-gap-resolver-arm64.h"
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 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code); 931 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code);
932 PopulateDeoptimizationData(code); 932 PopulateDeoptimizationData(code);
933 } 933 }
934 934
935 935
936 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { 936 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) {
937 int length = deoptimizations_.length(); 937 int length = deoptimizations_.length();
938 if (length == 0) return; 938 if (length == 0) return;
939 939
940 Handle<DeoptimizationInputData> data = 940 Handle<DeoptimizationInputData> data =
941 DeoptimizationInputData::New(isolate(), length, TENURED); 941 DeoptimizationInputData::New(isolate(), length, 0, TENURED);
942 942
943 Handle<ByteArray> translations = 943 Handle<ByteArray> translations =
944 translations_.CreateByteArray(isolate()->factory()); 944 translations_.CreateByteArray(isolate()->factory());
945 data->SetTranslationByteArray(*translations); 945 data->SetTranslationByteArray(*translations);
946 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); 946 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_));
947 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); 947 data->SetOptimizationId(Smi::FromInt(info_->optimization_id()));
948 if (info_->IsOptimizing()) { 948 if (info_->IsOptimizing()) {
949 // Reference to shared function info does not change between phases. 949 // Reference to shared function info does not change between phases.
950 AllowDeferredHandleDereference allow_handle_dereference; 950 AllowDeferredHandleDereference allow_handle_dereference;
951 data->SetSharedFunctionInfo(*info_->shared_info()); 951 data->SetSharedFunctionInfo(*info_->shared_info());
(...skipping 5094 matching lines...) Expand 10 before | Expand all | Expand 10 after
6046 Handle<ScopeInfo> scope_info = instr->scope_info(); 6046 Handle<ScopeInfo> scope_info = instr->scope_info();
6047 __ Push(scope_info); 6047 __ Push(scope_info);
6048 __ Push(ToRegister(instr->function())); 6048 __ Push(ToRegister(instr->function()));
6049 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6049 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6050 RecordSafepoint(Safepoint::kNoLazyDeopt); 6050 RecordSafepoint(Safepoint::kNoLazyDeopt);
6051 } 6051 }
6052 6052
6053 6053
6054 6054
6055 } } // namespace v8::internal 6055 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/lithium-arm64.cc ('k') | src/arm64/simulator-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698