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

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

Issue 7535004: Merge bleeding edge up to 8774 into the GC branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 4 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/full-codegen-mips.cc ('k') | src/mips/stub-cache-mips.cc » ('j') | 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 1599 matching lines...) Expand 10 before | Expand all | Expand 10 after
3694 3693
3695 3694
3696 void MacroAssembler::AssertFastElements(Register elements) { 3695 void MacroAssembler::AssertFastElements(Register elements) {
3697 if (emit_debug_code()) { 3696 if (emit_debug_code()) {
3698 ASSERT(!elements.is(at)); 3697 ASSERT(!elements.is(at));
3699 Label ok; 3698 Label ok;
3700 push(elements); 3699 push(elements);
3701 lw(elements, FieldMemOperand(elements, HeapObject::kMapOffset)); 3700 lw(elements, FieldMemOperand(elements, HeapObject::kMapOffset));
3702 LoadRoot(at, Heap::kFixedArrayMapRootIndex); 3701 LoadRoot(at, Heap::kFixedArrayMapRootIndex);
3703 Branch(&ok, eq, elements, Operand(at)); 3702 Branch(&ok, eq, elements, Operand(at));
3703 LoadRoot(at, Heap::kFixedDoubleArrayMapRootIndex);
3704 Branch(&ok, eq, elements, Operand(at));
3704 LoadRoot(at, Heap::kFixedCOWArrayMapRootIndex); 3705 LoadRoot(at, Heap::kFixedCOWArrayMapRootIndex);
3705 Branch(&ok, eq, elements, Operand(at)); 3706 Branch(&ok, eq, elements, Operand(at));
3706 Abort("JSObject with fast elements map has slow elements"); 3707 Abort("JSObject with fast elements map has slow elements");
3707 bind(&ok); 3708 bind(&ok);
3708 pop(elements); 3709 pop(elements);
3709 } 3710 }
3710 } 3711 }
3711 3712
3712 3713
3713 void MacroAssembler::Check(Condition cc, const char* msg, 3714 void MacroAssembler::Check(Condition cc, const char* msg,
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
4290 opcode == BGTZL); 4291 opcode == BGTZL);
4291 opcode = (cond == eq) ? BEQ : BNE; 4292 opcode = (cond == eq) ? BEQ : BNE;
4292 instr = (instr & ~kOpcodeMask) | opcode; 4293 instr = (instr & ~kOpcodeMask) | opcode;
4293 masm_.emit(instr); 4294 masm_.emit(instr);
4294 } 4295 }
4295 4296
4296 4297
4297 } } // namespace v8::internal 4298 } } // namespace v8::internal
4298 4299
4299 #endif // V8_TARGET_ARCH_MIPS 4300 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698