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 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 push(ebp); // Caller's frame pointer. | 847 push(ebp); // Caller's frame pointer. |
848 mov(ebp, esp); | 848 mov(ebp, esp); |
849 push(esi); // Callee's context. | 849 push(esi); // Callee's context. |
850 push(edi); // Callee's JS function. | 850 push(edi); // Callee's JS function. |
851 } | 851 } |
852 } | 852 } |
853 | 853 |
854 | 854 |
855 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 855 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
856 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); | 856 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
857 mov(vector, FieldOperand(vector, JSFunction::kLiteralsOffset)); | 857 mov(vector, FieldOperand(vector, JSFunction::kSharedFunctionInfoOffset)); |
858 mov(vector, FieldOperand(vector, LiteralsArray::kFeedbackVectorOffset)); | 858 mov(vector, FieldOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); |
859 } | 859 } |
860 | 860 |
861 | 861 |
862 void MacroAssembler::EnterFrame(StackFrame::Type type, | 862 void MacroAssembler::EnterFrame(StackFrame::Type type, |
863 bool load_constant_pool_pointer_reg) { | 863 bool load_constant_pool_pointer_reg) { |
864 // Out-of-line constant pool not implemented on x87. | 864 // Out-of-line constant pool not implemented on x87. |
865 UNREACHABLE(); | 865 UNREACHABLE(); |
866 } | 866 } |
867 | 867 |
868 | 868 |
(...skipping 2099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2968 mov(eax, dividend); | 2968 mov(eax, dividend); |
2969 shr(eax, 31); | 2969 shr(eax, 31); |
2970 add(edx, eax); | 2970 add(edx, eax); |
2971 } | 2971 } |
2972 | 2972 |
2973 | 2973 |
2974 } // namespace internal | 2974 } // namespace internal |
2975 } // namespace v8 | 2975 } // namespace v8 |
2976 | 2976 |
2977 #endif // V8_TARGET_ARCH_X87 | 2977 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |