| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 __ Subu(t0, fp, t0); | 646 __ Subu(t0, fp, t0); |
| 647 | 647 |
| 648 // Allocate a new deoptimizer object. | 648 // Allocate a new deoptimizer object. |
| 649 // Pass four arguments in a0 to a3 and fifth & sixth arguments on stack. | 649 // Pass four arguments in a0 to a3 and fifth & sixth arguments on stack. |
| 650 __ PrepareCallCFunction(6, t1); | 650 __ PrepareCallCFunction(6, t1); |
| 651 __ lw(a0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 651 __ lw(a0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
| 652 __ li(a1, Operand(type())); // bailout type, | 652 __ li(a1, Operand(type())); // bailout type, |
| 653 // a2: bailout id already loaded. | 653 // a2: bailout id already loaded. |
| 654 // a3: code address or 0 already loaded. | 654 // a3: code address or 0 already loaded. |
| 655 __ sw(t0, CFunctionArgumentOperand(5)); // Fp-to-sp delta. | 655 __ sw(t0, CFunctionArgumentOperand(5)); // Fp-to-sp delta. |
| 656 __ li(t1, Operand(ExternalReference::isolate_address())); | 656 __ li(t1, Operand(ExternalReference::isolate_address(isolate))); |
| 657 __ sw(t1, CFunctionArgumentOperand(6)); // Isolate. | 657 __ sw(t1, CFunctionArgumentOperand(6)); // Isolate. |
| 658 // Call Deoptimizer::New(). | 658 // Call Deoptimizer::New(). |
| 659 { | 659 { |
| 660 AllowExternalCallThatCantCauseGC scope(masm()); | 660 AllowExternalCallThatCantCauseGC scope(masm()); |
| 661 __ CallCFunction(ExternalReference::new_deoptimizer_function(isolate), 6); | 661 __ CallCFunction(ExternalReference::new_deoptimizer_function(isolate), 6); |
| 662 } | 662 } |
| 663 | 663 |
| 664 // Preserve "deoptimizer" object in register v0 and get the input | 664 // Preserve "deoptimizer" object in register v0 and get the input |
| 665 // frame descriptor pointer to a1 (deoptimizer->input_); | 665 // frame descriptor pointer to a1 (deoptimizer->input_); |
| 666 // Move deopt-obj to a0 for call to Deoptimizer::ComputeOutputFrames() below. | 666 // Move deopt-obj to a0 for call to Deoptimizer::ComputeOutputFrames() below. |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 } | 835 } |
| 836 | 836 |
| 837 ASSERT_EQ(masm()->SizeOfCodeGeneratedSince(&table_start), | 837 ASSERT_EQ(masm()->SizeOfCodeGeneratedSince(&table_start), |
| 838 count() * table_entry_size_); | 838 count() * table_entry_size_); |
| 839 } | 839 } |
| 840 | 840 |
| 841 #undef __ | 841 #undef __ |
| 842 | 842 |
| 843 | 843 |
| 844 } } // namespace v8::internal | 844 } } // namespace v8::internal |
| OLD | NEW |