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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
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 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2037 } | 2037 } |
2038 if (actual.is_reg()) { | 2038 if (actual.is_reg()) { |
2039 SmiTag(actual.reg()); | 2039 SmiTag(actual.reg()); |
2040 Push(actual.reg()); | 2040 Push(actual.reg()); |
2041 } | 2041 } |
2042 if (new_target.is_valid()) { | 2042 if (new_target.is_valid()) { |
2043 Push(new_target); | 2043 Push(new_target); |
2044 } | 2044 } |
2045 Push(fun); | 2045 Push(fun); |
2046 Push(fun); | 2046 Push(fun); |
2047 CallRuntime(Runtime::kDebugPrepareStepInIfStepping, 1); | 2047 CallRuntime(Runtime::kDebugPrepareStepInIfStepping); |
2048 Pop(fun); | 2048 Pop(fun); |
2049 if (new_target.is_valid()) { | 2049 if (new_target.is_valid()) { |
2050 Pop(new_target); | 2050 Pop(new_target); |
2051 } | 2051 } |
2052 if (actual.is_reg()) { | 2052 if (actual.is_reg()) { |
2053 Pop(actual.reg()); | 2053 Pop(actual.reg()); |
2054 SmiUntag(actual.reg()); | 2054 SmiUntag(actual.reg()); |
2055 } | 2055 } |
2056 if (expected.is_reg()) { | 2056 if (expected.is_reg()) { |
2057 Pop(expected.reg()); | 2057 Pop(expected.reg()); |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2634 return; | 2634 return; |
2635 } | 2635 } |
2636 #endif | 2636 #endif |
2637 | 2637 |
2638 push(Immediate(reinterpret_cast<intptr_t>(Smi::FromInt(reason)))); | 2638 push(Immediate(reinterpret_cast<intptr_t>(Smi::FromInt(reason)))); |
2639 // Disable stub call restrictions to always allow calls to abort. | 2639 // Disable stub call restrictions to always allow calls to abort. |
2640 if (!has_frame_) { | 2640 if (!has_frame_) { |
2641 // We don't actually want to generate a pile of code for this, so just | 2641 // We don't actually want to generate a pile of code for this, so just |
2642 // claim there is a stack frame, without generating one. | 2642 // claim there is a stack frame, without generating one. |
2643 FrameScope scope(this, StackFrame::NONE); | 2643 FrameScope scope(this, StackFrame::NONE); |
2644 CallRuntime(Runtime::kAbort, 1); | 2644 CallRuntime(Runtime::kAbort); |
2645 } else { | 2645 } else { |
2646 CallRuntime(Runtime::kAbort, 1); | 2646 CallRuntime(Runtime::kAbort); |
2647 } | 2647 } |
2648 // will not return here | 2648 // will not return here |
2649 int3(); | 2649 int3(); |
2650 } | 2650 } |
2651 | 2651 |
2652 | 2652 |
2653 void MacroAssembler::LoadInstanceDescriptors(Register map, | 2653 void MacroAssembler::LoadInstanceDescriptors(Register map, |
2654 Register descriptors) { | 2654 Register descriptors) { |
2655 mov(descriptors, FieldOperand(map, Map::kDescriptorsOffset)); | 2655 mov(descriptors, FieldOperand(map, Map::kDescriptorsOffset)); |
2656 } | 2656 } |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3116 mov(eax, dividend); | 3116 mov(eax, dividend); |
3117 shr(eax, 31); | 3117 shr(eax, 31); |
3118 add(edx, eax); | 3118 add(edx, eax); |
3119 } | 3119 } |
3120 | 3120 |
3121 | 3121 |
3122 } // namespace internal | 3122 } // namespace internal |
3123 } // namespace v8 | 3123 } // namespace v8 |
3124 | 3124 |
3125 #endif // V8_TARGET_ARCH_IA32 | 3125 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |