OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include <assert.h> // For assert | 5 #include <assert.h> // For assert |
6 #include <limits.h> // For LONG_MIN, LONG_MAX. | 6 #include <limits.h> // For LONG_MIN, LONG_MAX. |
7 | 7 |
8 #if V8_TARGET_ARCH_PPC | 8 #if V8_TARGET_ARCH_PPC |
9 | 9 |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1082 } | 1082 } |
1083 bind(®ular_invoke); | 1083 bind(®ular_invoke); |
1084 } | 1084 } |
1085 } | 1085 } |
1086 | 1086 |
1087 | 1087 |
1088 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target, | 1088 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target, |
1089 const ParameterCount& expected, | 1089 const ParameterCount& expected, |
1090 const ParameterCount& actual) { | 1090 const ParameterCount& actual) { |
1091 Label skip_flooding; | 1091 Label skip_flooding; |
1092 ExternalReference debug_step_action = | 1092 ExternalReference step_in_enabled = |
1093 ExternalReference::debug_last_step_action_address(isolate()); | 1093 ExternalReference::debug_step_in_enabled_address(isolate()); |
1094 mov(r7, Operand(debug_step_action)); | 1094 mov(r7, Operand(step_in_enabled)); |
1095 lbz(r7, MemOperand(r7)); | 1095 lbz(r7, MemOperand(r7)); |
1096 cmpi(r7, Operand(StepIn)); | 1096 cmpi(r7, Operand::Zero()); |
1097 bne(&skip_flooding); | 1097 beq(&skip_flooding); |
1098 { | 1098 { |
1099 FrameScope frame(this, | 1099 FrameScope frame(this, |
1100 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL); | 1100 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL); |
1101 if (expected.is_reg()) { | 1101 if (expected.is_reg()) { |
1102 SmiTag(expected.reg()); | 1102 SmiTag(expected.reg()); |
1103 Push(expected.reg()); | 1103 Push(expected.reg()); |
1104 } | 1104 } |
1105 if (actual.is_reg()) { | 1105 if (actual.is_reg()) { |
1106 SmiTag(actual.reg()); | 1106 SmiTag(actual.reg()); |
1107 Push(actual.reg()); | 1107 Push(actual.reg()); |
(...skipping 3300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4408 } | 4408 } |
4409 if (mag.shift > 0) srawi(result, result, mag.shift); | 4409 if (mag.shift > 0) srawi(result, result, mag.shift); |
4410 ExtractBit(r0, dividend, 31); | 4410 ExtractBit(r0, dividend, 31); |
4411 add(result, result, r0); | 4411 add(result, result, r0); |
4412 } | 4412 } |
4413 | 4413 |
4414 } // namespace internal | 4414 } // namespace internal |
4415 } // namespace v8 | 4415 } // namespace v8 |
4416 | 4416 |
4417 #endif // V8_TARGET_ARCH_PPC | 4417 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |