| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
| 10 | 10 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 Operand(kPointerSize * LiveEdit::kFramePaddingInitialSize)); | 73 Operand(kPointerSize * LiveEdit::kFramePaddingInitialSize)); |
| 74 for (int i = LiveEdit::kFramePaddingInitialSize - 1; i >= 0; i--) { | 74 for (int i = LiveEdit::kFramePaddingInitialSize - 1; i >= 0; i--) { |
| 75 __ sw(at, MemOperand(sp, kPointerSize * i)); | 75 __ sw(at, MemOperand(sp, kPointerSize * i)); |
| 76 } | 76 } |
| 77 __ li(at, Operand(Smi::FromInt(LiveEdit::kFramePaddingInitialSize))); | 77 __ li(at, Operand(Smi::FromInt(LiveEdit::kFramePaddingInitialSize))); |
| 78 __ push(at); | 78 __ push(at); |
| 79 | 79 |
| 80 if (mode == SAVE_RESULT_REGISTER) __ push(v0); | 80 if (mode == SAVE_RESULT_REGISTER) __ push(v0); |
| 81 | 81 |
| 82 __ PrepareCEntryArgs(0); // No arguments. | 82 __ PrepareCEntryArgs(0); // No arguments. |
| 83 __ PrepareCEntryFunction(ExternalReference::debug_break(masm->isolate())); | 83 __ PrepareCEntryFunction(ExternalReference( |
| 84 Runtime::FunctionForId(Runtime::kDebugBreak), masm->isolate())); |
| 84 | 85 |
| 85 CEntryStub ceb(masm->isolate(), 1); | 86 CEntryStub ceb(masm->isolate(), 1); |
| 86 __ CallStub(&ceb); | 87 __ CallStub(&ceb); |
| 87 | 88 |
| 88 if (FLAG_debug_code) { | 89 if (FLAG_debug_code) { |
| 89 for (int i = 0; i < kNumJSCallerSaved; i++) { | 90 for (int i = 0; i < kNumJSCallerSaved; i++) { |
| 90 Register reg = {JSCallerSavedCode(i)}; | 91 Register reg = {JSCallerSavedCode(i)}; |
| 91 __ li(reg, kDebugZapValue); | 92 __ li(reg, kDebugZapValue); |
| 92 } | 93 } |
| 93 } | 94 } |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 143 |
| 143 | 144 |
| 144 const bool LiveEdit::kFrameDropperSupported = true; | 145 const bool LiveEdit::kFrameDropperSupported = true; |
| 145 | 146 |
| 146 #undef __ | 147 #undef __ |
| 147 | 148 |
| 148 } // namespace internal | 149 } // namespace internal |
| 149 } // namespace v8 | 150 } // namespace v8 |
| 150 | 151 |
| 151 #endif // V8_TARGET_ARCH_MIPS | 152 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |