| 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 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1051 Label* fail) { | 1051 Label* fail) { |
| 1052 ldr(map, FieldMemOperand(heap_object, HeapObject::kMapOffset)); | 1052 ldr(map, FieldMemOperand(heap_object, HeapObject::kMapOffset)); |
| 1053 IsInstanceJSObjectType(map, scratch, fail); | 1053 IsInstanceJSObjectType(map, scratch, fail); |
| 1054 } | 1054 } |
| 1055 | 1055 |
| 1056 | 1056 |
| 1057 void MacroAssembler::IsInstanceJSObjectType(Register map, | 1057 void MacroAssembler::IsInstanceJSObjectType(Register map, |
| 1058 Register scratch, | 1058 Register scratch, |
| 1059 Label* fail) { | 1059 Label* fail) { |
| 1060 ldrb(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); | 1060 ldrb(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); |
| 1061 cmp(scratch, Operand(FIRST_JS_OBJECT_TYPE)); | 1061 cmp(scratch, Operand(FIRST_OBJECT_CLASS_TYPE)); |
| 1062 b(lt, fail); | 1062 b(lt, fail); |
| 1063 cmp(scratch, Operand(LAST_JS_OBJECT_TYPE)); | 1063 cmp(scratch, Operand(LAST_OBJECT_CLASS_TYPE)); |
| 1064 b(gt, fail); | 1064 b(gt, fail); |
| 1065 } | 1065 } |
| 1066 | 1066 |
| 1067 | 1067 |
| 1068 void MacroAssembler::IsObjectJSStringType(Register object, | 1068 void MacroAssembler::IsObjectJSStringType(Register object, |
| 1069 Register scratch, | 1069 Register scratch, |
| 1070 Label* fail) { | 1070 Label* fail) { |
| 1071 ASSERT(kNotStringTag != 0); | 1071 ASSERT(kNotStringTag != 0); |
| 1072 | 1072 |
| 1073 ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); | 1073 ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); |
| (...skipping 2044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3118 void CodePatcher::EmitCondition(Condition cond) { | 3118 void CodePatcher::EmitCondition(Condition cond) { |
| 3119 Instr instr = Assembler::instr_at(masm_.pc_); | 3119 Instr instr = Assembler::instr_at(masm_.pc_); |
| 3120 instr = (instr & ~kCondMask) | cond; | 3120 instr = (instr & ~kCondMask) | cond; |
| 3121 masm_.emit(instr); | 3121 masm_.emit(instr); |
| 3122 } | 3122 } |
| 3123 | 3123 |
| 3124 | 3124 |
| 3125 } } // namespace v8::internal | 3125 } } // namespace v8::internal |
| 3126 | 3126 |
| 3127 #endif // V8_TARGET_ARCH_ARM | 3127 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |