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

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

Issue 25247002: ARM: 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 | « no previous file | src/hydrogen.cc » ('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 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 __ CallRuntime(function, num_arguments); 759 __ CallRuntime(function, num_arguments);
760 RecordSafepointWithLazyDeopt(instr, RECORD_SIMPLE_SAFEPOINT); 760 RecordSafepointWithLazyDeopt(instr, RECORD_SIMPLE_SAFEPOINT);
761 } 761 }
762 762
763 763
764 void LCodeGen::LoadContextFromDeferred(LOperand* context) { 764 void LCodeGen::LoadContextFromDeferred(LOperand* context) {
765 if (context->IsRegister()) { 765 if (context->IsRegister()) {
766 __ Move(cp, ToRegister(context)); 766 __ Move(cp, ToRegister(context));
767 } else if (context->IsStackSlot()) { 767 } else if (context->IsStackSlot()) {
768 __ ldr(cp, ToMemOperand(context)); 768 __ ldr(cp, ToMemOperand(context));
769 } else if (context->IsConstantOperand()) {
770 HConstant* constant =
771 chunk_->LookupConstant(LConstantOperand::cast(context));
772 __ LoadObject(cp, Handle<Object>::cast(constant->handle(isolate())));
769 } else { 773 } else {
770 UNREACHABLE(); 774 UNREACHABLE();
771 } 775 }
772 } 776 }
773 777
774 778
775 void LCodeGen::CallRuntimeFromDeferred(Runtime::FunctionId id, 779 void LCodeGen::CallRuntimeFromDeferred(Runtime::FunctionId id,
776 int argc, 780 int argc,
777 LInstruction* instr, 781 LInstruction* instr,
778 LOperand* context) { 782 LOperand* context) {
(...skipping 5074 matching lines...) Expand 10 before | Expand all | Expand 10 after
5853 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5857 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5854 __ ldr(result, FieldMemOperand(scratch, 5858 __ ldr(result, FieldMemOperand(scratch,
5855 FixedArray::kHeaderSize - kPointerSize)); 5859 FixedArray::kHeaderSize - kPointerSize));
5856 __ bind(&done); 5860 __ bind(&done);
5857 } 5861 }
5858 5862
5859 5863
5860 #undef __ 5864 #undef __
5861 5865
5862 } } // namespace v8::internal 5866 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698