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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X87 | 7 #if V8_TARGET_ARCH_X87 |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/division-by-constant.h" | 10 #include "src/base/division-by-constant.h" |
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 Nop(kNoCodeAgeSequenceLength - Assembler::kCallInstructionLength); | 853 Nop(kNoCodeAgeSequenceLength - Assembler::kCallInstructionLength); |
854 } else { | 854 } else { |
855 push(ebp); // Caller's frame pointer. | 855 push(ebp); // Caller's frame pointer. |
856 mov(ebp, esp); | 856 mov(ebp, esp); |
857 push(esi); // Callee's context. | 857 push(esi); // Callee's context. |
858 push(edi); // Callee's JS function. | 858 push(edi); // Callee's JS function. |
859 } | 859 } |
860 } | 860 } |
861 | 861 |
862 | 862 |
| 863 void MacroAssembler::EnterFrame(StackFrame::Type type, |
| 864 bool load_constant_pool_pointer_reg) { |
| 865 // Constant pool not implemented on x87. |
| 866 UNREACHABLE(); |
| 867 } |
| 868 |
| 869 |
863 void MacroAssembler::EnterFrame(StackFrame::Type type) { | 870 void MacroAssembler::EnterFrame(StackFrame::Type type) { |
864 push(ebp); | 871 push(ebp); |
865 mov(ebp, esp); | 872 mov(ebp, esp); |
866 push(esi); | 873 push(esi); |
867 push(Immediate(Smi::FromInt(type))); | 874 push(Immediate(Smi::FromInt(type))); |
868 push(Immediate(CodeObject())); | 875 push(Immediate(CodeObject())); |
869 if (emit_debug_code()) { | 876 if (emit_debug_code()) { |
870 cmp(Operand(esp, 0), Immediate(isolate()->factory()->undefined_value())); | 877 cmp(Operand(esp, 0), Immediate(isolate()->factory()->undefined_value())); |
871 Check(not_equal, kCodeObjectNotProperlyPatched); | 878 Check(not_equal, kCodeObjectNotProperlyPatched); |
872 } | 879 } |
(...skipping 2473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3346 if (mag.shift > 0) sar(edx, mag.shift); | 3353 if (mag.shift > 0) sar(edx, mag.shift); |
3347 mov(eax, dividend); | 3354 mov(eax, dividend); |
3348 shr(eax, 31); | 3355 shr(eax, 31); |
3349 add(edx, eax); | 3356 add(edx, eax); |
3350 } | 3357 } |
3351 | 3358 |
3352 | 3359 |
3353 } } // namespace v8::internal | 3360 } } // namespace v8::internal |
3354 | 3361 |
3355 #endif // V8_TARGET_ARCH_X87 | 3362 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |