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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 } | 149 } |
150 __ MultiPush(object_regs | non_object_regs); | 150 __ MultiPush(object_regs | non_object_regs); |
151 } | 151 } |
152 | 152 |
153 #ifdef DEBUG | 153 #ifdef DEBUG |
154 __ RecordComment("// Calling from debug break to runtime - come in - over"); | 154 __ RecordComment("// Calling from debug break to runtime - come in - over"); |
155 #endif | 155 #endif |
156 __ PrepareCEntryArgs(0); // No arguments. | 156 __ PrepareCEntryArgs(0); // No arguments. |
157 __ PrepareCEntryFunction(ExternalReference::debug_break(masm->isolate())); | 157 __ PrepareCEntryFunction(ExternalReference::debug_break(masm->isolate())); |
158 | 158 |
159 CEntryStub ceb(1); | 159 CEntryStub ceb(masm->isolate(), 1); |
160 __ CallStub(&ceb); | 160 __ CallStub(&ceb); |
161 | 161 |
162 // Restore the register values from the expression stack. | 162 // Restore the register values from the expression stack. |
163 if ((object_regs | non_object_regs) != 0) { | 163 if ((object_regs | non_object_regs) != 0) { |
164 __ MultiPop(object_regs | non_object_regs); | 164 __ MultiPop(object_regs | non_object_regs); |
165 for (int i = 0; i < kNumJSCallerSaved; i++) { | 165 for (int i = 0; i < kNumJSCallerSaved; i++) { |
166 int r = JSCallerSavedCode(i); | 166 int r = JSCallerSavedCode(i); |
167 Register reg = { r }; | 167 Register reg = { r }; |
168 if ((non_object_regs & (1 << r)) != 0) { | 168 if ((non_object_regs & (1 << r)) != 0) { |
169 __ srl(reg, reg, kSmiTagSize); | 169 __ srl(reg, reg, kSmiTagSize); |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 const bool Debug::kFrameDropperSupported = false; | 338 const bool Debug::kFrameDropperSupported = false; |
339 | 339 |
340 #undef __ | 340 #undef __ |
341 | 341 |
342 | 342 |
343 #endif // ENABLE_DEBUGGER_SUPPORT | 343 #endif // ENABLE_DEBUGGER_SUPPORT |
344 | 344 |
345 } } // namespace v8::internal | 345 } } // namespace v8::internal |
346 | 346 |
347 #endif // V8_TARGET_ARCH_MIPS | 347 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |