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

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

Issue 27421002: MIPS: Make TestJSArrayForAllocationMemento less awkward. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/mips/codegen-mips.cc ('k') | src/mips/macro-assembler-mips.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 4448 matching lines...) Expand 10 before | Expand all | Expand 10 after
4459 RecordSafepointWithRegistersAndDoubles( 4459 RecordSafepointWithRegistersAndDoubles(
4460 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); 4460 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt);
4461 } 4461 }
4462 __ bind(&not_applicable); 4462 __ bind(&not_applicable);
4463 } 4463 }
4464 4464
4465 4465
4466 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { 4466 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) {
4467 Register object = ToRegister(instr->object()); 4467 Register object = ToRegister(instr->object());
4468 Register temp = ToRegister(instr->temp()); 4468 Register temp = ToRegister(instr->temp());
4469 Label fail; 4469 Label no_memento_found;
4470 __ TestJSArrayForAllocationMemento(object, temp, ne, &fail); 4470 __ TestJSArrayForAllocationMemento(object, temp, &no_memento_found,
4471 ne, &no_memento_found);
4471 DeoptimizeIf(al, instr->environment()); 4472 DeoptimizeIf(al, instr->environment());
4472 __ bind(&fail); 4473 __ bind(&no_memento_found);
4473 } 4474 }
4474 4475
4475 4476
4476 void LCodeGen::DoStringAdd(LStringAdd* instr) { 4477 void LCodeGen::DoStringAdd(LStringAdd* instr) {
4477 ASSERT(ToRegister(instr->context()).is(cp)); 4478 ASSERT(ToRegister(instr->context()).is(cp));
4478 __ push(ToRegister(instr->left())); 4479 __ push(ToRegister(instr->left()));
4479 __ push(ToRegister(instr->right())); 4480 __ push(ToRegister(instr->right()));
4480 StringAddStub stub(instr->hydrogen()->flags()); 4481 StringAddStub stub(instr->hydrogen()->flags());
4481 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 4482 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
4482 } 4483 }
(...skipping 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after
5825 __ Subu(scratch, result, scratch); 5826 __ Subu(scratch, result, scratch);
5826 __ lw(result, FieldMemOperand(scratch, 5827 __ lw(result, FieldMemOperand(scratch,
5827 FixedArray::kHeaderSize - kPointerSize)); 5828 FixedArray::kHeaderSize - kPointerSize));
5828 __ bind(&done); 5829 __ bind(&done);
5829 } 5830 }
5830 5831
5831 5832
5832 #undef __ 5833 #undef __
5833 5834
5834 } } // namespace v8::internal 5835 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/codegen-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698