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

Unified Diff: src/mips/lithium-codegen-mips.cc

Issue 23480031: Enable preaging of code objects when --optimize-for-size. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Make pre-aging conditional on is_memory_constrained() Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: src/mips/lithium-codegen-mips.cc
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
index ab713a3cec4a06d74e6c4e3edf1980eae0789283..b538df89d49938a5915a11482c32e48df4012c05 100644
--- a/src/mips/lithium-codegen-mips.cc
+++ b/src/mips/lithium-codegen-mips.cc
@@ -162,7 +162,9 @@ bool LCodeGen::GeneratePrologue() {
__ Push(ra, fp, cp, a1);
// Add unused nop to ensure prologue sequence is identical for
// full-codegen and lithium-codegen.
- __ nop(Assembler::CODE_AGE_SEQUENCE_NOP);
+ __ nop(isolate()->is_memory_constrained() ?
+ Assembler::CODE_AGE_PRE_AGED_SEQUENCE_NOP :
+ Assembler::CODE_AGE_YOUNG_SEQUENCE_NOP);
// Adj. FP to point to saved FP.
__ Addu(fp, sp, Operand(2 * kPointerSize));
}
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/objects.h » ('j') | test/cctest/test-heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698