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

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

Issue 11783048: MIPS: Adapt Danno's Track Allocation Info idea to fast literals. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 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 5431 matching lines...) Expand 10 before | Expand all | Expand 10 after
5442 Branch(&done); 5442 Branch(&done);
5443 5443
5444 // In 0-255 range, round and truncate. 5444 // In 0-255 range, round and truncate.
5445 bind(&in_bounds); 5445 bind(&in_bounds);
5446 cvt_w_d(temp_double_reg, input_reg); 5446 cvt_w_d(temp_double_reg, input_reg);
5447 mfc1(result_reg, temp_double_reg); 5447 mfc1(result_reg, temp_double_reg);
5448 bind(&done); 5448 bind(&done);
5449 } 5449 }
5450 5450
5451 5451
5452 void MacroAssembler::TestJSArrayForAllocationSiteInfo(
5453 Register receiver_reg,
5454 Register scratch_reg,
5455 Label* allocation_info_present) {
5456 Label no_info_available;
5457 ExternalReference new_space_start =
5458 ExternalReference::new_space_start(isolate());
5459 ExternalReference new_space_allocation_top =
5460 ExternalReference::new_space_allocation_top_address(isolate());
5461 lw(scratch_reg, FieldMemOperand(receiver_reg,
5462 JSArray::kSize + AllocationSiteInfo::kSize));
5463 Branch(&no_info_available, lt, scratch_reg, Operand(new_space_start));
5464 Branch(&no_info_available, hs, scratch_reg,
5465 Operand(new_space_allocation_top));
5466 lw(scratch_reg, MemOperand(scratch_reg));
5467 Branch(allocation_info_present, eq, scratch_reg,
5468 Operand(Handle<Map>(isolate()->heap()->allocation_site_info_map())));
5469 bind(&no_info_available);
5470 }
5471
5472
5452 bool AreAliased(Register r1, Register r2, Register r3, Register r4) { 5473 bool AreAliased(Register r1, Register r2, Register r3, Register r4) {
5453 if (r1.is(r2)) return true; 5474 if (r1.is(r2)) return true;
5454 if (r1.is(r3)) return true; 5475 if (r1.is(r3)) return true;
5455 if (r1.is(r4)) return true; 5476 if (r1.is(r4)) return true;
5456 if (r2.is(r3)) return true; 5477 if (r2.is(r3)) return true;
5457 if (r2.is(r4)) return true; 5478 if (r2.is(r4)) return true;
5458 if (r3.is(r4)) return true; 5479 if (r3.is(r4)) return true;
5459 return false; 5480 return false;
5460 } 5481 }
5461 5482
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
5510 opcode == BGTZL); 5531 opcode == BGTZL);
5511 opcode = (cond == eq) ? BEQ : BNE; 5532 opcode = (cond == eq) ? BEQ : BNE;
5512 instr = (instr & ~kOpcodeMask) | opcode; 5533 instr = (instr & ~kOpcodeMask) | opcode;
5513 masm_.emit(instr); 5534 masm_.emit(instr);
5514 } 5535 }
5515 5536
5516 5537
5517 } } // namespace v8::internal 5538 } } // namespace v8::internal
5518 5539
5519 #endif // V8_TARGET_ARCH_MIPS 5540 #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