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

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

Issue 7739018: Inline functions with different contexts in the optimizing code generator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase to current tip-of-tree. Created 9 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
OLDNEW
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 2732 matching lines...) Expand 10 before | Expand all | Expand 10 after
2743 __ ldr(result, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 2743 __ ldr(result, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
2744 } 2744 }
2745 2745
2746 2746
2747 void LCodeGen::DoContext(LContext* instr) { 2747 void LCodeGen::DoContext(LContext* instr) {
2748 Register result = ToRegister(instr->result()); 2748 Register result = ToRegister(instr->result());
2749 __ mov(result, cp); 2749 __ mov(result, cp);
2750 } 2750 }
2751 2751
2752 2752
2753 void LCodeGen::DoInlinedContext(LInlinedContext* instr) {
2754 Register result = ToRegister(instr->result());
Kevin Millikin (Chromium) 2011/09/15 11:17:24 This is dead code?
2755 __ Move(result, instr->closure());
2756 __ ldr(result, FieldMemOperand(result, JSFunction::kContextOffset));
2757 }
2758
2759
2753 void LCodeGen::DoOuterContext(LOuterContext* instr) { 2760 void LCodeGen::DoOuterContext(LOuterContext* instr) {
2754 Register context = ToRegister(instr->context()); 2761 Register context = ToRegister(instr->context());
2755 Register result = ToRegister(instr->result()); 2762 Register result = ToRegister(instr->result());
2756 __ ldr(result, 2763 __ ldr(result,
2757 MemOperand(context, Context::SlotOffset(Context::PREVIOUS_INDEX))); 2764 MemOperand(context, Context::SlotOffset(Context::PREVIOUS_INDEX)));
2758 } 2765 }
2759 2766
2760 2767
2761 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { 2768 void LCodeGen::DoGlobalObject(LGlobalObject* instr) {
2762 Register result = ToRegister(instr->result()); 2769 Register result = ToRegister(instr->result());
(...skipping 1747 matching lines...) Expand 10 before | Expand all | Expand 10 after
4510 ASSERT(osr_pc_offset_ == -1); 4517 ASSERT(osr_pc_offset_ == -1);
4511 osr_pc_offset_ = masm()->pc_offset(); 4518 osr_pc_offset_ = masm()->pc_offset();
4512 } 4519 }
4513 4520
4514 4521
4515 4522
4516 4523
4517 #undef __ 4524 #undef __
4518 4525
4519 } } // namespace v8::internal 4526 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698