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

Side by Side Diff: src/arm64/lithium-codegen-arm64.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 | « src/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-codegen-ia32.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 #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/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 data->SetTranslationByteArray(*translations); 934 data->SetTranslationByteArray(*translations);
935 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); 935 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_));
936 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); 936 data->SetOptimizationId(Smi::FromInt(info_->optimization_id()));
937 if (info_->IsOptimizing()) { 937 if (info_->IsOptimizing()) {
938 // Reference to shared function info does not change between phases. 938 // Reference to shared function info does not change between phases.
939 AllowDeferredHandleDereference allow_handle_dereference; 939 AllowDeferredHandleDereference allow_handle_dereference;
940 data->SetSharedFunctionInfo(*info_->shared_info()); 940 data->SetSharedFunctionInfo(*info_->shared_info());
941 } else { 941 } else {
942 data->SetSharedFunctionInfo(Smi::FromInt(0)); 942 data->SetSharedFunctionInfo(Smi::FromInt(0));
943 } 943 }
944 data->SetWeakCellCache(Smi::FromInt(0));
944 945
945 Handle<FixedArray> literals = 946 Handle<FixedArray> literals =
946 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); 947 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED);
947 { AllowDeferredHandleDereference copy_handles; 948 { AllowDeferredHandleDereference copy_handles;
948 for (int i = 0; i < deoptimization_literals_.length(); i++) { 949 for (int i = 0; i < deoptimization_literals_.length(); i++) {
949 literals->set(i, *deoptimization_literals_[i]); 950 literals->set(i, *deoptimization_literals_[i]);
950 } 951 }
951 data->SetLiteralArray(*literals); 952 data->SetLiteralArray(*literals);
952 } 953 }
953 954
(...skipping 5108 matching lines...) Expand 10 before | Expand all | Expand 10 after
6062 Handle<ScopeInfo> scope_info = instr->scope_info(); 6063 Handle<ScopeInfo> scope_info = instr->scope_info();
6063 __ Push(scope_info); 6064 __ Push(scope_info);
6064 __ Push(ToRegister(instr->function())); 6065 __ Push(ToRegister(instr->function()));
6065 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6066 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6066 RecordSafepoint(Safepoint::kNoLazyDeopt); 6067 RecordSafepoint(Safepoint::kNoLazyDeopt);
6067 } 6068 }
6068 6069
6069 6070
6070 6071
6071 } } // namespace v8::internal 6072 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698