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

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

Issue 6572003: ARM: Port r6635 and r6659... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 10 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/arm/macro-assembler-arm.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 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 2050 matching lines...) Expand 10 before | Expand all | Expand 10 after
2061 } 2061 }
2062 2062
2063 // Store the value. 2063 // Store the value.
2064 __ str(value, FieldMemOperand(scratch, JSGlobalPropertyCell::kValueOffset)); 2064 __ str(value, FieldMemOperand(scratch, JSGlobalPropertyCell::kValueOffset));
2065 } 2065 }
2066 2066
2067 2067
2068 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 2068 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
2069 Register context = ToRegister(instr->context()); 2069 Register context = ToRegister(instr->context());
2070 Register result = ToRegister(instr->result()); 2070 Register result = ToRegister(instr->result());
2071 __ ldr(result, 2071 __ ldr(result, ContextOperand(context, instr->slot_index()));
2072 MemOperand(context, Context::SlotOffset(Context::FCONTEXT_INDEX)));
2073 __ ldr(result, ContextOperand(result, instr->slot_index()));
2074 } 2072 }
2075 2073
2076 2074
2077 void LCodeGen::DoStoreContextSlot(LStoreContextSlot* instr) { 2075 void LCodeGen::DoStoreContextSlot(LStoreContextSlot* instr) {
2078 Register context = ToRegister(instr->context()); 2076 Register context = ToRegister(instr->context());
2079 Register value = ToRegister(instr->value()); 2077 Register value = ToRegister(instr->value());
2080 __ ldr(context,
2081 MemOperand(context, Context::SlotOffset(Context::FCONTEXT_INDEX)));
2082 __ str(value, ContextOperand(context, instr->slot_index())); 2078 __ str(value, ContextOperand(context, instr->slot_index()));
2083 if (instr->needs_write_barrier()) { 2079 if (instr->needs_write_barrier()) {
2084 int offset = Context::SlotOffset(instr->slot_index()); 2080 int offset = Context::SlotOffset(instr->slot_index());
2085 __ RecordWrite(context, Operand(offset), value, scratch0()); 2081 __ RecordWrite(context, Operand(offset), value, scratch0());
2086 } 2082 }
2087 } 2083 }
2088 2084
2089 2085
2090 void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) { 2086 void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) {
2091 Register object = ToRegister(instr->InputAt(0)); 2087 Register object = ToRegister(instr->InputAt(0));
(...skipping 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after
3745 ASSERT(!environment->HasBeenRegistered()); 3741 ASSERT(!environment->HasBeenRegistered());
3746 RegisterEnvironmentForDeoptimization(environment); 3742 RegisterEnvironmentForDeoptimization(environment);
3747 ASSERT(osr_pc_offset_ == -1); 3743 ASSERT(osr_pc_offset_ == -1);
3748 osr_pc_offset_ = masm()->pc_offset(); 3744 osr_pc_offset_ = masm()->pc_offset();
3749 } 3745 }
3750 3746
3751 3747
3752 #undef __ 3748 #undef __
3753 3749
3754 } } // namespace v8::internal 3750 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698