Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 23530066: Lazily save double registers for HCallRuntime instructions within Hydrogen code stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-codegen-arm.h ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 // optimizing code generator. 741 // optimizing code generator.
742 if (code->kind() == Code::BINARY_OP_IC || 742 if (code->kind() == Code::BINARY_OP_IC ||
743 code->kind() == Code::COMPARE_IC) { 743 code->kind() == Code::COMPARE_IC) {
744 __ nop(); 744 __ nop();
745 } 745 }
746 } 746 }
747 747
748 748
749 void LCodeGen::CallRuntime(const Runtime::Function* function, 749 void LCodeGen::CallRuntime(const Runtime::Function* function,
750 int num_arguments, 750 int num_arguments,
751 LInstruction* instr) { 751 LInstruction* instr,
752 SaveFPRegsMode save_doubles) {
752 ASSERT(instr != NULL); 753 ASSERT(instr != NULL);
753 LPointerMap* pointers = instr->pointer_map(); 754 LPointerMap* pointers = instr->pointer_map();
754 ASSERT(pointers != NULL); 755 ASSERT(pointers != NULL);
755 RecordPosition(pointers->position()); 756 RecordPosition(pointers->position());
756 757
757 __ CallRuntime(function, num_arguments); 758 __ CallRuntime(function, num_arguments, save_doubles);
759
758 RecordSafepointWithLazyDeopt(instr, RECORD_SIMPLE_SAFEPOINT); 760 RecordSafepointWithLazyDeopt(instr, RECORD_SIMPLE_SAFEPOINT);
759 } 761 }
760 762
761 763
762 void LCodeGen::CallRuntimeFromDeferred(Runtime::FunctionId id, 764 void LCodeGen::CallRuntimeFromDeferred(Runtime::FunctionId id,
763 int argc, 765 int argc,
764 LInstruction* instr) { 766 LInstruction* instr) {
765 __ CallRuntimeSaveDoubles(id); 767 __ CallRuntimeSaveDoubles(id);
766 RecordSafepointWithRegisters( 768 RecordSafepointWithRegisters(
767 instr->pointer_map(), argc, Safepoint::kNoLazyDeopt); 769 instr->pointer_map(), argc, Safepoint::kNoLazyDeopt);
(...skipping 5026 matching lines...) Expand 10 before | Expand all | Expand 10 after
5794 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5796 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5795 __ ldr(result, FieldMemOperand(scratch, 5797 __ ldr(result, FieldMemOperand(scratch,
5796 FixedArray::kHeaderSize - kPointerSize)); 5798 FixedArray::kHeaderSize - kPointerSize));
5797 __ bind(&done); 5799 __ bind(&done);
5798 } 5800 }
5799 5801
5800 5802
5801 #undef __ 5803 #undef __
5802 5804
5803 } } // namespace v8::internal 5805 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.h ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698