| 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) { | 863 void MacroAssembler::EnterFrame(StackFrame::Type type, |
| 864 bool load_constant_pool_pointer_reg) { |
| 865 DCHECK(!load_constant_pool_pointer_reg); |
| 864 push(ebp); | 866 push(ebp); |
| 865 mov(ebp, esp); | 867 mov(ebp, esp); |
| 866 push(esi); | 868 push(esi); |
| 867 push(Immediate(Smi::FromInt(type))); | 869 push(Immediate(Smi::FromInt(type))); |
| 868 push(Immediate(CodeObject())); | 870 push(Immediate(CodeObject())); |
| 869 if (emit_debug_code()) { | 871 if (emit_debug_code()) { |
| 870 cmp(Operand(esp, 0), Immediate(isolate()->factory()->undefined_value())); | 872 cmp(Operand(esp, 0), Immediate(isolate()->factory()->undefined_value())); |
| 871 Check(not_equal, kCodeObjectNotProperlyPatched); | 873 Check(not_equal, kCodeObjectNotProperlyPatched); |
| 872 } | 874 } |
| 873 } | 875 } |
| (...skipping 2472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3346 if (mag.shift > 0) sar(edx, mag.shift); | 3348 if (mag.shift > 0) sar(edx, mag.shift); |
| 3347 mov(eax, dividend); | 3349 mov(eax, dividend); |
| 3348 shr(eax, 31); | 3350 shr(eax, 31); |
| 3349 add(edx, eax); | 3351 add(edx, eax); |
| 3350 } | 3352 } |
| 3351 | 3353 |
| 3352 | 3354 |
| 3353 } } // namespace v8::internal | 3355 } } // namespace v8::internal |
| 3354 | 3356 |
| 3355 #endif // V8_TARGET_ARCH_X87 | 3357 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |