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

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

Issue 7273097: Unbreak compilation on MIPS after EmitCallIC removal. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 5 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/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 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
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
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
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