| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 | 755 |
| 756 // Allocate a new deoptimizer object. | 756 // Allocate a new deoptimizer object. |
| 757 __ PrepareCallCFunction(6, eax); | 757 __ PrepareCallCFunction(6, eax); |
| 758 __ mov(eax, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); | 758 __ mov(eax, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
| 759 __ mov(Operand(esp, 0 * kPointerSize), eax); // Function. | 759 __ mov(Operand(esp, 0 * kPointerSize), eax); // Function. |
| 760 __ mov(Operand(esp, 1 * kPointerSize), Immediate(type())); // Bailout type. | 760 __ mov(Operand(esp, 1 * kPointerSize), Immediate(type())); // Bailout type. |
| 761 __ mov(Operand(esp, 2 * kPointerSize), ebx); // Bailout id. | 761 __ mov(Operand(esp, 2 * kPointerSize), ebx); // Bailout id. |
| 762 __ mov(Operand(esp, 3 * kPointerSize), ecx); // Code address or 0. | 762 __ mov(Operand(esp, 3 * kPointerSize), ecx); // Code address or 0. |
| 763 __ mov(Operand(esp, 4 * kPointerSize), edx); // Fp-to-sp delta. | 763 __ mov(Operand(esp, 4 * kPointerSize), edx); // Fp-to-sp delta. |
| 764 __ mov(Operand(esp, 5 * kPointerSize), | 764 __ mov(Operand(esp, 5 * kPointerSize), |
| 765 Immediate(ExternalReference::isolate_address())); | 765 Immediate(ExternalReference::isolate_address(isolate))); |
| 766 { | 766 { |
| 767 AllowExternalCallThatCantCauseGC scope(masm()); | 767 AllowExternalCallThatCantCauseGC scope(masm()); |
| 768 __ CallCFunction(ExternalReference::new_deoptimizer_function(isolate), 6); | 768 __ CallCFunction(ExternalReference::new_deoptimizer_function(isolate), 6); |
| 769 } | 769 } |
| 770 | 770 |
| 771 // Preserve deoptimizer object in register eax and get the input | 771 // Preserve deoptimizer object in register eax and get the input |
| 772 // frame descriptor pointer. | 772 // frame descriptor pointer. |
| 773 __ mov(ebx, Operand(eax, Deoptimizer::input_offset())); | 773 __ mov(ebx, Operand(eax, Deoptimizer::input_offset())); |
| 774 | 774 |
| 775 // Fill in the input registers. | 775 // Fill in the input registers. |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 923 } | 923 } |
| 924 __ bind(&done); | 924 __ bind(&done); |
| 925 } | 925 } |
| 926 | 926 |
| 927 #undef __ | 927 #undef __ |
| 928 | 928 |
| 929 | 929 |
| 930 } } // namespace v8::internal | 930 } } // namespace v8::internal |
| 931 | 931 |
| 932 #endif // V8_TARGET_ARCH_IA32 | 932 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |