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

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

Issue 7386003: MIPS: port Implement ICs for FastDoubleArray loads and stores (Closed)
Patch Set: Update register usage in comment block per code-review comments. 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
« no previous file with comments | « no previous file | 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 3683 matching lines...) Expand 10 before | Expand all | Expand 10 after
3694 3694
3695 3695
3696 void MacroAssembler::AssertFastElements(Register elements) { 3696 void MacroAssembler::AssertFastElements(Register elements) {
3697 if (emit_debug_code()) { 3697 if (emit_debug_code()) {
3698 ASSERT(!elements.is(at)); 3698 ASSERT(!elements.is(at));
3699 Label ok; 3699 Label ok;
3700 push(elements); 3700 push(elements);
3701 lw(elements, FieldMemOperand(elements, HeapObject::kMapOffset)); 3701 lw(elements, FieldMemOperand(elements, HeapObject::kMapOffset));
3702 LoadRoot(at, Heap::kFixedArrayMapRootIndex); 3702 LoadRoot(at, Heap::kFixedArrayMapRootIndex);
3703 Branch(&ok, eq, elements, Operand(at)); 3703 Branch(&ok, eq, elements, Operand(at));
3704 LoadRoot(at, Heap::kFixedDoubleArrayMapRootIndex);
3705 Branch(&ok, eq, elements, Operand(at));
3704 LoadRoot(at, Heap::kFixedCOWArrayMapRootIndex); 3706 LoadRoot(at, Heap::kFixedCOWArrayMapRootIndex);
3705 Branch(&ok, eq, elements, Operand(at)); 3707 Branch(&ok, eq, elements, Operand(at));
3706 Abort("JSObject with fast elements map has slow elements"); 3708 Abort("JSObject with fast elements map has slow elements");
3707 bind(&ok); 3709 bind(&ok);
3708 pop(elements); 3710 pop(elements);
3709 } 3711 }
3710 } 3712 }
3711 3713
3712 3714
3713 void MacroAssembler::Check(Condition cc, const char* msg, 3715 void MacroAssembler::Check(Condition cc, const char* msg,
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
4290 opcode == BGTZL); 4292 opcode == BGTZL);
4291 opcode = (cond == eq) ? BEQ : BNE; 4293 opcode = (cond == eq) ? BEQ : BNE;
4292 instr = (instr & ~kOpcodeMask) | opcode; 4294 instr = (instr & ~kOpcodeMask) | opcode;
4293 masm_.emit(instr); 4295 masm_.emit(instr);
4294 } 4296 }
4295 4297
4296 4298
4297 } } // namespace v8::internal 4299 } } // namespace v8::internal
4298 4300
4299 #endif // V8_TARGET_ARCH_MIPS 4301 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698