OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2081 nop(); | 2081 nop(); |
2082 } | 2082 } |
2083 | 2083 |
2084 | 2084 |
2085 void MacroAssembler::CallWithAstId(Handle<Code> code, | 2085 void MacroAssembler::CallWithAstId(Handle<Code> code, |
2086 RelocInfo::Mode rmode, | 2086 RelocInfo::Mode rmode, |
2087 unsigned ast_id, | 2087 unsigned ast_id, |
2088 Condition cond, | 2088 Condition cond, |
2089 Register r1, | 2089 Register r1, |
2090 const Operand& r2) { | 2090 const Operand& r2) { |
2091 ASSERT(rmode == RelocInfo::CODE_TARGET_WITH_ID); | 2091 ASSERT(RelocInfo::IsCodeTarget(rmode)); |
2092 ASSERT(ast_id != kNoASTId); | 2092 if (rmode == RelocInfo::CODE_TARGET && ast_id != kNoASTId) { |
2093 ASSERT(ast_id_for_reloc_info_ == kNoASTId); | 2093 ASSERT(ast_id_for_reloc_info_ == kNoASTId); |
2094 ast_id_for_reloc_info_ = ast_id; | 2094 ast_id_for_reloc_info_ = ast_id; |
| 2095 rmode = RelocInfo::CODE_TARGET_WITH_ID; |
| 2096 } |
2095 Call(reinterpret_cast<intptr_t>(code.location()), rmode, cond, r1, r2); | 2097 Call(reinterpret_cast<intptr_t>(code.location()), rmode, cond, r1, r2); |
2096 } | 2098 } |
2097 | 2099 |
2098 | 2100 |
2099 void MacroAssembler::Drop(int count, | 2101 void MacroAssembler::Drop(int count, |
2100 Condition cond, | 2102 Condition cond, |
2101 Register reg, | 2103 Register reg, |
2102 const Operand& op) { | 2104 const Operand& op) { |
2103 if (count <= 0) { | 2105 if (count <= 0) { |
2104 return; | 2106 return; |
(...skipping 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4230 opcode == BGTZL); | 4232 opcode == BGTZL); |
4231 opcode = (cond == eq) ? BEQ : BNE; | 4233 opcode = (cond == eq) ? BEQ : BNE; |
4232 instr = (instr & ~kOpcodeMask) | opcode; | 4234 instr = (instr & ~kOpcodeMask) | opcode; |
4233 masm_.emit(instr); | 4235 masm_.emit(instr); |
4234 } | 4236 } |
4235 | 4237 |
4236 | 4238 |
4237 } } // namespace v8::internal | 4239 } } // namespace v8::internal |
4238 | 4240 |
4239 #endif // V8_TARGET_ARCH_MIPS | 4241 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |