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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 push(ebp); // Caller's frame pointer. | 875 push(ebp); // Caller's frame pointer. |
876 mov(ebp, esp); | 876 mov(ebp, esp); |
877 push(esi); // Callee's context. | 877 push(esi); // Callee's context. |
878 push(edi); // Callee's JS function. | 878 push(edi); // Callee's JS function. |
879 } | 879 } |
880 } | 880 } |
881 | 881 |
882 | 882 |
883 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 883 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
884 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); | 884 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
885 mov(vector, FieldOperand(vector, JSFunction::kLiteralsOffset)); | 885 mov(vector, FieldOperand(vector, JSFunction::kSharedFunctionInfoOffset)); |
886 mov(vector, FieldOperand(vector, LiteralsArray::kFeedbackVectorOffset)); | 886 mov(vector, FieldOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); |
887 } | 887 } |
888 | 888 |
889 | 889 |
890 void MacroAssembler::EnterFrame(StackFrame::Type type, | 890 void MacroAssembler::EnterFrame(StackFrame::Type type, |
891 bool load_constant_pool_pointer_reg) { | 891 bool load_constant_pool_pointer_reg) { |
892 // Out-of-line constant pool not implemented on ia32. | 892 // Out-of-line constant pool not implemented on ia32. |
893 UNREACHABLE(); | 893 UNREACHABLE(); |
894 } | 894 } |
895 | 895 |
896 | 896 |
(...skipping 2207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3104 mov(eax, dividend); | 3104 mov(eax, dividend); |
3105 shr(eax, 31); | 3105 shr(eax, 31); |
3106 add(edx, eax); | 3106 add(edx, eax); |
3107 } | 3107 } |
3108 | 3108 |
3109 | 3109 |
3110 } // namespace internal | 3110 } // namespace internal |
3111 } // namespace v8 | 3111 } // namespace v8 |
3112 | 3112 |
3113 #endif // V8_TARGET_ARCH_IA32 | 3113 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |