| 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 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1022 push(ebp); // Caller's frame pointer. | 1022 push(ebp); // Caller's frame pointer. |
| 1023 mov(ebp, esp); | 1023 mov(ebp, esp); |
| 1024 push(esi); // Callee's context. | 1024 push(esi); // Callee's context. |
| 1025 push(edi); // Callee's JS function. | 1025 push(edi); // Callee's JS function. |
| 1026 } | 1026 } |
| 1027 } | 1027 } |
| 1028 | 1028 |
| 1029 | 1029 |
| 1030 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 1030 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
| 1031 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); | 1031 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
| 1032 mov(vector, FieldOperand(vector, JSFunction::kLiteralsOffset)); | 1032 mov(vector, FieldOperand(vector, JSFunction::kFeedbackVectorOffset)); |
| 1033 mov(vector, FieldOperand(vector, LiteralsArray::kFeedbackVectorOffset)); | |
| 1034 } | 1033 } |
| 1035 | 1034 |
| 1036 | 1035 |
| 1037 void MacroAssembler::EnterFrame(StackFrame::Type type, | 1036 void MacroAssembler::EnterFrame(StackFrame::Type type, |
| 1038 bool load_constant_pool_pointer_reg) { | 1037 bool load_constant_pool_pointer_reg) { |
| 1039 // Out-of-line constant pool not implemented on ia32. | 1038 // Out-of-line constant pool not implemented on ia32. |
| 1040 UNREACHABLE(); | 1039 UNREACHABLE(); |
| 1041 } | 1040 } |
| 1042 | 1041 |
| 1043 | 1042 |
| (...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2958 mov(eax, dividend); | 2957 mov(eax, dividend); |
| 2959 shr(eax, 31); | 2958 shr(eax, 31); |
| 2960 add(edx, eax); | 2959 add(edx, eax); |
| 2961 } | 2960 } |
| 2962 | 2961 |
| 2963 | 2962 |
| 2964 } // namespace internal | 2963 } // namespace internal |
| 2965 } // namespace v8 | 2964 } // namespace v8 |
| 2966 | 2965 |
| 2967 #endif // V8_TARGET_ARCH_IA32 | 2966 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |