OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |