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

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

Issue 142893003: Merge bleeding_edge 18658:18677 (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
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/arm/stub-cache-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 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 2983 matching lines...) Expand 10 before | Expand all | Expand 10 after
2994 __ CompareRoot(payload, Heap::kTheHoleValueRootIndex); 2994 __ CompareRoot(payload, Heap::kTheHoleValueRootIndex);
2995 DeoptimizeIf(eq, instr->environment()); 2995 DeoptimizeIf(eq, instr->environment());
2996 } 2996 }
2997 2997
2998 // Store the value. 2998 // Store the value.
2999 __ str(value, FieldMemOperand(cell, Cell::kValueOffset)); 2999 __ str(value, FieldMemOperand(cell, Cell::kValueOffset));
3000 // Cells are always rescanned, so no write barrier here. 3000 // Cells are always rescanned, so no write barrier here.
3001 } 3001 }
3002 3002
3003 3003
3004 void LCodeGen::DoStoreGlobalGeneric(LStoreGlobalGeneric* instr) {
3005 ASSERT(ToRegister(instr->context()).is(cp));
3006 ASSERT(ToRegister(instr->global_object()).is(r1));
3007 ASSERT(ToRegister(instr->value()).is(r0));
3008
3009 __ mov(r2, Operand(instr->name()));
3010 Handle<Code> ic = StoreIC::initialize_stub(isolate(),
3011 instr->strict_mode_flag(),
3012 CONTEXTUAL);
3013 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3014 }
3015
3016
3017 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 3004 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
3018 Register context = ToRegister(instr->context()); 3005 Register context = ToRegister(instr->context());
3019 Register result = ToRegister(instr->result()); 3006 Register result = ToRegister(instr->result());
3020 __ ldr(result, ContextOperand(context, instr->slot_index())); 3007 __ ldr(result, ContextOperand(context, instr->slot_index()));
3021 if (instr->hydrogen()->RequiresHoleCheck()) { 3008 if (instr->hydrogen()->RequiresHoleCheck()) {
3022 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); 3009 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex);
3023 __ cmp(result, ip); 3010 __ cmp(result, ip);
3024 if (instr->hydrogen()->DeoptimizesOnHole()) { 3011 if (instr->hydrogen()->DeoptimizesOnHole()) {
3025 DeoptimizeIf(eq, instr->environment()); 3012 DeoptimizeIf(eq, instr->environment());
3026 } else { 3013 } else {
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after
4222 4209
4223 4210
4224 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { 4211 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) {
4225 ASSERT(ToRegister(instr->context()).is(cp)); 4212 ASSERT(ToRegister(instr->context()).is(cp));
4226 ASSERT(ToRegister(instr->object()).is(r1)); 4213 ASSERT(ToRegister(instr->object()).is(r1));
4227 ASSERT(ToRegister(instr->value()).is(r0)); 4214 ASSERT(ToRegister(instr->value()).is(r0));
4228 4215
4229 // Name is always in r2. 4216 // Name is always in r2.
4230 __ mov(r2, Operand(instr->name())); 4217 __ mov(r2, Operand(instr->name()));
4231 Handle<Code> ic = StoreIC::initialize_stub(isolate(), 4218 Handle<Code> ic = StoreIC::initialize_stub(isolate(),
4232 instr->strict_mode_flag(), 4219 instr->strict_mode_flag());
4233 NOT_CONTEXTUAL);
4234 CallCode(ic, RelocInfo::CODE_TARGET, instr, NEVER_INLINE_TARGET_ADDRESS); 4220 CallCode(ic, RelocInfo::CODE_TARGET, instr, NEVER_INLINE_TARGET_ADDRESS);
4235 } 4221 }
4236 4222
4237 4223
4238 void LCodeGen::ApplyCheckIf(Condition condition, LBoundsCheck* check) { 4224 void LCodeGen::ApplyCheckIf(Condition condition, LBoundsCheck* check) {
4239 if (FLAG_debug_code && check->hydrogen()->skip_check()) { 4225 if (FLAG_debug_code && check->hydrogen()->skip_check()) {
4240 Label done; 4226 Label done;
4241 __ b(NegateCondition(condition), &done); 4227 __ b(NegateCondition(condition), &done);
4242 __ stop("eliminated bounds check failed"); 4228 __ stop("eliminated bounds check failed");
4243 __ bind(&done); 4229 __ bind(&done);
(...skipping 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after
5845 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5831 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5846 __ ldr(result, FieldMemOperand(scratch, 5832 __ ldr(result, FieldMemOperand(scratch,
5847 FixedArray::kHeaderSize - kPointerSize)); 5833 FixedArray::kHeaderSize - kPointerSize));
5848 __ bind(&done); 5834 __ bind(&done);
5849 } 5835 }
5850 5836
5851 5837
5852 #undef __ 5838 #undef __
5853 5839
5854 } } // namespace v8::internal 5840 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698