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

Side by Side Diff: src/mips/lithium-codegen-mips.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/ia32/lithium-codegen-ia32.cc ('k') | src/mips64/lithium-codegen-mips64.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 data->SetTranslationByteArray(*translations); 901 data->SetTranslationByteArray(*translations);
902 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); 902 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_));
903 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); 903 data->SetOptimizationId(Smi::FromInt(info_->optimization_id()));
904 if (info_->IsOptimizing()) { 904 if (info_->IsOptimizing()) {
905 // Reference to shared function info does not change between phases. 905 // Reference to shared function info does not change between phases.
906 AllowDeferredHandleDereference allow_handle_dereference; 906 AllowDeferredHandleDereference allow_handle_dereference;
907 data->SetSharedFunctionInfo(*info_->shared_info()); 907 data->SetSharedFunctionInfo(*info_->shared_info());
908 } else { 908 } else {
909 data->SetSharedFunctionInfo(Smi::FromInt(0)); 909 data->SetSharedFunctionInfo(Smi::FromInt(0));
910 } 910 }
911 data->SetWeakCellCache(Smi::FromInt(0));
911 912
912 Handle<FixedArray> literals = 913 Handle<FixedArray> literals =
913 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); 914 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED);
914 { AllowDeferredHandleDereference copy_handles; 915 { AllowDeferredHandleDereference copy_handles;
915 for (int i = 0; i < deoptimization_literals_.length(); i++) { 916 for (int i = 0; i < deoptimization_literals_.length(); i++) {
916 literals->set(i, *deoptimization_literals_[i]); 917 literals->set(i, *deoptimization_literals_[i]);
917 } 918 }
918 data->SetLiteralArray(*literals); 919 data->SetLiteralArray(*literals);
919 } 920 }
920 921
(...skipping 5046 matching lines...) Expand 10 before | Expand all | Expand 10 after
5967 __ li(at, scope_info); 5968 __ li(at, scope_info);
5968 __ Push(at, ToRegister(instr->function())); 5969 __ Push(at, ToRegister(instr->function()));
5969 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5970 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5970 RecordSafepoint(Safepoint::kNoLazyDeopt); 5971 RecordSafepoint(Safepoint::kNoLazyDeopt);
5971 } 5972 }
5972 5973
5973 5974
5974 #undef __ 5975 #undef __
5975 5976
5976 } } // namespace v8::internal 5977 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698