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

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

Issue 107003008: MIPS: Avoid unnecessary branches in array constructor stubs. (Closed) Base URL: https://github.com/v8/v8.git@gbl
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
« no previous file with comments | « src/mips/macro-assembler-mips.h ('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 3887 matching lines...) Expand 10 before | Expand all | Expand 10 after
3898 Condition cond, 3898 Condition cond,
3899 Register r1, 3899 Register r1,
3900 const Operand& r2, 3900 const Operand& r2,
3901 BranchDelaySlot bd) { 3901 BranchDelaySlot bd) {
3902 ASSERT(AllowThisStubCall(stub)); // Stub calls are not allowed in some stubs. 3902 ASSERT(AllowThisStubCall(stub)); // Stub calls are not allowed in some stubs.
3903 Call(stub->GetCode(isolate()), RelocInfo::CODE_TARGET, ast_id, 3903 Call(stub->GetCode(isolate()), RelocInfo::CODE_TARGET, ast_id,
3904 cond, r1, r2, bd); 3904 cond, r1, r2, bd);
3905 } 3905 }
3906 3906
3907 3907
3908 void MacroAssembler::TailCallStub(CodeStub* stub) { 3908 void MacroAssembler::TailCallStub(CodeStub* stub,
3909 Jump(stub->GetCode(isolate()), RelocInfo::CODE_TARGET); 3909 Condition cond,
3910 Register r1,
3911 const Operand& r2,
3912 BranchDelaySlot bd) {
3913 Jump(stub->GetCode(isolate()), RelocInfo::CODE_TARGET, cond, r1, r2, bd);
3910 } 3914 }
3911 3915
3912 3916
3913 static int AddressOffset(ExternalReference ref0, ExternalReference ref1) { 3917 static int AddressOffset(ExternalReference ref0, ExternalReference ref1) {
3914 return ref0.address() - ref1.address(); 3918 return ref0.address() - ref1.address();
3915 } 3919 }
3916 3920
3917 3921
3918 void MacroAssembler::CallApiFunctionAndReturn( 3922 void MacroAssembler::CallApiFunctionAndReturn(
3919 ExternalReference function, 3923 ExternalReference function,
(...skipping 1865 matching lines...) Expand 10 before | Expand all | Expand 10 after
5785 opcode == BGTZL); 5789 opcode == BGTZL);
5786 opcode = (cond == eq) ? BEQ : BNE; 5790 opcode = (cond == eq) ? BEQ : BNE;
5787 instr = (instr & ~kOpcodeMask) | opcode; 5791 instr = (instr & ~kOpcodeMask) | opcode;
5788 masm_.emit(instr); 5792 masm_.emit(instr);
5789 } 5793 }
5790 5794
5791 5795
5792 } } // namespace v8::internal 5796 } } // namespace v8::internal
5793 5797
5794 #endif // V8_TARGET_ARCH_MIPS 5798 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698