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

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

Issue 25622003: MIPS: Allow function inlining with context change. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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/hydrogen.cc ('k') | no next file » | 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 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 725
726 RecordSafepointWithLazyDeopt(instr, RECORD_SIMPLE_SAFEPOINT); 726 RecordSafepointWithLazyDeopt(instr, RECORD_SIMPLE_SAFEPOINT);
727 } 727 }
728 728
729 729
730 void LCodeGen::LoadContextFromDeferred(LOperand* context) { 730 void LCodeGen::LoadContextFromDeferred(LOperand* context) {
731 if (context->IsRegister()) { 731 if (context->IsRegister()) {
732 __ Move(cp, ToRegister(context)); 732 __ Move(cp, ToRegister(context));
733 } else if (context->IsStackSlot()) { 733 } else if (context->IsStackSlot()) {
734 __ lw(cp, ToMemOperand(context)); 734 __ lw(cp, ToMemOperand(context));
735 } else if (context->IsConstantOperand()) {
736 HConstant* constant =
737 chunk_->LookupConstant(LConstantOperand::cast(context));
738 __ LoadObject(cp, Handle<Object>::cast(constant->handle(isolate())));
735 } else { 739 } else {
736 UNREACHABLE(); 740 UNREACHABLE();
737 } 741 }
738 } 742 }
739 743
740 744
741 void LCodeGen::CallRuntimeFromDeferred(Runtime::FunctionId id, 745 void LCodeGen::CallRuntimeFromDeferred(Runtime::FunctionId id,
742 int argc, 746 int argc,
743 LInstruction* instr, 747 LInstruction* instr,
744 LOperand* context) { 748 LOperand* context) {
(...skipping 5099 matching lines...) Expand 10 before | Expand all | Expand 10 after
5844 __ Subu(scratch, result, scratch); 5848 __ Subu(scratch, result, scratch);
5845 __ lw(result, FieldMemOperand(scratch, 5849 __ lw(result, FieldMemOperand(scratch,
5846 FixedArray::kHeaderSize - kPointerSize)); 5850 FixedArray::kHeaderSize - kPointerSize));
5847 __ bind(&done); 5851 __ bind(&done);
5848 } 5852 }
5849 5853
5850 5854
5851 #undef __ 5855 #undef __
5852 5856
5853 } } // namespace v8::internal 5857 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698