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

Side by Side Diff: src/mips/macro-assembler-mips.cc

Issue 60793002: MIPS: Avoid using dd() in Prologue when --optimize-for-size. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « src/mips/codegen-mips.cc ('k') | no next file » | 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 4594 matching lines...) Expand 10 before | Expand all | Expand 10 after
4605 // Pre-age the code. 4605 // Pre-age the code.
4606 Code* stub = Code::GetPreAgedCodeAgeStub(isolate()); 4606 Code* stub = Code::GetPreAgedCodeAgeStub(isolate());
4607 nop(Assembler::CODE_AGE_MARKER_NOP); 4607 nop(Assembler::CODE_AGE_MARKER_NOP);
4608 // Save the function's original return address 4608 // Save the function's original return address
4609 // (it will be clobbered by Call(t9)) 4609 // (it will be clobbered by Call(t9))
4610 mov(at, ra); 4610 mov(at, ra);
4611 // Load the stub address to t9 and call it 4611 // Load the stub address to t9 and call it
4612 li(t9, 4612 li(t9,
4613 Operand(reinterpret_cast<uint32_t>(stub->instruction_start()))); 4613 Operand(reinterpret_cast<uint32_t>(stub->instruction_start())));
4614 Call(t9); 4614 Call(t9);
4615 // Record the stub address in the empty space for GetCodeAgeAndParity() 4615 // Record the stub address in the empty space for GetCodeAgeAndParity()
Paul Lind 2013/11/05 20:42:09 Nit: add periods to this comment, and the two comm
4616 dd(reinterpret_cast<uint32_t>(stub->instruction_start())); 4616 emit_code_stub_address(stub);
4617 } else { 4617 } else {
4618 Push(ra, fp, cp, a1); 4618 Push(ra, fp, cp, a1);
4619 nop(Assembler::CODE_AGE_SEQUENCE_NOP); 4619 nop(Assembler::CODE_AGE_SEQUENCE_NOP);
4620 // Adjust fp to point to caller's fp. 4620 // Adjust fp to point to caller's fp.
4621 Addu(fp, sp, Operand(2 * kPointerSize)); 4621 Addu(fp, sp, Operand(2 * kPointerSize));
4622 } 4622 }
4623 } 4623 }
4624 } 4624 }
4625 4625
4626 4626
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after
5714 opcode == BGTZL); 5714 opcode == BGTZL);
5715 opcode = (cond == eq) ? BEQ : BNE; 5715 opcode = (cond == eq) ? BEQ : BNE;
5716 instr = (instr & ~kOpcodeMask) | opcode; 5716 instr = (instr & ~kOpcodeMask) | opcode;
5717 masm_.emit(instr); 5717 masm_.emit(instr);
5718 } 5718 }
5719 5719
5720 5720
5721 } } // namespace v8::internal 5721 } } // namespace v8::internal
5722 5722
5723 #endif // V8_TARGET_ARCH_MIPS 5723 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698