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

Side by Side Diff: src/x87/lithium-codegen-x87.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/x64/lithium-codegen-x64.cc ('k') | no next file » | 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_X87 7 #if V8_TARGET_ARCH_X87
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 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 data->SetTranslationByteArray(*translations); 1188 data->SetTranslationByteArray(*translations);
1189 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); 1189 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_));
1190 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); 1190 data->SetOptimizationId(Smi::FromInt(info_->optimization_id()));
1191 if (info_->IsOptimizing()) { 1191 if (info_->IsOptimizing()) {
1192 // Reference to shared function info does not change between phases. 1192 // Reference to shared function info does not change between phases.
1193 AllowDeferredHandleDereference allow_handle_dereference; 1193 AllowDeferredHandleDereference allow_handle_dereference;
1194 data->SetSharedFunctionInfo(*info_->shared_info()); 1194 data->SetSharedFunctionInfo(*info_->shared_info());
1195 } else { 1195 } else {
1196 data->SetSharedFunctionInfo(Smi::FromInt(0)); 1196 data->SetSharedFunctionInfo(Smi::FromInt(0));
1197 } 1197 }
1198 data->SetWeakCellCache(Smi::FromInt(0));
1198 1199
1199 Handle<FixedArray> literals = 1200 Handle<FixedArray> literals =
1200 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); 1201 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED);
1201 { AllowDeferredHandleDereference copy_handles; 1202 { AllowDeferredHandleDereference copy_handles;
1202 for (int i = 0; i < deoptimization_literals_.length(); i++) { 1203 for (int i = 0; i < deoptimization_literals_.length(); i++) {
1203 literals->set(i, *deoptimization_literals_[i]); 1204 literals->set(i, *deoptimization_literals_[i]);
1204 } 1205 }
1205 data->SetLiteralArray(*literals); 1206 data->SetLiteralArray(*literals);
1206 } 1207 }
1207 1208
(...skipping 5121 matching lines...) Expand 10 before | Expand all | Expand 10 after
6329 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6330 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6330 RecordSafepoint(Safepoint::kNoLazyDeopt); 6331 RecordSafepoint(Safepoint::kNoLazyDeopt);
6331 } 6332 }
6332 6333
6333 6334
6334 #undef __ 6335 #undef __
6335 6336
6336 } } // namespace v8::internal 6337 } } // namespace v8::internal
6337 6338
6338 #endif // V8_TARGET_ARCH_X87 6339 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698