| 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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 void MultiPushReversedFPU(RegList regs); | 622 void MultiPushReversedFPU(RegList regs); |
| 623 | 623 |
| 624 // Lower case push() for compatibility with arch-independent code. | 624 // Lower case push() for compatibility with arch-independent code. |
| 625 void push(Register src) { | 625 void push(Register src) { |
| 626 Addu(sp, sp, Operand(-kPointerSize)); | 626 Addu(sp, sp, Operand(-kPointerSize)); |
| 627 sw(src, MemOperand(sp, 0)); | 627 sw(src, MemOperand(sp, 0)); |
| 628 } | 628 } |
| 629 | 629 |
| 630 // Push a handle. | 630 // Push a handle. |
| 631 void Push(Handle<Object> handle); | 631 void Push(Handle<Object> handle); |
| 632 void Push(Smi* smi) { Push(Handle<Smi>(smi)); } | 632 void Push(Smi* smi) { Push(Handle<Smi>(smi, isolate())); } |
| 633 | 633 |
| 634 // Push two registers. Pushes leftmost register first (to highest address). | 634 // Push two registers. Pushes leftmost register first (to highest address). |
| 635 void Push(Register src1, Register src2) { | 635 void Push(Register src1, Register src2) { |
| 636 Subu(sp, sp, Operand(2 * kPointerSize)); | 636 Subu(sp, sp, Operand(2 * kPointerSize)); |
| 637 sw(src1, MemOperand(sp, 1 * kPointerSize)); | 637 sw(src1, MemOperand(sp, 1 * kPointerSize)); |
| 638 sw(src2, MemOperand(sp, 0 * kPointerSize)); | 638 sw(src2, MemOperand(sp, 0 * kPointerSize)); |
| 639 } | 639 } |
| 640 | 640 |
| 641 // Push three registers. Pushes leftmost register first (to highest address). | 641 // Push three registers. Pushes leftmost register first (to highest address). |
| 642 void Push(Register src1, Register src2, Register src3) { | 642 void Push(Register src1, Register src2, Register src3) { |
| (...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1568 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1568 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 1569 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1569 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1570 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1570 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1571 #else | 1571 #else |
| 1572 #define ACCESS_MASM(masm) masm-> | 1572 #define ACCESS_MASM(masm) masm-> |
| 1573 #endif | 1573 #endif |
| 1574 | 1574 |
| 1575 } } // namespace v8::internal | 1575 } } // namespace v8::internal |
| 1576 | 1576 |
| 1577 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1577 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |