OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.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 3977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3988 __ Bind(¬_string); | 3988 __ Bind(¬_string); |
3989 | 3989 |
3990 Label not_oddball; | 3990 Label not_oddball; |
3991 __ Cmp(x1, ODDBALL_TYPE); | 3991 __ Cmp(x1, ODDBALL_TYPE); |
3992 __ B(ne, ¬_oddball); | 3992 __ B(ne, ¬_oddball); |
3993 __ Ldr(x0, FieldMemOperand(x0, Oddball::kToNumberOffset)); | 3993 __ Ldr(x0, FieldMemOperand(x0, Oddball::kToNumberOffset)); |
3994 __ Ret(); | 3994 __ Ret(); |
3995 __ Bind(¬_oddball); | 3995 __ Bind(¬_oddball); |
3996 | 3996 |
3997 __ Push(x0); // Push argument. | 3997 __ Push(x0); // Push argument. |
3998 __ InvokeBuiltin(Context::TO_NUMBER_BUILTIN_INDEX, JUMP_FUNCTION); | 3998 __ TailCallRuntime(Runtime::kToNumber, 1, 1); |
3999 } | 3999 } |
4000 | 4000 |
4001 | 4001 |
4002 void StringHelper::GenerateFlatOneByteStringEquals( | 4002 void StringHelper::GenerateFlatOneByteStringEquals( |
4003 MacroAssembler* masm, Register left, Register right, Register scratch1, | 4003 MacroAssembler* masm, Register left, Register right, Register scratch1, |
4004 Register scratch2, Register scratch3) { | 4004 Register scratch2, Register scratch3) { |
4005 DCHECK(!AreAliased(left, right, scratch1, scratch2, scratch3)); | 4005 DCHECK(!AreAliased(left, right, scratch1, scratch2, scratch3)); |
4006 Register result = x0; | 4006 Register result = x0; |
4007 Register left_length = scratch1; | 4007 Register left_length = scratch1; |
4008 Register right_length = scratch2; | 4008 Register right_length = scratch2; |
(...skipping 1902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5911 MemOperand(fp, 6 * kPointerSize), NULL); | 5911 MemOperand(fp, 6 * kPointerSize), NULL); |
5912 } | 5912 } |
5913 | 5913 |
5914 | 5914 |
5915 #undef __ | 5915 #undef __ |
5916 | 5916 |
5917 } // namespace internal | 5917 } // namespace internal |
5918 } // namespace v8 | 5918 } // namespace v8 |
5919 | 5919 |
5920 #endif // V8_TARGET_ARCH_ARM64 | 5920 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |