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

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

Issue 11193022: Remove scratch register requirement from LoadInstanceDescriptors on arm and mips. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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 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 5284 matching lines...) Expand 10 before | Expand all | Expand 10 after
5295 And(bitmap_scratch, bitmap_scratch, Operand(~Page::kPageAlignmentMask)); 5295 And(bitmap_scratch, bitmap_scratch, Operand(~Page::kPageAlignmentMask));
5296 lw(t8, MemOperand(bitmap_scratch, MemoryChunk::kLiveBytesOffset)); 5296 lw(t8, MemOperand(bitmap_scratch, MemoryChunk::kLiveBytesOffset));
5297 Addu(t8, t8, Operand(length)); 5297 Addu(t8, t8, Operand(length));
5298 sw(t8, MemOperand(bitmap_scratch, MemoryChunk::kLiveBytesOffset)); 5298 sw(t8, MemOperand(bitmap_scratch, MemoryChunk::kLiveBytesOffset));
5299 5299
5300 bind(&done); 5300 bind(&done);
5301 } 5301 }
5302 5302
5303 5303
5304 void MacroAssembler::LoadInstanceDescriptors(Register map, 5304 void MacroAssembler::LoadInstanceDescriptors(Register map,
5305 Register descriptors, 5305 Register descriptors) {
5306 Register scratch) {
5307 lw(descriptors, FieldMemOperand(map, Map::kDescriptorsOffset)); 5306 lw(descriptors, FieldMemOperand(map, Map::kDescriptorsOffset));
5308 } 5307 }
5309 5308
5310 5309
5311 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) { 5310 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) {
5312 lw(dst, FieldMemOperand(map, Map::kBitField3Offset)); 5311 lw(dst, FieldMemOperand(map, Map::kBitField3Offset));
5313 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst); 5312 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst);
5314 } 5313 }
5315 5314
5316 5315
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
5459 opcode == BGTZL); 5458 opcode == BGTZL);
5460 opcode = (cond == eq) ? BEQ : BNE; 5459 opcode = (cond == eq) ? BEQ : BNE;
5461 instr = (instr & ~kOpcodeMask) | opcode; 5460 instr = (instr & ~kOpcodeMask) | opcode;
5462 masm_.emit(instr); 5461 masm_.emit(instr);
5463 } 5462 }
5464 5463
5465 5464
5466 } } // namespace v8::internal 5465 } } // namespace v8::internal
5467 5466
5468 #endif // V8_TARGET_ARCH_MIPS 5467 #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