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

Side by Side Diff: src/x64/lithium-codegen-x64.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/objects.cc ('k') | src/x87/lithium-codegen-x87.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 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
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 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 data->SetTranslationByteArray(*translations); 816 data->SetTranslationByteArray(*translations);
817 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); 817 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_));
818 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); 818 data->SetOptimizationId(Smi::FromInt(info_->optimization_id()));
819 if (info_->IsOptimizing()) { 819 if (info_->IsOptimizing()) {
820 // Reference to shared function info does not change between phases. 820 // Reference to shared function info does not change between phases.
821 AllowDeferredHandleDereference allow_handle_dereference; 821 AllowDeferredHandleDereference allow_handle_dereference;
822 data->SetSharedFunctionInfo(*info_->shared_info()); 822 data->SetSharedFunctionInfo(*info_->shared_info());
823 } else { 823 } else {
824 data->SetSharedFunctionInfo(Smi::FromInt(0)); 824 data->SetSharedFunctionInfo(Smi::FromInt(0));
825 } 825 }
826 data->SetWeakCellCache(Smi::FromInt(0));
826 827
827 Handle<FixedArray> literals = 828 Handle<FixedArray> literals =
828 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); 829 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED);
829 { AllowDeferredHandleDereference copy_handles; 830 { AllowDeferredHandleDereference copy_handles;
830 for (int i = 0; i < deoptimization_literals_.length(); i++) { 831 for (int i = 0; i < deoptimization_literals_.length(); i++) {
831 literals->set(i, *deoptimization_literals_[i]); 832 literals->set(i, *deoptimization_literals_[i]);
832 } 833 }
833 data->SetLiteralArray(*literals); 834 data->SetLiteralArray(*literals);
834 } 835 }
835 836
(...skipping 5071 matching lines...) Expand 10 before | Expand all | Expand 10 after
5907 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5908 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5908 RecordSafepoint(Safepoint::kNoLazyDeopt); 5909 RecordSafepoint(Safepoint::kNoLazyDeopt);
5909 } 5910 }
5910 5911
5911 5912
5912 #undef __ 5913 #undef __
5913 5914
5914 } } // namespace v8::internal 5915 } } // namespace v8::internal
5915 5916
5916 #endif // V8_TARGET_ARCH_X64 5917 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698