| 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 5146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5157 __ ldr(scratch2_, | 5157 __ ldr(scratch2_, |
| 5158 FieldMemOperand(scratch2_, GlobalObject::kGlobalContextOffset)); | 5158 FieldMemOperand(scratch2_, GlobalObject::kGlobalContextOffset)); |
| 5159 __ ldr(scratch2_, | 5159 __ ldr(scratch2_, |
| 5160 ContextOperand( | 5160 ContextOperand( |
| 5161 scratch2_, Context::STRING_FUNCTION_PROTOTYPE_MAP_INDEX)); | 5161 scratch2_, Context::STRING_FUNCTION_PROTOTYPE_MAP_INDEX)); |
| 5162 __ cmp(scratch1_, scratch2_); | 5162 __ cmp(scratch1_, scratch2_); |
| 5163 __ b(ne, &false_result); | 5163 __ b(ne, &false_result); |
| 5164 | 5164 |
| 5165 // Set the bit in the map to indicate that it has been checked safe for | 5165 // Set the bit in the map to indicate that it has been checked safe for |
| 5166 // default valueOf and set true result. | 5166 // default valueOf and set true result. |
| 5167 __ ldr(scratch1_, FieldMemOperand(map_result_, Map::kBitField2Offset)); | 5167 __ ldrb(scratch1_, FieldMemOperand(map_result_, Map::kBitField2Offset)); |
| 5168 __ orr(scratch1_, | 5168 __ orr(scratch1_, |
| 5169 scratch1_, | 5169 scratch1_, |
| 5170 Operand(1 << Map::kStringWrapperSafeForDefaultValueOf)); | 5170 Operand(1 << Map::kStringWrapperSafeForDefaultValueOf)); |
| 5171 __ str(scratch1_, FieldMemOperand(map_result_, Map::kBitField2Offset)); | 5171 __ strb(scratch1_, FieldMemOperand(map_result_, Map::kBitField2Offset)); |
| 5172 __ mov(map_result_, Operand(1)); | 5172 __ mov(map_result_, Operand(1)); |
| 5173 __ jmp(exit_label()); | 5173 __ jmp(exit_label()); |
| 5174 __ bind(&false_result); | 5174 __ bind(&false_result); |
| 5175 // Set false result. | 5175 // Set false result. |
| 5176 __ mov(map_result_, Operand(0, RelocInfo::NONE)); | 5176 __ mov(map_result_, Operand(0, RelocInfo::NONE)); |
| 5177 } | 5177 } |
| 5178 | 5178 |
| 5179 private: | 5179 private: |
| 5180 Register object_; | 5180 Register object_; |
| 5181 Register map_result_; | 5181 Register map_result_; |
| (...skipping 2182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7364 BinaryOpIC::GetName(runtime_operands_type_)); | 7364 BinaryOpIC::GetName(runtime_operands_type_)); |
| 7365 return name_; | 7365 return name_; |
| 7366 } | 7366 } |
| 7367 | 7367 |
| 7368 | 7368 |
| 7369 #undef __ | 7369 #undef __ |
| 7370 | 7370 |
| 7371 } } // namespace v8::internal | 7371 } } // namespace v8::internal |
| 7372 | 7372 |
| 7373 #endif // V8_TARGET_ARCH_ARM | 7373 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |