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

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

Issue 7237046: MIPS: port Fix ARM regression introduced with polymorphic array support. (Closed)
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
« no previous file with comments | « no previous file | 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 2786 matching lines...) Expand 10 before | Expand all | Expand 10 after
2797 Subu(length, length, Operand(1)); 2797 Subu(length, length, Operand(1));
2798 Branch(&byte_loop_1, ne, length, Operand(zero_reg)); 2798 Branch(&byte_loop_1, ne, length, Operand(zero_reg));
2799 bind(&done); 2799 bind(&done);
2800 } 2800 }
2801 2801
2802 2802
2803 void MacroAssembler::CheckFastElements(Register map, 2803 void MacroAssembler::CheckFastElements(Register map,
2804 Register scratch, 2804 Register scratch,
2805 Label* fail) { 2805 Label* fail) {
2806 STATIC_ASSERT(JSObject::FAST_ELEMENTS == 0); 2806 STATIC_ASSERT(JSObject::FAST_ELEMENTS == 0);
2807 lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); 2807 lbu(scratch, FieldMemOperand(map, Map::kBitField2Offset));
2808 Branch(fail, hi, scratch, Operand(Map::kMaximumBitField2FastElementValue)); 2808 Branch(fail, hi, scratch, Operand(Map::kMaximumBitField2FastElementValue));
2809 } 2809 }
2810 2810
2811 2811
2812 void MacroAssembler::CheckMap(Register obj, 2812 void MacroAssembler::CheckMap(Register obj,
2813 Register scratch, 2813 Register scratch,
2814 Handle<Map> map, 2814 Handle<Map> map,
2815 Label* fail, 2815 Label* fail,
2816 SmiCheckType smi_check_type) { 2816 SmiCheckType smi_check_type) {
2817 if (smi_check_type == DO_SMI_CHECK) { 2817 if (smi_check_type == DO_SMI_CHECK) {
(...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after
4232 opcode == BGTZL); 4232 opcode == BGTZL);
4233 opcode = (cond == eq) ? BEQ : BNE; 4233 opcode = (cond == eq) ? BEQ : BNE;
4234 instr = (instr & ~kOpcodeMask) | opcode; 4234 instr = (instr & ~kOpcodeMask) | opcode;
4235 masm_.emit(instr); 4235 masm_.emit(instr);
4236 } 4236 }
4237 4237
4238 4238
4239 } } // namespace v8::internal 4239 } } // namespace v8::internal
4240 4240
4241 #endif // V8_TARGET_ARCH_MIPS 4241 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698