OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 // saved in higher memory addresses. | 464 // saved in higher memory addresses. |
465 void MultiPush(RegList regs); | 465 void MultiPush(RegList regs); |
466 void MultiPushReversed(RegList regs); | 466 void MultiPushReversed(RegList regs); |
467 | 467 |
468 // Lower case push() for compatibility with arch-independent code. | 468 // Lower case push() for compatibility with arch-independent code. |
469 void push(Register src) { | 469 void push(Register src) { |
470 Addu(sp, sp, Operand(-kPointerSize)); | 470 Addu(sp, sp, Operand(-kPointerSize)); |
471 sw(src, MemOperand(sp, 0)); | 471 sw(src, MemOperand(sp, 0)); |
472 } | 472 } |
473 | 473 |
| 474 // Push a handle. |
| 475 void Push(Handle<Object> handle); |
| 476 |
474 // Push two registers. Pushes leftmost register first (to highest address). | 477 // Push two registers. Pushes leftmost register first (to highest address). |
475 void Push(Register src1, Register src2) { | 478 void Push(Register src1, Register src2) { |
476 Subu(sp, sp, Operand(2 * kPointerSize)); | 479 Subu(sp, sp, Operand(2 * kPointerSize)); |
477 sw(src1, MemOperand(sp, 1 * kPointerSize)); | 480 sw(src1, MemOperand(sp, 1 * kPointerSize)); |
478 sw(src2, MemOperand(sp, 0 * kPointerSize)); | 481 sw(src2, MemOperand(sp, 0 * kPointerSize)); |
479 } | 482 } |
480 | 483 |
481 // Push three registers. Pushes leftmost register first (to highest address). | 484 // Push three registers. Pushes leftmost register first (to highest address). |
482 void Push(Register src1, Register src2, Register src3) { | 485 void Push(Register src1, Register src2, Register src3) { |
483 Subu(sp, sp, Operand(3 * kPointerSize)); | 486 Subu(sp, sp, Operand(3 * kPointerSize)); |
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1219 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1222 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1220 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1223 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1221 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1224 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1222 #else | 1225 #else |
1223 #define ACCESS_MASM(masm) masm-> | 1226 #define ACCESS_MASM(masm) masm-> |
1224 #endif | 1227 #endif |
1225 | 1228 |
1226 } } // namespace v8::internal | 1229 } } // namespace v8::internal |
1227 | 1230 |
1228 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1231 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |