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 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1090 Label* fail) { | 1090 Label* fail) { |
1091 ldr(map, FieldMemOperand(heap_object, HeapObject::kMapOffset)); | 1091 ldr(map, FieldMemOperand(heap_object, HeapObject::kMapOffset)); |
1092 IsInstanceJSObjectType(map, scratch, fail); | 1092 IsInstanceJSObjectType(map, scratch, fail); |
1093 } | 1093 } |
1094 | 1094 |
1095 | 1095 |
1096 void MacroAssembler::IsInstanceJSObjectType(Register map, | 1096 void MacroAssembler::IsInstanceJSObjectType(Register map, |
1097 Register scratch, | 1097 Register scratch, |
1098 Label* fail) { | 1098 Label* fail) { |
1099 ldrb(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); | 1099 ldrb(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); |
1100 cmp(scratch, Operand(FIRST_JS_OBJECT_TYPE)); | 1100 cmp(scratch, Operand(FIRST_NONCALLABLE_SPEC_OBJECT_TYPE)); |
1101 b(lt, fail); | 1101 b(lt, fail); |
1102 cmp(scratch, Operand(LAST_JS_OBJECT_TYPE)); | 1102 cmp(scratch, Operand(LAST_NONCALLABLE_SPEC_OBJECT_TYPE)); |
1103 b(gt, fail); | 1103 b(gt, fail); |
1104 } | 1104 } |
1105 | 1105 |
1106 | 1106 |
1107 void MacroAssembler::IsObjectJSStringType(Register object, | 1107 void MacroAssembler::IsObjectJSStringType(Register object, |
1108 Register scratch, | 1108 Register scratch, |
1109 Label* fail) { | 1109 Label* fail) { |
1110 ASSERT(kNotStringTag != 0); | 1110 ASSERT(kNotStringTag != 0); |
1111 | 1111 |
1112 ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); | 1112 ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); |
(...skipping 2072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3185 void CodePatcher::EmitCondition(Condition cond) { | 3185 void CodePatcher::EmitCondition(Condition cond) { |
3186 Instr instr = Assembler::instr_at(masm_.pc_); | 3186 Instr instr = Assembler::instr_at(masm_.pc_); |
3187 instr = (instr & ~kCondMask) | cond; | 3187 instr = (instr & ~kCondMask) | cond; |
3188 masm_.emit(instr); | 3188 masm_.emit(instr); |
3189 } | 3189 } |
3190 | 3190 |
3191 | 3191 |
3192 } } // namespace v8::internal | 3192 } } // namespace v8::internal |
3193 | 3193 |
3194 #endif // V8_TARGET_ARCH_ARM | 3194 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |