OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 4896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4907 | 4907 |
4908 | 4908 |
4909 void MacroAssembler::AssertName(Register object) { | 4909 void MacroAssembler::AssertName(Register object) { |
4910 if (emit_debug_code()) { | 4910 if (emit_debug_code()) { |
4911 STATIC_ASSERT(kSmiTag == 0); | 4911 STATIC_ASSERT(kSmiTag == 0); |
4912 And(t0, object, Operand(kSmiTagMask)); | 4912 And(t0, object, Operand(kSmiTagMask)); |
4913 Check(ne, "Operand is a smi and not a name", t0, Operand(zero_reg)); | 4913 Check(ne, "Operand is a smi and not a name", t0, Operand(zero_reg)); |
4914 push(object); | 4914 push(object); |
4915 lw(object, FieldMemOperand(object, HeapObject::kMapOffset)); | 4915 lw(object, FieldMemOperand(object, HeapObject::kMapOffset)); |
4916 lbu(object, FieldMemOperand(object, Map::kInstanceTypeOffset)); | 4916 lbu(object, FieldMemOperand(object, Map::kInstanceTypeOffset)); |
| 4917 Check(le, "Operand is not a name", object, Operand(LAST_NAME_TYPE)); |
4917 pop(object); | 4918 pop(object); |
4918 Check(le, "Operand is not a name", object, Operand(LAST_NAME_TYPE)); | |
4919 } | 4919 } |
4920 } | 4920 } |
4921 | 4921 |
4922 | 4922 |
4923 void MacroAssembler::AssertRootValue(Register src, | 4923 void MacroAssembler::AssertRootValue(Register src, |
4924 Heap::RootListIndex root_value_index, | 4924 Heap::RootListIndex root_value_index, |
4925 const char* message) { | 4925 const char* message) { |
4926 if (emit_debug_code()) { | 4926 if (emit_debug_code()) { |
4927 ASSERT(!src.is(at)); | 4927 ASSERT(!src.is(at)); |
4928 LoadRoot(at, root_value_index); | 4928 LoadRoot(at, root_value_index); |
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5571 opcode == BGTZL); | 5571 opcode == BGTZL); |
5572 opcode = (cond == eq) ? BEQ : BNE; | 5572 opcode = (cond == eq) ? BEQ : BNE; |
5573 instr = (instr & ~kOpcodeMask) | opcode; | 5573 instr = (instr & ~kOpcodeMask) | opcode; |
5574 masm_.emit(instr); | 5574 masm_.emit(instr); |
5575 } | 5575 } |
5576 | 5576 |
5577 | 5577 |
5578 } } // namespace v8::internal | 5578 } } // namespace v8::internal |
5579 | 5579 |
5580 #endif // V8_TARGET_ARCH_MIPS | 5580 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |