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

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

Issue 131513015: Remove obsolete instruction HOuterContext. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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-arm.cc ('k') | 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 3601 matching lines...) Expand 10 before | Expand all | Expand 10 after
3612 Register result = ToRegister(instr->result()); 3612 Register result = ToRegister(instr->result());
3613 if (info()->IsOptimizing()) { 3613 if (info()->IsOptimizing()) {
3614 __ ldr(result, MemOperand(fp, StandardFrameConstants::kContextOffset)); 3614 __ ldr(result, MemOperand(fp, StandardFrameConstants::kContextOffset));
3615 } else { 3615 } else {
3616 // If there is no frame, the context must be in cp. 3616 // If there is no frame, the context must be in cp.
3617 ASSERT(result.is(cp)); 3617 ASSERT(result.is(cp));
3618 } 3618 }
3619 } 3619 }
3620 3620
3621 3621
3622 void LCodeGen::DoOuterContext(LOuterContext* instr) {
3623 Register context = ToRegister(instr->context());
3624 Register result = ToRegister(instr->result());
3625 __ ldr(result,
3626 MemOperand(context, Context::SlotOffset(Context::PREVIOUS_INDEX)));
3627 }
3628
3629
3630 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { 3622 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) {
3631 ASSERT(ToRegister(instr->context()).is(cp)); 3623 ASSERT(ToRegister(instr->context()).is(cp));
3632 __ push(cp); // The context is the first argument. 3624 __ push(cp); // The context is the first argument.
3633 __ Move(scratch0(), instr->hydrogen()->pairs()); 3625 __ Move(scratch0(), instr->hydrogen()->pairs());
3634 __ push(scratch0()); 3626 __ push(scratch0());
3635 __ mov(scratch0(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); 3627 __ mov(scratch0(), Operand(Smi::FromInt(instr->hydrogen()->flags())));
3636 __ push(scratch0()); 3628 __ push(scratch0());
3637 CallRuntime(Runtime::kDeclareGlobals, 3, instr); 3629 CallRuntime(Runtime::kDeclareGlobals, 3, instr);
3638 } 3630 }
3639 3631
(...skipping 2186 matching lines...) Expand 10 before | Expand all | Expand 10 after
5826 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5818 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5827 __ ldr(result, FieldMemOperand(scratch, 5819 __ ldr(result, FieldMemOperand(scratch,
5828 FixedArray::kHeaderSize - kPointerSize)); 5820 FixedArray::kHeaderSize - kPointerSize));
5829 __ bind(&done); 5821 __ bind(&done);
5830 } 5822 }
5831 5823
5832 5824
5833 #undef __ 5825 #undef __
5834 5826
5835 } } // namespace v8::internal 5827 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698