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

Side by Side Diff: src/mips/assembler-mips.h

Issue 23480031: Enable preaging of code objects when --optimize-for-size. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Limit to pre-age patch. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 DEBUG_BREAK_NOP, 582 DEBUG_BREAK_NOP,
583 // IC markers. 583 // IC markers.
584 PROPERTY_ACCESS_INLINED, 584 PROPERTY_ACCESS_INLINED,
585 PROPERTY_ACCESS_INLINED_CONTEXT, 585 PROPERTY_ACCESS_INLINED_CONTEXT,
586 PROPERTY_ACCESS_INLINED_CONTEXT_DONT_DELETE, 586 PROPERTY_ACCESS_INLINED_CONTEXT_DONT_DELETE,
587 // Helper values. 587 // Helper values.
588 LAST_CODE_MARKER, 588 LAST_CODE_MARKER,
589 FIRST_IC_MARKER = PROPERTY_ACCESS_INLINED, 589 FIRST_IC_MARKER = PROPERTY_ACCESS_INLINED,
590 // Code aging 590 // Code aging
591 CODE_AGE_MARKER_NOP = 6, 591 CODE_AGE_MARKER_NOP = 6,
592 CODE_AGE_SEQUENCE_NOP 592 CODE_AGE_YOUNG_SEQUENCE_NOP,
593 CODE_AGE_PRE_AGED_SEQUENCE_NOP
593 }; 594 };
594 595
595 // Type == 0 is the default non-marking nop. For mips this is a 596 // Type == 0 is the default non-marking nop. For mips this is a
596 // sll(zero_reg, zero_reg, 0). We use rt_reg == at for non-zero 597 // sll(zero_reg, zero_reg, 0). We use rt_reg == at for non-zero
597 // marking, to avoid conflict with ssnop and ehb instructions. 598 // marking, to avoid conflict with ssnop and ehb instructions.
598 void nop(unsigned int type = 0) { 599 void nop(unsigned int type = 0) {
599 ASSERT(type < 32); 600 ASSERT(type < 32);
600 Register nop_rt_reg = (type == 0) ? zero_reg : at; 601 Register nop_rt_reg = (type == 0) ? zero_reg : at;
601 sll(zero_reg, nop_rt_reg, type, true); 602 sll(zero_reg, nop_rt_reg, type, true);
602 } 603 }
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 class EnsureSpace BASE_EMBEDDED { 1211 class EnsureSpace BASE_EMBEDDED {
1211 public: 1212 public:
1212 explicit EnsureSpace(Assembler* assembler) { 1213 explicit EnsureSpace(Assembler* assembler) {
1213 assembler->CheckBuffer(); 1214 assembler->CheckBuffer();
1214 } 1215 }
1215 }; 1216 };
1216 1217
1217 } } // namespace v8::internal 1218 } } // namespace v8::internal
1218 1219
1219 #endif // V8_ARM_ASSEMBLER_MIPS_H_ 1220 #endif // V8_ARM_ASSEMBLER_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698