| 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 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 Nop(kNoCodeAgeSequenceLength - Assembler::kCallInstructionLength); | 834 Nop(kNoCodeAgeSequenceLength - Assembler::kCallInstructionLength); |
| 835 } else { | 835 } else { |
| 836 push(ebp); // Caller's frame pointer. | 836 push(ebp); // Caller's frame pointer. |
| 837 mov(ebp, esp); | 837 mov(ebp, esp); |
| 838 push(esi); // Callee's context. | 838 push(esi); // Callee's context. |
| 839 push(edi); // Callee's JS function. | 839 push(edi); // Callee's JS function. |
| 840 } | 840 } |
| 841 } | 841 } |
| 842 | 842 |
| 843 | 843 |
| 844 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
| 845 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
| 846 mov(vector, FieldOperand(vector, JSFunction::kSharedFunctionInfoOffset)); |
| 847 mov(vector, FieldOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); |
| 848 } |
| 849 |
| 850 |
| 844 void MacroAssembler::EnterFrame(StackFrame::Type type, | 851 void MacroAssembler::EnterFrame(StackFrame::Type type, |
| 845 bool load_constant_pool_pointer_reg) { | 852 bool load_constant_pool_pointer_reg) { |
| 846 // Out-of-line constant pool not implemented on x87. | 853 // Out-of-line constant pool not implemented on x87. |
| 847 UNREACHABLE(); | 854 UNREACHABLE(); |
| 848 } | 855 } |
| 849 | 856 |
| 850 | 857 |
| 851 void MacroAssembler::EnterFrame(StackFrame::Type type) { | 858 void MacroAssembler::EnterFrame(StackFrame::Type type) { |
| 852 push(ebp); | 859 push(ebp); |
| 853 mov(ebp, esp); | 860 mov(ebp, esp); |
| (...skipping 2136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2990 mov(eax, dividend); | 2997 mov(eax, dividend); |
| 2991 shr(eax, 31); | 2998 shr(eax, 31); |
| 2992 add(edx, eax); | 2999 add(edx, eax); |
| 2993 } | 3000 } |
| 2994 | 3001 |
| 2995 | 3002 |
| 2996 } // namespace internal | 3003 } // namespace internal |
| 2997 } // namespace v8 | 3004 } // namespace v8 |
| 2998 | 3005 |
| 2999 #endif // V8_TARGET_ARCH_X87 | 3006 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |