| 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_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 Operand(kPointerSize * LiveEdit::kFramePaddingInitialSize)); | 75 Operand(kPointerSize * LiveEdit::kFramePaddingInitialSize)); |
| 76 for (int i = LiveEdit::kFramePaddingInitialSize - 1; i >= 0; i--) { | 76 for (int i = LiveEdit::kFramePaddingInitialSize - 1; i >= 0; i--) { |
| 77 __ sd(at, MemOperand(sp, kPointerSize * i)); | 77 __ sd(at, MemOperand(sp, kPointerSize * i)); |
| 78 } | 78 } |
| 79 __ li(at, Operand(Smi::FromInt(LiveEdit::kFramePaddingInitialSize))); | 79 __ li(at, Operand(Smi::FromInt(LiveEdit::kFramePaddingInitialSize))); |
| 80 __ push(at); | 80 __ push(at); |
| 81 | 81 |
| 82 if (mode == SAVE_RESULT_REGISTER) __ push(v0); | 82 if (mode == SAVE_RESULT_REGISTER) __ push(v0); |
| 83 | 83 |
| 84 __ PrepareCEntryArgs(0); // No arguments. | 84 __ PrepareCEntryArgs(0); // No arguments. |
| 85 __ PrepareCEntryFunction(ExternalReference::debug_break(masm->isolate())); | 85 __ PrepareCEntryFunction(ExternalReference( |
| 86 Runtime::FunctionForId(Runtime::kDebugBreak), masm->isolate())); |
| 86 | 87 |
| 87 CEntryStub ceb(masm->isolate(), 1); | 88 CEntryStub ceb(masm->isolate(), 1); |
| 88 __ CallStub(&ceb); | 89 __ CallStub(&ceb); |
| 89 | 90 |
| 90 if (FLAG_debug_code) { | 91 if (FLAG_debug_code) { |
| 91 for (int i = 0; i < kNumJSCallerSaved; i++) { | 92 for (int i = 0; i < kNumJSCallerSaved; i++) { |
| 92 Register reg = {JSCallerSavedCode(i)}; | 93 Register reg = {JSCallerSavedCode(i)}; |
| 93 __ li(reg, kDebugZapValue); | 94 __ li(reg, kDebugZapValue); |
| 94 } | 95 } |
| 95 } | 96 } |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 145 |
| 145 | 146 |
| 146 const bool LiveEdit::kFrameDropperSupported = true; | 147 const bool LiveEdit::kFrameDropperSupported = true; |
| 147 | 148 |
| 148 #undef __ | 149 #undef __ |
| 149 | 150 |
| 150 } // namespace internal | 151 } // namespace internal |
| 151 } // namespace v8 | 152 } // namespace v8 |
| 152 | 153 |
| 153 #endif // V8_TARGET_ARCH_MIPS64 | 154 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |