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 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
962 push(ebp); // Caller's frame pointer. | 962 push(ebp); // Caller's frame pointer. |
963 mov(ebp, esp); | 963 mov(ebp, esp); |
964 push(esi); // Callee's context. | 964 push(esi); // Callee's context. |
965 push(edi); // Callee's JS function. | 965 push(edi); // Callee's JS function. |
966 } | 966 } |
967 } | 967 } |
968 | 968 |
969 | 969 |
970 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 970 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
971 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); | 971 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
972 mov(vector, FieldOperand(vector, JSFunction::kLiteralsOffset)); | 972 mov(vector, FieldOperand(vector, JSFunction::kFeedbackVectorOffset)); |
973 mov(vector, FieldOperand(vector, LiteralsArray::kFeedbackVectorOffset)); | 973 mov(vector, FieldOperand(vector, Cell::kValueOffset)); |
974 } | 974 } |
975 | 975 |
976 | 976 |
977 void MacroAssembler::EnterFrame(StackFrame::Type type, | 977 void MacroAssembler::EnterFrame(StackFrame::Type type, |
978 bool load_constant_pool_pointer_reg) { | 978 bool load_constant_pool_pointer_reg) { |
979 // Out-of-line constant pool not implemented on x87. | 979 // Out-of-line constant pool not implemented on x87. |
980 UNREACHABLE(); | 980 UNREACHABLE(); |
981 } | 981 } |
982 | 982 |
983 | 983 |
(...skipping 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2796 mov(eax, dividend); | 2796 mov(eax, dividend); |
2797 shr(eax, 31); | 2797 shr(eax, 31); |
2798 add(edx, eax); | 2798 add(edx, eax); |
2799 } | 2799 } |
2800 | 2800 |
2801 | 2801 |
2802 } // namespace internal | 2802 } // namespace internal |
2803 } // namespace v8 | 2803 } // namespace v8 |
2804 | 2804 |
2805 #endif // V8_TARGET_ARCH_X87 | 2805 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |