OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |