| 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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 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 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 Nop(kNoCodeAgeSequenceLength - Assembler::kCallInstructionLength); | 891 Nop(kNoCodeAgeSequenceLength - Assembler::kCallInstructionLength); |
| 892 } else { | 892 } else { |
| 893 push(ebp); // Caller's frame pointer. | 893 push(ebp); // Caller's frame pointer. |
| 894 mov(ebp, esp); | 894 mov(ebp, esp); |
| 895 push(esi); // Callee's context. | 895 push(esi); // Callee's context. |
| 896 push(edi); // Callee's JS function. | 896 push(edi); // Callee's JS function. |
| 897 } | 897 } |
| 898 } | 898 } |
| 899 | 899 |
| 900 | 900 |
| 901 void MacroAssembler::EnterFrame(StackFrame::Type type) { | 901 void MacroAssembler::EnterFrame(StackFrame::Type type, |
| 902 bool load_constant_pool_pointer_reg) { |
| 903 DCHECK(!load_constant_pool_pointer_reg); |
| 902 push(ebp); | 904 push(ebp); |
| 903 mov(ebp, esp); | 905 mov(ebp, esp); |
| 904 push(esi); | 906 push(esi); |
| 905 push(Immediate(Smi::FromInt(type))); | 907 push(Immediate(Smi::FromInt(type))); |
| 906 push(Immediate(CodeObject())); | 908 push(Immediate(CodeObject())); |
| 907 if (emit_debug_code()) { | 909 if (emit_debug_code()) { |
| 908 cmp(Operand(esp, 0), Immediate(isolate()->factory()->undefined_value())); | 910 cmp(Operand(esp, 0), Immediate(isolate()->factory()->undefined_value())); |
| 909 Check(not_equal, kCodeObjectNotProperlyPatched); | 911 Check(not_equal, kCodeObjectNotProperlyPatched); |
| 910 } | 912 } |
| 911 } | 913 } |
| (...skipping 2481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3393 if (mag.shift > 0) sar(edx, mag.shift); | 3395 if (mag.shift > 0) sar(edx, mag.shift); |
| 3394 mov(eax, dividend); | 3396 mov(eax, dividend); |
| 3395 shr(eax, 31); | 3397 shr(eax, 31); |
| 3396 add(edx, eax); | 3398 add(edx, eax); |
| 3397 } | 3399 } |
| 3398 | 3400 |
| 3399 | 3401 |
| 3400 } } // namespace v8::internal | 3402 } } // namespace v8::internal |
| 3401 | 3403 |
| 3402 #endif // V8_TARGET_ARCH_IA32 | 3404 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |