| OLD | NEW |
| 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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 // states of the generated code. | 656 // states of the generated code. |
| 657 enum NopMarkerTypes { | 657 enum NopMarkerTypes { |
| 658 NON_MARKING_NOP = 0, | 658 NON_MARKING_NOP = 0, |
| 659 DEBUG_BREAK_NOP, | 659 DEBUG_BREAK_NOP, |
| 660 // IC markers. | 660 // IC markers. |
| 661 PROPERTY_ACCESS_INLINED, | 661 PROPERTY_ACCESS_INLINED, |
| 662 PROPERTY_ACCESS_INLINED_CONTEXT, | 662 PROPERTY_ACCESS_INLINED_CONTEXT, |
| 663 PROPERTY_ACCESS_INLINED_CONTEXT_DONT_DELETE, | 663 PROPERTY_ACCESS_INLINED_CONTEXT_DONT_DELETE, |
| 664 // Helper values. | 664 // Helper values. |
| 665 LAST_CODE_MARKER, | 665 LAST_CODE_MARKER, |
| 666 FIRST_IC_MARKER = PROPERTY_ACCESS_INLINED | 666 FIRST_IC_MARKER = PROPERTY_ACCESS_INLINED, |
| 667 // Code aging |
| 668 CODE_AGE_MARKER_NOP = 6 |
| 667 }; | 669 }; |
| 668 | 670 |
| 669 // Type == 0 is the default non-marking nop. For mips this is a | 671 // Type == 0 is the default non-marking nop. For mips this is a |
| 670 // sll(zero_reg, zero_reg, 0). We use rt_reg == at for non-zero | 672 // sll(zero_reg, zero_reg, 0). We use rt_reg == at for non-zero |
| 671 // marking, to avoid conflict with ssnop and ehb instructions. | 673 // marking, to avoid conflict with ssnop and ehb instructions. |
| 672 void nop(unsigned int type = 0) { | 674 void nop(unsigned int type = 0) { |
| 673 ASSERT(type < 32); | 675 ASSERT(type < 32); |
| 674 Register nop_rt_reg = (type == 0) ? zero_reg : at; | 676 Register nop_rt_reg = (type == 0) ? zero_reg : at; |
| 675 sll(zero_reg, nop_rt_reg, type, true); | 677 sll(zero_reg, nop_rt_reg, type, true); |
| 676 } | 678 } |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1285 class EnsureSpace BASE_EMBEDDED { | 1287 class EnsureSpace BASE_EMBEDDED { |
| 1286 public: | 1288 public: |
| 1287 explicit EnsureSpace(Assembler* assembler) { | 1289 explicit EnsureSpace(Assembler* assembler) { |
| 1288 assembler->CheckBuffer(); | 1290 assembler->CheckBuffer(); |
| 1289 } | 1291 } |
| 1290 }; | 1292 }; |
| 1291 | 1293 |
| 1292 } } // namespace v8::internal | 1294 } } // namespace v8::internal |
| 1293 | 1295 |
| 1294 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1296 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |