| 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 2670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2681 BranchAndLink(target); | 2681 BranchAndLink(target); |
| 2682 } | 2682 } |
| 2683 | 2683 |
| 2684 | 2684 |
| 2685 void MacroAssembler::Push(Handle<Object> handle) { | 2685 void MacroAssembler::Push(Handle<Object> handle) { |
| 2686 li(at, Operand(handle)); | 2686 li(at, Operand(handle)); |
| 2687 push(at); | 2687 push(at); |
| 2688 } | 2688 } |
| 2689 | 2689 |
| 2690 | 2690 |
| 2691 #ifdef ENABLE_DEBUGGER_SUPPORT | |
| 2692 | |
| 2693 void MacroAssembler::DebugBreak() { | 2691 void MacroAssembler::DebugBreak() { |
| 2694 PrepareCEntryArgs(0); | 2692 PrepareCEntryArgs(0); |
| 2695 PrepareCEntryFunction(ExternalReference(Runtime::kDebugBreak, isolate())); | 2693 PrepareCEntryFunction(ExternalReference(Runtime::kDebugBreak, isolate())); |
| 2696 CEntryStub ces(isolate(), 1); | 2694 CEntryStub ces(isolate(), 1); |
| 2697 ASSERT(AllowThisStubCall(&ces)); | 2695 ASSERT(AllowThisStubCall(&ces)); |
| 2698 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK); | 2696 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK); |
| 2699 } | 2697 } |
| 2700 | 2698 |
| 2701 #endif // ENABLE_DEBUGGER_SUPPORT | |
| 2702 | |
| 2703 | 2699 |
| 2704 // --------------------------------------------------------------------------- | 2700 // --------------------------------------------------------------------------- |
| 2705 // Exception handling. | 2701 // Exception handling. |
| 2706 | 2702 |
| 2707 void MacroAssembler::PushTryHandler(StackHandler::Kind kind, | 2703 void MacroAssembler::PushTryHandler(StackHandler::Kind kind, |
| 2708 int handler_index) { | 2704 int handler_index) { |
| 2709 // Adjust this code if not the case. | 2705 // Adjust this code if not the case. |
| 2710 STATIC_ASSERT(StackHandlerConstants::kSize == 5 * kPointerSize); | 2706 STATIC_ASSERT(StackHandlerConstants::kSize == 5 * kPointerSize); |
| 2711 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); | 2707 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); |
| 2712 STATIC_ASSERT(StackHandlerConstants::kCodeOffset == 1 * kPointerSize); | 2708 STATIC_ASSERT(StackHandlerConstants::kCodeOffset == 1 * kPointerSize); |
| (...skipping 3063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5776 } | 5772 } |
| 5777 if (ms.shift() > 0) sra(result, result, ms.shift()); | 5773 if (ms.shift() > 0) sra(result, result, ms.shift()); |
| 5778 srl(at, dividend, 31); | 5774 srl(at, dividend, 31); |
| 5779 Addu(result, result, Operand(at)); | 5775 Addu(result, result, Operand(at)); |
| 5780 } | 5776 } |
| 5781 | 5777 |
| 5782 | 5778 |
| 5783 } } // namespace v8::internal | 5779 } } // namespace v8::internal |
| 5784 | 5780 |
| 5785 #endif // V8_TARGET_ARCH_MIPS | 5781 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |