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

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

Issue 26841009: Make TestJSArrayForAllocationMemento less awkward. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments addressed. Created 7 years, 2 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/codegen-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('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 4518 matching lines...) Expand 10 before | Expand all | Expand 10 after
4529 RecordSafepointWithRegistersAndDoubles( 4529 RecordSafepointWithRegistersAndDoubles(
4530 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); 4530 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt);
4531 } 4531 }
4532 __ bind(&not_applicable); 4532 __ bind(&not_applicable);
4533 } 4533 }
4534 4534
4535 4535
4536 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { 4536 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) {
4537 Register object = ToRegister(instr->object()); 4537 Register object = ToRegister(instr->object());
4538 Register temp = ToRegister(instr->temp()); 4538 Register temp = ToRegister(instr->temp());
4539 __ TestJSArrayForAllocationMemento(object, temp); 4539 Label no_memento_found;
4540 __ TestJSArrayForAllocationMemento(object, temp, &no_memento_found);
4540 DeoptimizeIf(eq, instr->environment()); 4541 DeoptimizeIf(eq, instr->environment());
4542 __ bind(&no_memento_found);
4541 } 4543 }
4542 4544
4543 4545
4544 void LCodeGen::DoStringAdd(LStringAdd* instr) { 4546 void LCodeGen::DoStringAdd(LStringAdd* instr) {
4545 ASSERT(ToRegister(instr->context()).is(cp)); 4547 ASSERT(ToRegister(instr->context()).is(cp));
4546 __ push(ToRegister(instr->left())); 4548 __ push(ToRegister(instr->left()));
4547 __ push(ToRegister(instr->right())); 4549 __ push(ToRegister(instr->right()));
4548 StringAddStub stub(instr->hydrogen()->flags()); 4550 StringAddStub stub(instr->hydrogen()->flags());
4549 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 4551 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
4550 } 4552 }
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after
5841 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5843 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5842 __ ldr(result, FieldMemOperand(scratch, 5844 __ ldr(result, FieldMemOperand(scratch,
5843 FixedArray::kHeaderSize - kPointerSize)); 5845 FixedArray::kHeaderSize - kPointerSize));
5844 __ bind(&done); 5846 __ bind(&done);
5845 } 5847 }
5846 5848
5847 5849
5848 #undef __ 5850 #undef __
5849 5851
5850 } } // namespace v8::internal 5852 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698