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 3711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3722 bind(&load_from_back_pointer); | 3722 bind(&load_from_back_pointer); |
3723 ldr(temp, FieldMemOperand(temp, Map::kTransitionsOrBackPointerOffset)); | 3723 ldr(temp, FieldMemOperand(temp, Map::kTransitionsOrBackPointerOffset)); |
3724 ldr(temp, FieldMemOperand(temp, TransitionArray::kDescriptorsPointerOffset)); | 3724 ldr(temp, FieldMemOperand(temp, TransitionArray::kDescriptorsPointerOffset)); |
3725 ldr(descriptors, FieldMemOperand(temp, JSGlobalPropertyCell::kValueOffset)); | 3725 ldr(descriptors, FieldMemOperand(temp, JSGlobalPropertyCell::kValueOffset)); |
3726 | 3726 |
3727 bind(&ok); | 3727 bind(&ok); |
3728 } | 3728 } |
3729 | 3729 |
3730 | 3730 |
3731 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) { | 3731 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) { |
3732 ldr(dst, FieldMemOperand(map, Map::kBitFieldOffset)); | 3732 ldr(dst, FieldMemOperand(map, Map::kBitField3Offset)); |
3733 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst); | 3733 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst); |
3734 } | 3734 } |
3735 | 3735 |
3736 | 3736 |
3737 void MacroAssembler::EnumLength(Register dst, Register map) { | 3737 void MacroAssembler::EnumLength(Register dst, Register map) { |
3738 STATIC_ASSERT(Map::EnumLengthBits::kShift == 0); | 3738 STATIC_ASSERT(Map::EnumLengthBits::kShift == 0); |
3739 ldr(dst, FieldMemOperand(map, Map::kBitField3Offset)); | 3739 ldr(dst, FieldMemOperand(map, Map::kBitField3Offset)); |
3740 and_(dst, dst, Operand(Smi::FromInt(Map::EnumLengthBits::kMask))); | 3740 and_(dst, dst, Operand(Smi::FromInt(Map::EnumLengthBits::kMask))); |
3741 } | 3741 } |
3742 | 3742 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3838 void CodePatcher::EmitCondition(Condition cond) { | 3838 void CodePatcher::EmitCondition(Condition cond) { |
3839 Instr instr = Assembler::instr_at(masm_.pc_); | 3839 Instr instr = Assembler::instr_at(masm_.pc_); |
3840 instr = (instr & ~kCondMask) | cond; | 3840 instr = (instr & ~kCondMask) | cond; |
3841 masm_.emit(instr); | 3841 masm_.emit(instr); |
3842 } | 3842 } |
3843 | 3843 |
3844 | 3844 |
3845 } } // namespace v8::internal | 3845 } } // namespace v8::internal |
3846 | 3846 |
3847 #endif // V8_TARGET_ARCH_ARM | 3847 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |