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

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

Issue 873233002: Cache WeakCell for optimized code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add check Created 5 years, 11 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
« no previous file with comments | « no previous file | src/arm64/lithium-codegen-arm64.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 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/arm/lithium-codegen-arm.h" 7 #include "src/arm/lithium-codegen-arm.h"
8 #include "src/arm/lithium-gap-resolver-arm.h" 8 #include "src/arm/lithium-gap-resolver-arm.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 data->SetTranslationByteArray(*translations); 937 data->SetTranslationByteArray(*translations);
938 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); 938 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_));
939 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); 939 data->SetOptimizationId(Smi::FromInt(info_->optimization_id()));
940 if (info_->IsOptimizing()) { 940 if (info_->IsOptimizing()) {
941 // Reference to shared function info does not change between phases. 941 // Reference to shared function info does not change between phases.
942 AllowDeferredHandleDereference allow_handle_dereference; 942 AllowDeferredHandleDereference allow_handle_dereference;
943 data->SetSharedFunctionInfo(*info_->shared_info()); 943 data->SetSharedFunctionInfo(*info_->shared_info());
944 } else { 944 } else {
945 data->SetSharedFunctionInfo(Smi::FromInt(0)); 945 data->SetSharedFunctionInfo(Smi::FromInt(0));
946 } 946 }
947 data->SetWeakCellCache(Smi::FromInt(0));
947 948
948 Handle<FixedArray> literals = 949 Handle<FixedArray> literals =
949 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); 950 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED);
950 { AllowDeferredHandleDereference copy_handles; 951 { AllowDeferredHandleDereference copy_handles;
951 for (int i = 0; i < deoptimization_literals_.length(); i++) { 952 for (int i = 0; i < deoptimization_literals_.length(); i++) {
952 literals->set(i, *deoptimization_literals_[i]); 953 literals->set(i, *deoptimization_literals_[i]);
953 } 954 }
954 data->SetLiteralArray(*literals); 955 data->SetLiteralArray(*literals);
955 } 956 }
956 957
(...skipping 4998 matching lines...) Expand 10 before | Expand all | Expand 10 after
5955 __ Push(scope_info); 5956 __ Push(scope_info);
5956 __ push(ToRegister(instr->function())); 5957 __ push(ToRegister(instr->function()));
5957 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5958 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5958 RecordSafepoint(Safepoint::kNoLazyDeopt); 5959 RecordSafepoint(Safepoint::kNoLazyDeopt);
5959 } 5960 }
5960 5961
5961 5962
5962 #undef __ 5963 #undef __
5963 5964
5964 } } // namespace v8::internal 5965 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698