| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 5143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5154 __ ldr(scratch2_, | 5154 __ ldr(scratch2_, |
| 5155 FieldMemOperand(scratch2_, GlobalObject::kGlobalContextOffset)); | 5155 FieldMemOperand(scratch2_, GlobalObject::kGlobalContextOffset)); |
| 5156 __ ldr(scratch2_, | 5156 __ ldr(scratch2_, |
| 5157 ContextOperand( | 5157 ContextOperand( |
| 5158 scratch2_, Context::STRING_FUNCTION_PROTOTYPE_MAP_INDEX)); | 5158 scratch2_, Context::STRING_FUNCTION_PROTOTYPE_MAP_INDEX)); |
| 5159 __ cmp(scratch1_, scratch2_); | 5159 __ cmp(scratch1_, scratch2_); |
| 5160 __ b(ne, &false_result); | 5160 __ b(ne, &false_result); |
| 5161 | 5161 |
| 5162 // Set the bit in the map to indicate that it has been checked safe for | 5162 // Set the bit in the map to indicate that it has been checked safe for |
| 5163 // default valueOf and set true result. | 5163 // default valueOf and set true result. |
| 5164 __ ldr(scratch1_, FieldMemOperand(map_result_, Map::kBitField2Offset)); | 5164 __ ldrb(scratch1_, FieldMemOperand(map_result_, Map::kBitField2Offset)); |
| 5165 __ orr(scratch1_, | 5165 __ orr(scratch1_, |
| 5166 scratch1_, | 5166 scratch1_, |
| 5167 Operand(1 << Map::kStringWrapperSafeForDefaultValueOf)); | 5167 Operand(1 << Map::kStringWrapperSafeForDefaultValueOf)); |
| 5168 __ str(scratch1_, FieldMemOperand(map_result_, Map::kBitField2Offset)); | 5168 __ strb(scratch1_, FieldMemOperand(map_result_, Map::kBitField2Offset)); |
| 5169 __ mov(map_result_, Operand(1)); | 5169 __ mov(map_result_, Operand(1)); |
| 5170 __ jmp(exit_label()); | 5170 __ jmp(exit_label()); |
| 5171 __ bind(&false_result); | 5171 __ bind(&false_result); |
| 5172 // Set false result. | 5172 // Set false result. |
| 5173 __ mov(map_result_, Operand(0, RelocInfo::NONE)); | 5173 __ mov(map_result_, Operand(0, RelocInfo::NONE)); |
| 5174 } | 5174 } |
| 5175 | 5175 |
| 5176 private: | 5176 private: |
| 5177 Register object_; | 5177 Register object_; |
| 5178 Register map_result_; | 5178 Register map_result_; |
| (...skipping 2257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7436 BinaryOpIC::GetName(runtime_operands_type_)); | 7436 BinaryOpIC::GetName(runtime_operands_type_)); |
| 7437 return name_; | 7437 return name_; |
| 7438 } | 7438 } |
| 7439 | 7439 |
| 7440 | 7440 |
| 7441 #undef __ | 7441 #undef __ |
| 7442 | 7442 |
| 7443 } } // namespace v8::internal | 7443 } } // namespace v8::internal |
| 7444 | 7444 |
| 7445 #endif // V8_TARGET_ARCH_ARM | 7445 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |