| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_ARM | 5 #if V8_TARGET_ARCH_ARM |
| 6 | 6 |
| 7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
| 8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 3246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3257 __ bind(¬_string); | 3257 __ bind(¬_string); |
| 3258 | 3258 |
| 3259 Label not_oddball; | 3259 Label not_oddball; |
| 3260 __ cmp(r1, Operand(ODDBALL_TYPE)); | 3260 __ cmp(r1, Operand(ODDBALL_TYPE)); |
| 3261 __ b(ne, ¬_oddball); | 3261 __ b(ne, ¬_oddball); |
| 3262 __ ldr(r0, FieldMemOperand(r0, Oddball::kToNumberOffset)); | 3262 __ ldr(r0, FieldMemOperand(r0, Oddball::kToNumberOffset)); |
| 3263 __ Ret(); | 3263 __ Ret(); |
| 3264 __ bind(¬_oddball); | 3264 __ bind(¬_oddball); |
| 3265 | 3265 |
| 3266 __ push(r0); // Push argument. | 3266 __ push(r0); // Push argument. |
| 3267 __ InvokeBuiltin(Context::TO_NUMBER_BUILTIN_INDEX, JUMP_FUNCTION); | 3267 __ TailCallRuntime(Runtime::kToNumber, 1, 1); |
| 3268 } | 3268 } |
| 3269 | 3269 |
| 3270 | 3270 |
| 3271 void StringHelper::GenerateFlatOneByteStringEquals( | 3271 void StringHelper::GenerateFlatOneByteStringEquals( |
| 3272 MacroAssembler* masm, Register left, Register right, Register scratch1, | 3272 MacroAssembler* masm, Register left, Register right, Register scratch1, |
| 3273 Register scratch2, Register scratch3) { | 3273 Register scratch2, Register scratch3) { |
| 3274 Register length = scratch1; | 3274 Register length = scratch1; |
| 3275 | 3275 |
| 3276 // Compare lengths. | 3276 // Compare lengths. |
| 3277 Label strings_not_equal, check_zero_length; | 3277 Label strings_not_equal, check_zero_length; |
| (...skipping 2152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5430 MemOperand(fp, 6 * kPointerSize), NULL); | 5430 MemOperand(fp, 6 * kPointerSize), NULL); |
| 5431 } | 5431 } |
| 5432 | 5432 |
| 5433 | 5433 |
| 5434 #undef __ | 5434 #undef __ |
| 5435 | 5435 |
| 5436 } // namespace internal | 5436 } // namespace internal |
| 5437 } // namespace v8 | 5437 } // namespace v8 |
| 5438 | 5438 |
| 5439 #endif // V8_TARGET_ARCH_ARM | 5439 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |