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 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1786 Heap::RootListIndex index) { | 1786 Heap::RootListIndex index) { |
1787 ASSERT(!obj.is(ip)); | 1787 ASSERT(!obj.is(ip)); |
1788 LoadRoot(ip, index); | 1788 LoadRoot(ip, index); |
1789 cmp(obj, ip); | 1789 cmp(obj, ip); |
1790 } | 1790 } |
1791 | 1791 |
1792 | 1792 |
1793 void MacroAssembler::CheckFastElements(Register map, | 1793 void MacroAssembler::CheckFastElements(Register map, |
1794 Register scratch, | 1794 Register scratch, |
1795 Label* fail) { | 1795 Label* fail) { |
1796 STATIC_ASSERT(JSObject::FAST_ELEMENTS == 0); | 1796 STATIC_ASSERT(FAST_ELEMENTS == 0); |
1797 ldrb(scratch, FieldMemOperand(map, Map::kBitField2Offset)); | 1797 ldrb(scratch, FieldMemOperand(map, Map::kBitField2Offset)); |
1798 cmp(scratch, Operand(Map::kMaximumBitField2FastElementValue)); | 1798 cmp(scratch, Operand(Map::kMaximumBitField2FastElementValue)); |
1799 b(hi, fail); | 1799 b(hi, fail); |
1800 } | 1800 } |
1801 | 1801 |
1802 | 1802 |
1803 void MacroAssembler::CheckMap(Register obj, | 1803 void MacroAssembler::CheckMap(Register obj, |
1804 Register scratch, | 1804 Register scratch, |
1805 Handle<Map> map, | 1805 Handle<Map> map, |
1806 Label* fail, | 1806 Label* fail, |
(...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3269 void CodePatcher::EmitCondition(Condition cond) { | 3269 void CodePatcher::EmitCondition(Condition cond) { |
3270 Instr instr = Assembler::instr_at(masm_.pc_); | 3270 Instr instr = Assembler::instr_at(masm_.pc_); |
3271 instr = (instr & ~kCondMask) | cond; | 3271 instr = (instr & ~kCondMask) | cond; |
3272 masm_.emit(instr); | 3272 masm_.emit(instr); |
3273 } | 3273 } |
3274 | 3274 |
3275 | 3275 |
3276 } } // namespace v8::internal | 3276 } } // namespace v8::internal |
3277 | 3277 |
3278 #endif // V8_TARGET_ARCH_ARM | 3278 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |