OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 __ bind(&zero); | 593 __ bind(&zero); |
594 __ Move(result, kDoubleRegZero); | 594 __ Move(result, kDoubleRegZero); |
595 __ Branch(&done); | 595 __ Branch(&done); |
596 | 596 |
597 __ bind(&infinity); | 597 __ bind(&infinity); |
598 __ ldc1(result, ExpConstant(2, temp3)); | 598 __ ldc1(result, ExpConstant(2, temp3)); |
599 | 599 |
600 __ bind(&done); | 600 __ bind(&done); |
601 } | 601 } |
602 | 602 |
603 | 603 #ifdef DEBUG |
604 // nop(CODE_AGE_MARKER_NOP) | 604 // nop(CODE_AGE_MARKER_NOP) |
605 static const uint32_t kCodeAgePatchFirstInstruction = 0x00010180; | 605 static const uint32_t kCodeAgePatchFirstInstruction = 0x00010180; |
| 606 #endif |
606 | 607 |
607 static byte* GetNoCodeAgeSequence(uint32_t* length) { | 608 static byte* GetNoCodeAgeSequence(uint32_t* length) { |
608 // The sequence of instructions that is patched out for aging code is the | 609 // The sequence of instructions that is patched out for aging code is the |
609 // following boilerplate stack-building prologue that is found in FUNCTIONS | 610 // following boilerplate stack-building prologue that is found in FUNCTIONS |
610 static bool initialized = false; | 611 static bool initialized = false; |
611 static uint32_t sequence[kNoCodeAgeSequenceLength]; | 612 static uint32_t sequence[kNoCodeAgeSequenceLength]; |
612 byte* byte_sequence = reinterpret_cast<byte*>(sequence); | 613 byte* byte_sequence = reinterpret_cast<byte*>(sequence); |
613 *length = kNoCodeAgeSequenceLength * Assembler::kInstrSize; | 614 *length = kNoCodeAgeSequenceLength * Assembler::kInstrSize; |
614 if (!initialized) { | 615 if (!initialized) { |
615 CodePatcher patcher(byte_sequence, kNoCodeAgeSequenceLength); | 616 CodePatcher patcher(byte_sequence, kNoCodeAgeSequenceLength); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 patcher.masm()->nop(); // Pad the empty space. | 674 patcher.masm()->nop(); // Pad the empty space. |
674 } | 675 } |
675 } | 676 } |
676 | 677 |
677 | 678 |
678 #undef __ | 679 #undef __ |
679 | 680 |
680 } } // namespace v8::internal | 681 } } // namespace v8::internal |
681 | 682 |
682 #endif // V8_TARGET_ARCH_MIPS | 683 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |