| 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 void MultiPushReversedFPU(RegList regs); | 613 void MultiPushReversedFPU(RegList regs); |
| 614 | 614 |
| 615 // Lower case push() for compatibility with arch-independent code. | 615 // Lower case push() for compatibility with arch-independent code. |
| 616 void push(Register src) { | 616 void push(Register src) { |
| 617 Addu(sp, sp, Operand(-kPointerSize)); | 617 Addu(sp, sp, Operand(-kPointerSize)); |
| 618 sw(src, MemOperand(sp, 0)); | 618 sw(src, MemOperand(sp, 0)); |
| 619 } | 619 } |
| 620 | 620 |
| 621 // Push a handle. | 621 // Push a handle. |
| 622 void Push(Handle<Object> handle); | 622 void Push(Handle<Object> handle); |
| 623 void Push(Smi* smi) { Push(Handle<Smi>(smi)); } |
| 623 | 624 |
| 624 // Push two registers. Pushes leftmost register first (to highest address). | 625 // Push two registers. Pushes leftmost register first (to highest address). |
| 625 void Push(Register src1, Register src2) { | 626 void Push(Register src1, Register src2) { |
| 626 Subu(sp, sp, Operand(2 * kPointerSize)); | 627 Subu(sp, sp, Operand(2 * kPointerSize)); |
| 627 sw(src1, MemOperand(sp, 1 * kPointerSize)); | 628 sw(src1, MemOperand(sp, 1 * kPointerSize)); |
| 628 sw(src2, MemOperand(sp, 0 * kPointerSize)); | 629 sw(src2, MemOperand(sp, 0 * kPointerSize)); |
| 629 } | 630 } |
| 630 | 631 |
| 631 // Push three registers. Pushes leftmost register first (to highest address). | 632 // Push three registers. Pushes leftmost register first (to highest address). |
| 632 void Push(Register src1, Register src2, Register src3) { | 633 void Push(Register src1, Register src2, Register src3) { |
| (...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1544 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1545 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 1545 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1546 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1546 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1547 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1547 #else | 1548 #else |
| 1548 #define ACCESS_MASM(masm) masm-> | 1549 #define ACCESS_MASM(masm) masm-> |
| 1549 #endif | 1550 #endif |
| 1550 | 1551 |
| 1551 } } // namespace v8::internal | 1552 } } // namespace v8::internal |
| 1552 | 1553 |
| 1553 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1554 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |