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

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

Issue 7400019: Encapsulated the AST ID recording a bit, this time for MIPS. (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/assembler-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 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 2062 matching lines...) Expand 10 before | Expand all | Expand 10 after
2073 unsigned ast_id, 2073 unsigned ast_id,
2074 Condition cond, 2074 Condition cond,
2075 Register rs, 2075 Register rs,
2076 const Operand& rt, 2076 const Operand& rt,
2077 BranchDelaySlot bd) { 2077 BranchDelaySlot bd) {
2078 BlockTrampolinePoolScope block_trampoline_pool(this); 2078 BlockTrampolinePoolScope block_trampoline_pool(this);
2079 Label start; 2079 Label start;
2080 bind(&start); 2080 bind(&start);
2081 ASSERT(RelocInfo::IsCodeTarget(rmode)); 2081 ASSERT(RelocInfo::IsCodeTarget(rmode));
2082 if (rmode == RelocInfo::CODE_TARGET && ast_id != kNoASTId) { 2082 if (rmode == RelocInfo::CODE_TARGET && ast_id != kNoASTId) {
2083 ASSERT(ast_id_for_reloc_info_ == kNoASTId); 2083 SetRecordedAstId(ast_id);
2084 ast_id_for_reloc_info_ = ast_id;
2085 rmode = RelocInfo::CODE_TARGET_WITH_ID; 2084 rmode = RelocInfo::CODE_TARGET_WITH_ID;
2086 } 2085 }
2087 Call(reinterpret_cast<Address>(code.location()), rmode, cond, rs, rt, bd); 2086 Call(reinterpret_cast<Address>(code.location()), rmode, cond, rs, rt, bd);
2088 ASSERT_EQ(CallSize(code, rmode, ast_id, cond, rs, rt), 2087 ASSERT_EQ(CallSize(code, rmode, ast_id, cond, rs, rt),
2089 SizeOfCodeGeneratedSince(&start)); 2088 SizeOfCodeGeneratedSince(&start));
2090 } 2089 }
2091 2090
2092 2091
2093 void MacroAssembler::Ret(Condition cond, 2092 void MacroAssembler::Ret(Condition cond,
2094 Register rs, 2093 Register rs,
(...skipping 2195 matching lines...) Expand 10 before | Expand all | Expand 10 after
4290 opcode == BGTZL); 4289 opcode == BGTZL);
4291 opcode = (cond == eq) ? BEQ : BNE; 4290 opcode = (cond == eq) ? BEQ : BNE;
4292 instr = (instr & ~kOpcodeMask) | opcode; 4291 instr = (instr & ~kOpcodeMask) | opcode;
4293 masm_.emit(instr); 4292 masm_.emit(instr);
4294 } 4293 }
4295 4294
4296 4295
4297 } } // namespace v8::internal 4296 } } // namespace v8::internal
4298 4297
4299 #endif // V8_TARGET_ARCH_MIPS 4298 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698