| 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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 ASSERT(instr != NULL); | 705 ASSERT(instr != NULL); |
| 706 LPointerMap* pointers = instr->pointer_map(); | 706 LPointerMap* pointers = instr->pointer_map(); |
| 707 RecordPosition(pointers->position()); | 707 RecordPosition(pointers->position()); |
| 708 __ Call(code, mode); | 708 __ Call(code, mode); |
| 709 RecordSafepointWithLazyDeopt(instr, safepoint_mode); | 709 RecordSafepointWithLazyDeopt(instr, safepoint_mode); |
| 710 } | 710 } |
| 711 | 711 |
| 712 | 712 |
| 713 void LCodeGen::CallRuntime(const Runtime::Function* function, | 713 void LCodeGen::CallRuntime(const Runtime::Function* function, |
| 714 int num_arguments, | 714 int num_arguments, |
| 715 LInstruction* instr) { | 715 LInstruction* instr, |
| 716 SaveFPRegsMode save_doubles) { |
| 716 ASSERT(instr != NULL); | 717 ASSERT(instr != NULL); |
| 717 LPointerMap* pointers = instr->pointer_map(); | 718 LPointerMap* pointers = instr->pointer_map(); |
| 718 ASSERT(pointers != NULL); | 719 ASSERT(pointers != NULL); |
| 719 RecordPosition(pointers->position()); | 720 RecordPosition(pointers->position()); |
| 720 | 721 |
| 721 __ CallRuntime(function, num_arguments); | 722 __ CallRuntime(function, num_arguments, save_doubles); |
| 723 |
| 722 RecordSafepointWithLazyDeopt(instr, RECORD_SIMPLE_SAFEPOINT); | 724 RecordSafepointWithLazyDeopt(instr, RECORD_SIMPLE_SAFEPOINT); |
| 723 } | 725 } |
| 724 | 726 |
| 725 | 727 |
| 726 void LCodeGen::CallRuntimeFromDeferred(Runtime::FunctionId id, | 728 void LCodeGen::CallRuntimeFromDeferred(Runtime::FunctionId id, |
| 727 int argc, | 729 int argc, |
| 728 LInstruction* instr) { | 730 LInstruction* instr) { |
| 729 __ CallRuntimeSaveDoubles(id); | 731 __ CallRuntimeSaveDoubles(id); |
| 730 RecordSafepointWithRegisters( | 732 RecordSafepointWithRegisters( |
| 731 instr->pointer_map(), argc, Safepoint::kNoLazyDeopt); | 733 instr->pointer_map(), argc, Safepoint::kNoLazyDeopt); |
| (...skipping 5036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5768 __ Subu(scratch, result, scratch); | 5770 __ Subu(scratch, result, scratch); |
| 5769 __ lw(result, FieldMemOperand(scratch, | 5771 __ lw(result, FieldMemOperand(scratch, |
| 5770 FixedArray::kHeaderSize - kPointerSize)); | 5772 FixedArray::kHeaderSize - kPointerSize)); |
| 5771 __ bind(&done); | 5773 __ bind(&done); |
| 5772 } | 5774 } |
| 5773 | 5775 |
| 5774 | 5776 |
| 5775 #undef __ | 5777 #undef __ |
| 5776 | 5778 |
| 5777 } } // namespace v8::internal | 5779 } } // namespace v8::internal |
| OLD | NEW |