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

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

Issue 7044081: Use the previous context link when checking context extension objects. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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 2829 matching lines...) Expand 10 before | Expand all | Expand 10 after
2840 void LCodeGen::DoContext(LContext* instr) { 2840 void LCodeGen::DoContext(LContext* instr) {
2841 Register result = ToRegister(instr->result()); 2841 Register result = ToRegister(instr->result());
2842 __ mov(result, cp); 2842 __ mov(result, cp);
2843 } 2843 }
2844 2844
2845 2845
2846 void LCodeGen::DoOuterContext(LOuterContext* instr) { 2846 void LCodeGen::DoOuterContext(LOuterContext* instr) {
2847 Register context = ToRegister(instr->context()); 2847 Register context = ToRegister(instr->context());
2848 Register result = ToRegister(instr->result()); 2848 Register result = ToRegister(instr->result());
2849 __ ldr(result, 2849 __ ldr(result,
2850 MemOperand(context, Context::SlotOffset(Context::CLOSURE_INDEX))); 2850 MemOperand(context, Context::SlotOffset(Context::PREVIOUS_INDEX)));
2851 __ ldr(result, FieldMemOperand(result, JSFunction::kContextOffset));
2852 } 2851 }
2853 2852
2854 2853
2855 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { 2854 void LCodeGen::DoGlobalObject(LGlobalObject* instr) {
2856 Register context = ToRegister(instr->context()); 2855 Register context = ToRegister(instr->context());
2857 Register result = ToRegister(instr->result()); 2856 Register result = ToRegister(instr->result());
2858 __ ldr(result, ContextOperand(cp, Context::GLOBAL_INDEX)); 2857 __ ldr(result, ContextOperand(cp, Context::GLOBAL_INDEX));
2859 } 2858 }
2860 2859
2861 2860
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after
4587 ASSERT(osr_pc_offset_ == -1); 4586 ASSERT(osr_pc_offset_ == -1);
4588 osr_pc_offset_ = masm()->pc_offset(); 4587 osr_pc_offset_ = masm()->pc_offset();
4589 } 4588 }
4590 4589
4591 4590
4592 4591
4593 4592
4594 #undef __ 4593 #undef __
4595 4594
4596 } } // namespace v8::internal 4595 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698