| 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 #if V8_TARGET_ARCH_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 6 | 6 |
| 7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
| 8 #include "src/base/division-by-constant.h" | 8 #include "src/base/division-by-constant.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2002 } | 2002 } |
| 2003 if (actual.is_reg()) { | 2003 if (actual.is_reg()) { |
| 2004 SmiTag(actual.reg()); | 2004 SmiTag(actual.reg()); |
| 2005 Push(actual.reg()); | 2005 Push(actual.reg()); |
| 2006 } | 2006 } |
| 2007 if (new_target.is_valid()) { | 2007 if (new_target.is_valid()) { |
| 2008 Push(new_target); | 2008 Push(new_target); |
| 2009 } | 2009 } |
| 2010 Push(fun); | 2010 Push(fun); |
| 2011 Push(fun); | 2011 Push(fun); |
| 2012 CallRuntime(Runtime::kDebugPrepareStepInIfStepping, 1); | 2012 CallRuntime(Runtime::kDebugPrepareStepInIfStepping); |
| 2013 Pop(fun); | 2013 Pop(fun); |
| 2014 if (new_target.is_valid()) { | 2014 if (new_target.is_valid()) { |
| 2015 Pop(new_target); | 2015 Pop(new_target); |
| 2016 } | 2016 } |
| 2017 if (actual.is_reg()) { | 2017 if (actual.is_reg()) { |
| 2018 Pop(actual.reg()); | 2018 Pop(actual.reg()); |
| 2019 SmiUntag(actual.reg()); | 2019 SmiUntag(actual.reg()); |
| 2020 } | 2020 } |
| 2021 if (expected.is_reg()) { | 2021 if (expected.is_reg()) { |
| 2022 Pop(expected.reg()); | 2022 Pop(expected.reg()); |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2517 return; | 2517 return; |
| 2518 } | 2518 } |
| 2519 #endif | 2519 #endif |
| 2520 | 2520 |
| 2521 push(Immediate(reinterpret_cast<intptr_t>(Smi::FromInt(reason)))); | 2521 push(Immediate(reinterpret_cast<intptr_t>(Smi::FromInt(reason)))); |
| 2522 // Disable stub call restrictions to always allow calls to abort. | 2522 // Disable stub call restrictions to always allow calls to abort. |
| 2523 if (!has_frame_) { | 2523 if (!has_frame_) { |
| 2524 // We don't actually want to generate a pile of code for this, so just | 2524 // We don't actually want to generate a pile of code for this, so just |
| 2525 // claim there is a stack frame, without generating one. | 2525 // claim there is a stack frame, without generating one. |
| 2526 FrameScope scope(this, StackFrame::NONE); | 2526 FrameScope scope(this, StackFrame::NONE); |
| 2527 CallRuntime(Runtime::kAbort, 1); | 2527 CallRuntime(Runtime::kAbort); |
| 2528 } else { | 2528 } else { |
| 2529 CallRuntime(Runtime::kAbort, 1); | 2529 CallRuntime(Runtime::kAbort); |
| 2530 } | 2530 } |
| 2531 // will not return here | 2531 // will not return here |
| 2532 int3(); | 2532 int3(); |
| 2533 } | 2533 } |
| 2534 | 2534 |
| 2535 | 2535 |
| 2536 void MacroAssembler::LoadInstanceDescriptors(Register map, | 2536 void MacroAssembler::LoadInstanceDescriptors(Register map, |
| 2537 Register descriptors) { | 2537 Register descriptors) { |
| 2538 mov(descriptors, FieldOperand(map, Map::kDescriptorsOffset)); | 2538 mov(descriptors, FieldOperand(map, Map::kDescriptorsOffset)); |
| 2539 } | 2539 } |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2988 mov(eax, dividend); | 2988 mov(eax, dividend); |
| 2989 shr(eax, 31); | 2989 shr(eax, 31); |
| 2990 add(edx, eax); | 2990 add(edx, eax); |
| 2991 } | 2991 } |
| 2992 | 2992 |
| 2993 | 2993 |
| 2994 } // namespace internal | 2994 } // namespace internal |
| 2995 } // namespace v8 | 2995 } // namespace v8 |
| 2996 | 2996 |
| 2997 #endif // V8_TARGET_ARCH_X87 | 2997 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |