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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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/arm64/lithium-codegen-arm64.cc ('k') | src/mips/lithium-codegen-mips.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 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
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 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 data->SetTranslationByteArray(*translations); 906 data->SetTranslationByteArray(*translations);
907 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); 907 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_));
908 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); 908 data->SetOptimizationId(Smi::FromInt(info_->optimization_id()));
909 if (info_->IsOptimizing()) { 909 if (info_->IsOptimizing()) {
910 // Reference to shared function info does not change between phases. 910 // Reference to shared function info does not change between phases.
911 AllowDeferredHandleDereference allow_handle_dereference; 911 AllowDeferredHandleDereference allow_handle_dereference;
912 data->SetSharedFunctionInfo(*info_->shared_info()); 912 data->SetSharedFunctionInfo(*info_->shared_info());
913 } else { 913 } else {
914 data->SetSharedFunctionInfo(Smi::FromInt(0)); 914 data->SetSharedFunctionInfo(Smi::FromInt(0));
915 } 915 }
916 data->SetWeakCellCache(Smi::FromInt(0));
916 917
917 Handle<FixedArray> literals = 918 Handle<FixedArray> literals =
918 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); 919 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED);
919 { AllowDeferredHandleDereference copy_handles; 920 { AllowDeferredHandleDereference copy_handles;
920 for (int i = 0; i < deoptimization_literals_.length(); i++) { 921 for (int i = 0; i < deoptimization_literals_.length(); i++) {
921 literals->set(i, *deoptimization_literals_[i]); 922 literals->set(i, *deoptimization_literals_[i]);
922 } 923 }
923 data->SetLiteralArray(*literals); 924 data->SetLiteralArray(*literals);
924 } 925 }
925 926
(...skipping 4823 matching lines...) Expand 10 before | Expand all | Expand 10 after
5749 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5750 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5750 RecordSafepoint(Safepoint::kNoLazyDeopt); 5751 RecordSafepoint(Safepoint::kNoLazyDeopt);
5751 } 5752 }
5752 5753
5753 5754
5754 #undef __ 5755 #undef __
5755 5756
5756 } } // namespace v8::internal 5757 } } // namespace v8::internal
5757 5758
5758 #endif // V8_TARGET_ARCH_IA32 5759 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698