| Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 1 | // Copyright 2010 the V8 project authors. All rights reserved. |
| 2 | // Redistribution and use in source and binary forms, with or without |
| 3 | // modification, are permitted provided that the following conditions are |
| 4 | // met: |
| 5 | // |
| 6 | // * Redistributions of source code must retain the above copyright |
| 7 | // notice, this list of conditions and the following disclaimer. |
| 8 | // * Redistributions in binary form must reproduce the above |
| 9 | // copyright notice, this list of conditions and the following |
| 10 | // disclaimer in the documentation and/or other materials provided |
| 11 | // with the distribution. |
| 12 | // * Neither the name of Google Inc. nor the names of its |
| 13 | // contributors may be used to endorse or promote products derived |
| 14 | // from this software without specific prior written permission. |
| 15 | // |
| 16 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 17 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 18 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 19 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 20 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 21 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 22 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | |
| 28 | |
| 29 | |
| 30 | #include "v8.h" |
| 31 | |
| Leon Clarke | f7060e2 | 2010-06-03 12:02:55 +0100 | [diff] [blame] | 32 | #if defined(V8_TARGET_ARCH_MIPS) |
| 33 | |
| Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 34 | #include "codegen-inl.h" |
| 35 | #include "debug.h" |
| 36 | |
| 37 | namespace v8 { |
| 38 | namespace internal { |
| 39 | |
| 40 | #ifdef ENABLE_DEBUGGER_SUPPORT |
| Steve Block | 44f0eee | 2011-05-26 01:26:41 +0100 | [diff] [blame^] | 41 | |
| Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 42 | bool BreakLocationIterator::IsDebugBreakAtReturn() { |
| Steve Block | 44f0eee | 2011-05-26 01:26:41 +0100 | [diff] [blame^] | 43 | UNIMPLEMENTED_MIPS(); |
| 44 | return false; |
| Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | |
| 48 | void BreakLocationIterator::SetDebugBreakAtReturn() { |
| 49 | UNIMPLEMENTED_MIPS(); |
| 50 | } |
| 51 | |
| 52 | |
| 53 | // Restore the JS frame exit code. |
| 54 | void BreakLocationIterator::ClearDebugBreakAtReturn() { |
| 55 | UNIMPLEMENTED_MIPS(); |
| 56 | } |
| 57 | |
| 58 | |
| Steve Block | 44f0eee | 2011-05-26 01:26:41 +0100 | [diff] [blame^] | 59 | // A debug break in the exit code is identified by the JS frame exit code |
| 60 | // having been patched with li/call psuedo-instrunction (liu/ori/jalr) |
| Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 61 | bool Debug::IsDebugBreakAtReturn(RelocInfo* rinfo) { |
| Steve Block | 44f0eee | 2011-05-26 01:26:41 +0100 | [diff] [blame^] | 62 | UNIMPLEMENTED_MIPS(); |
| 63 | return false; |
| 64 | } |
| 65 | |
| 66 | |
| 67 | bool BreakLocationIterator::IsDebugBreakAtSlot() { |
| 68 | UNIMPLEMENTED_MIPS(); |
| 69 | return false; |
| 70 | } |
| 71 | |
| 72 | |
| 73 | void BreakLocationIterator::SetDebugBreakAtSlot() { |
| 74 | UNIMPLEMENTED_MIPS(); |
| 75 | } |
| 76 | |
| 77 | |
| 78 | void BreakLocationIterator::ClearDebugBreakAtSlot() { |
| 79 | UNIMPLEMENTED_MIPS(); |
| Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 80 | } |
| 81 | |
| 82 | |
| 83 | #define __ ACCESS_MASM(masm) |
| 84 | |
| 85 | |
| Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 86 | void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) { |
| 87 | UNIMPLEMENTED_MIPS(); |
| 88 | } |
| 89 | |
| 90 | |
| 91 | void Debug::GenerateStoreICDebugBreak(MacroAssembler* masm) { |
| 92 | UNIMPLEMENTED_MIPS(); |
| 93 | } |
| 94 | |
| 95 | |
| 96 | void Debug::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) { |
| 97 | UNIMPLEMENTED_MIPS(); |
| 98 | } |
| 99 | |
| 100 | |
| 101 | void Debug::GenerateKeyedStoreICDebugBreak(MacroAssembler* masm) { |
| 102 | UNIMPLEMENTED_MIPS(); |
| 103 | } |
| 104 | |
| 105 | |
| 106 | void Debug::GenerateCallICDebugBreak(MacroAssembler* masm) { |
| 107 | UNIMPLEMENTED_MIPS(); |
| 108 | } |
| 109 | |
| 110 | |
| 111 | void Debug::GenerateConstructCallDebugBreak(MacroAssembler* masm) { |
| 112 | UNIMPLEMENTED_MIPS(); |
| 113 | } |
| 114 | |
| 115 | |
| 116 | void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { |
| 117 | UNIMPLEMENTED_MIPS(); |
| 118 | } |
| 119 | |
| 120 | |
| 121 | void Debug::GenerateStubNoRegistersDebugBreak(MacroAssembler* masm) { |
| 122 | UNIMPLEMENTED_MIPS(); |
| 123 | } |
| 124 | |
| 125 | |
| Steve Block | 44f0eee | 2011-05-26 01:26:41 +0100 | [diff] [blame^] | 126 | void Debug::GenerateSlot(MacroAssembler* masm) { |
| 127 | UNIMPLEMENTED_MIPS(); |
| Steve Block | 6ded16b | 2010-05-10 14:33:55 +0100 | [diff] [blame] | 128 | } |
| 129 | |
| Steve Block | 44f0eee | 2011-05-26 01:26:41 +0100 | [diff] [blame^] | 130 | |
| 131 | void Debug::GenerateSlotDebugBreak(MacroAssembler* masm) { |
| 132 | UNIMPLEMENTED_MIPS(); |
| 133 | } |
| 134 | |
| 135 | |
| 136 | void Debug::GeneratePlainReturnLiveEdit(MacroAssembler* masm) { |
| 137 | UNIMPLEMENTED_MIPS(); |
| 138 | } |
| 139 | |
| 140 | |
| Steve Block | 6ded16b | 2010-05-10 14:33:55 +0100 | [diff] [blame] | 141 | void Debug::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { |
| Steve Block | 44f0eee | 2011-05-26 01:26:41 +0100 | [diff] [blame^] | 142 | UNIMPLEMENTED_MIPS(); |
| Steve Block | 6ded16b | 2010-05-10 14:33:55 +0100 | [diff] [blame] | 143 | } |
| 144 | |
| Iain Merrick | 7568138 | 2010-08-19 15:07:18 +0100 | [diff] [blame] | 145 | |
| 146 | const bool Debug::kFrameDropperSupported = false; |
| 147 | |
| Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 148 | #undef __ |
| 149 | |
| Steve Block | 6ded16b | 2010-05-10 14:33:55 +0100 | [diff] [blame] | 150 | |
| Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 151 | #endif // ENABLE_DEBUGGER_SUPPORT |
| 152 | |
| 153 | } } // namespace v8::internal |
| 154 | |
| Leon Clarke | f7060e2 | 2010-06-03 12:02:55 +0100 | [diff] [blame] | 155 | #endif // V8_TARGET_ARCH_MIPS |