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 5152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5163 __ ldr(scratch2_, | 5163 __ ldr(scratch2_, |
5164 FieldMemOperand(scratch2_, GlobalObject::kGlobalContextOffset)); | 5164 FieldMemOperand(scratch2_, GlobalObject::kGlobalContextOffset)); |
5165 __ ldr(scratch2_, | 5165 __ ldr(scratch2_, |
5166 ContextOperand( | 5166 ContextOperand( |
5167 scratch2_, Context::STRING_FUNCTION_PROTOTYPE_MAP_INDEX)); | 5167 scratch2_, Context::STRING_FUNCTION_PROTOTYPE_MAP_INDEX)); |
5168 __ cmp(scratch1_, scratch2_); | 5168 __ cmp(scratch1_, scratch2_); |
5169 __ b(ne, &false_result); | 5169 __ b(ne, &false_result); |
5170 | 5170 |
5171 // Set the bit in the map to indicate that it has been checked safe for | 5171 // Set the bit in the map to indicate that it has been checked safe for |
5172 // default valueOf and set true result. | 5172 // default valueOf and set true result. |
5173 __ ldr(scratch1_, FieldMemOperand(map_result_, Map::kBitField2Offset)); | 5173 __ ldrb(scratch1_, FieldMemOperand(map_result_, Map::kBitField2Offset)); |
5174 __ orr(scratch1_, | 5174 __ orr(scratch1_, |
5175 scratch1_, | 5175 scratch1_, |
5176 Operand(1 << Map::kStringWrapperSafeForDefaultValueOf)); | 5176 Operand(1 << Map::kStringWrapperSafeForDefaultValueOf)); |
5177 __ str(scratch1_, FieldMemOperand(map_result_, Map::kBitField2Offset)); | 5177 __ strb(scratch1_, FieldMemOperand(map_result_, Map::kBitField2Offset)); |
5178 __ mov(map_result_, Operand(1)); | 5178 __ mov(map_result_, Operand(1)); |
5179 __ jmp(exit_label()); | 5179 __ jmp(exit_label()); |
5180 __ bind(&false_result); | 5180 __ bind(&false_result); |
5181 // Set false result. | 5181 // Set false result. |
5182 __ mov(map_result_, Operand(0, RelocInfo::NONE)); | 5182 __ mov(map_result_, Operand(0, RelocInfo::NONE)); |
5183 } | 5183 } |
5184 | 5184 |
5185 private: | 5185 private: |
5186 Register object_; | 5186 Register object_; |
5187 Register map_result_; | 5187 Register map_result_; |
(...skipping 2187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7375 BinaryOpIC::GetName(runtime_operands_type_)); | 7375 BinaryOpIC::GetName(runtime_operands_type_)); |
7376 return name_; | 7376 return name_; |
7377 } | 7377 } |
7378 | 7378 |
7379 | 7379 |
7380 #undef __ | 7380 #undef __ |
7381 | 7381 |
7382 } } // namespace v8::internal | 7382 } } // namespace v8::internal |
7383 | 7383 |
7384 #endif // V8_TARGET_ARCH_ARM | 7384 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |