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 1998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2009 mov(reg2, scratch); | 2009 mov(reg2, scratch); |
2010 } | 2010 } |
2011 } | 2011 } |
2012 | 2012 |
2013 | 2013 |
2014 void MacroAssembler::Call(Label* target) { | 2014 void MacroAssembler::Call(Label* target) { |
2015 BranchAndLink(target); | 2015 BranchAndLink(target); |
2016 } | 2016 } |
2017 | 2017 |
2018 | 2018 |
| 2019 void MacroAssembler::Push(Handle<Object> handle) { |
| 2020 li(at, Operand(handle)); |
| 2021 push(at); |
| 2022 } |
| 2023 |
| 2024 |
2019 #ifdef ENABLE_DEBUGGER_SUPPORT | 2025 #ifdef ENABLE_DEBUGGER_SUPPORT |
2020 | 2026 |
2021 void MacroAssembler::DebugBreak() { | 2027 void MacroAssembler::DebugBreak() { |
2022 ASSERT(allow_stub_calls()); | 2028 ASSERT(allow_stub_calls()); |
2023 mov(a0, zero_reg); | 2029 mov(a0, zero_reg); |
2024 li(a1, Operand(ExternalReference(Runtime::kDebugBreak, isolate()))); | 2030 li(a1, Operand(ExternalReference(Runtime::kDebugBreak, isolate()))); |
2025 CEntryStub ces(1); | 2031 CEntryStub ces(1); |
2026 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK); | 2032 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK); |
2027 } | 2033 } |
2028 | 2034 |
(...skipping 2075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4104 opcode == BGTZL); | 4110 opcode == BGTZL); |
4105 opcode = (cond == eq) ? BEQ : BNE; | 4111 opcode = (cond == eq) ? BEQ : BNE; |
4106 instr = (instr & ~kOpcodeMask) | opcode; | 4112 instr = (instr & ~kOpcodeMask) | opcode; |
4107 masm_.emit(instr); | 4113 masm_.emit(instr); |
4108 } | 4114 } |
4109 | 4115 |
4110 | 4116 |
4111 } } // namespace v8::internal | 4117 } } // namespace v8::internal |
4112 | 4118 |
4113 #endif // V8_TARGET_ARCH_MIPS | 4119 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |