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 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1036 push(ebp); // Caller's frame pointer. | 1036 push(ebp); // Caller's frame pointer. |
1037 mov(ebp, esp); | 1037 mov(ebp, esp); |
1038 push(esi); // Callee's context. | 1038 push(esi); // Callee's context. |
1039 push(edi); // Callee's JS function. | 1039 push(edi); // Callee's JS function. |
1040 } | 1040 } |
1041 } | 1041 } |
1042 | 1042 |
1043 | 1043 |
1044 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 1044 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
1045 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); | 1045 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
1046 mov(vector, FieldOperand(vector, JSFunction::kSharedFunctionInfoOffset)); | 1046 mov(vector, FieldOperand(vector, JSFunction::kLiteralsOffset)); |
1047 mov(vector, FieldOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); | 1047 mov(vector, FieldOperand(vector, LiteralsArray::kFeedbackVectorOffset)); |
1048 } | 1048 } |
1049 | 1049 |
1050 | 1050 |
1051 void MacroAssembler::EnterFrame(StackFrame::Type type, | 1051 void MacroAssembler::EnterFrame(StackFrame::Type type, |
1052 bool load_constant_pool_pointer_reg) { | 1052 bool load_constant_pool_pointer_reg) { |
1053 // Out-of-line constant pool not implemented on x87. | 1053 // Out-of-line constant pool not implemented on x87. |
1054 UNREACHABLE(); | 1054 UNREACHABLE(); |
1055 } | 1055 } |
1056 | 1056 |
1057 | 1057 |
(...skipping 2244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3302 mov(eax, dividend); | 3302 mov(eax, dividend); |
3303 shr(eax, 31); | 3303 shr(eax, 31); |
3304 add(edx, eax); | 3304 add(edx, eax); |
3305 } | 3305 } |
3306 | 3306 |
3307 | 3307 |
3308 } // namespace internal | 3308 } // namespace internal |
3309 } // namespace v8 | 3309 } // namespace v8 |
3310 | 3310 |
3311 #endif // V8_TARGET_ARCH_X87 | 3311 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |