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 2957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2968 Addu(dst, dst, 1); | 2968 Addu(dst, dst, 1); |
2969 Subu(length, length, Operand(1)); | 2969 Subu(length, length, Operand(1)); |
2970 Branch(&byte_loop_1, ne, length, Operand(zero_reg)); | 2970 Branch(&byte_loop_1, ne, length, Operand(zero_reg)); |
2971 bind(&done); | 2971 bind(&done); |
2972 } | 2972 } |
2973 | 2973 |
2974 | 2974 |
2975 void MacroAssembler::CheckFastElements(Register map, | 2975 void MacroAssembler::CheckFastElements(Register map, |
2976 Register scratch, | 2976 Register scratch, |
2977 Label* fail) { | 2977 Label* fail) { |
2978 STATIC_ASSERT(JSObject::FAST_ELEMENTS == 0); | 2978 STATIC_ASSERT(FAST_ELEMENTS == 0); |
2979 lbu(scratch, FieldMemOperand(map, Map::kBitField2Offset)); | 2979 lbu(scratch, FieldMemOperand(map, Map::kBitField2Offset)); |
2980 Branch(fail, hi, scratch, Operand(Map::kMaximumBitField2FastElementValue)); | 2980 Branch(fail, hi, scratch, Operand(Map::kMaximumBitField2FastElementValue)); |
2981 } | 2981 } |
2982 | 2982 |
2983 | 2983 |
2984 void MacroAssembler::CheckMap(Register obj, | 2984 void MacroAssembler::CheckMap(Register obj, |
2985 Register scratch, | 2985 Register scratch, |
2986 Handle<Map> map, | 2986 Handle<Map> map, |
2987 Label* fail, | 2987 Label* fail, |
2988 SmiCheckType smi_check_type) { | 2988 SmiCheckType smi_check_type) { |
(...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4403 opcode == BGTZL); | 4403 opcode == BGTZL); |
4404 opcode = (cond == eq) ? BEQ : BNE; | 4404 opcode = (cond == eq) ? BEQ : BNE; |
4405 instr = (instr & ~kOpcodeMask) | opcode; | 4405 instr = (instr & ~kOpcodeMask) | opcode; |
4406 masm_.emit(instr); | 4406 masm_.emit(instr); |
4407 } | 4407 } |
4408 | 4408 |
4409 | 4409 |
4410 } } // namespace v8::internal | 4410 } } // namespace v8::internal |
4411 | 4411 |
4412 #endif // V8_TARGET_ARCH_MIPS | 4412 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |