blob: 35df69b813dfb836741f196f6da5401c3de53d19 [file] [log] [blame]
Andrei Popescu31002712010-02-23 13:46:05 +00001// 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 Clarkef7060e22010-06-03 12:02:55 +010032#if defined(V8_TARGET_ARCH_MIPS)
33
Andrei Popescu31002712010-02-23 13:46:05 +000034#include "codegen-inl.h"
35#include "debug.h"
36
37namespace v8 {
38namespace internal {
39
40#ifdef ENABLE_DEBUGGER_SUPPORT
Steve Block44f0eee2011-05-26 01:26:41 +010041
Andrei Popescu31002712010-02-23 13:46:05 +000042bool BreakLocationIterator::IsDebugBreakAtReturn() {
Steve Block44f0eee2011-05-26 01:26:41 +010043 UNIMPLEMENTED_MIPS();
44 return false;
Andrei Popescu31002712010-02-23 13:46:05 +000045}
46
47
48void BreakLocationIterator::SetDebugBreakAtReturn() {
49 UNIMPLEMENTED_MIPS();
50}
51
52
53// Restore the JS frame exit code.
54void BreakLocationIterator::ClearDebugBreakAtReturn() {
55 UNIMPLEMENTED_MIPS();
56}
57
58
Steve Block44f0eee2011-05-26 01:26:41 +010059// 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 Popescu31002712010-02-23 13:46:05 +000061bool Debug::IsDebugBreakAtReturn(RelocInfo* rinfo) {
Steve Block44f0eee2011-05-26 01:26:41 +010062 UNIMPLEMENTED_MIPS();
63 return false;
64}
65
66
67bool BreakLocationIterator::IsDebugBreakAtSlot() {
68 UNIMPLEMENTED_MIPS();
69 return false;
70}
71
72
73void BreakLocationIterator::SetDebugBreakAtSlot() {
74 UNIMPLEMENTED_MIPS();
75}
76
77
78void BreakLocationIterator::ClearDebugBreakAtSlot() {
79 UNIMPLEMENTED_MIPS();
Andrei Popescu31002712010-02-23 13:46:05 +000080}
81
82
83#define __ ACCESS_MASM(masm)
84
85
Andrei Popescu31002712010-02-23 13:46:05 +000086void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) {
87 UNIMPLEMENTED_MIPS();
88}
89
90
91void Debug::GenerateStoreICDebugBreak(MacroAssembler* masm) {
92 UNIMPLEMENTED_MIPS();
93}
94
95
96void Debug::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) {
97 UNIMPLEMENTED_MIPS();
98}
99
100
101void Debug::GenerateKeyedStoreICDebugBreak(MacroAssembler* masm) {
102 UNIMPLEMENTED_MIPS();
103}
104
105
106void Debug::GenerateCallICDebugBreak(MacroAssembler* masm) {
107 UNIMPLEMENTED_MIPS();
108}
109
110
111void Debug::GenerateConstructCallDebugBreak(MacroAssembler* masm) {
112 UNIMPLEMENTED_MIPS();
113}
114
115
116void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) {
117 UNIMPLEMENTED_MIPS();
118}
119
120
121void Debug::GenerateStubNoRegistersDebugBreak(MacroAssembler* masm) {
122 UNIMPLEMENTED_MIPS();
123}
124
125
Steve Block44f0eee2011-05-26 01:26:41 +0100126void Debug::GenerateSlot(MacroAssembler* masm) {
127 UNIMPLEMENTED_MIPS();
Steve Block6ded16b2010-05-10 14:33:55 +0100128}
129
Steve Block44f0eee2011-05-26 01:26:41 +0100130
131void Debug::GenerateSlotDebugBreak(MacroAssembler* masm) {
132 UNIMPLEMENTED_MIPS();
133}
134
135
136void Debug::GeneratePlainReturnLiveEdit(MacroAssembler* masm) {
137 UNIMPLEMENTED_MIPS();
138}
139
140
Steve Block6ded16b2010-05-10 14:33:55 +0100141void Debug::GenerateFrameDropperLiveEdit(MacroAssembler* masm) {
Steve Block44f0eee2011-05-26 01:26:41 +0100142 UNIMPLEMENTED_MIPS();
Steve Block6ded16b2010-05-10 14:33:55 +0100143}
144
Iain Merrick75681382010-08-19 15:07:18 +0100145
146const bool Debug::kFrameDropperSupported = false;
147
Andrei Popescu31002712010-02-23 13:46:05 +0000148#undef __
149
Steve Block6ded16b2010-05-10 14:33:55 +0100150
Andrei Popescu31002712010-02-23 13:46:05 +0000151#endif // ENABLE_DEBUGGER_SUPPORT
152
153} } // namespace v8::internal
154
Leon Clarkef7060e22010-06-03 12:02:55 +0100155#endif // V8_TARGET_ARCH_MIPS