| 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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 6 | 6 |
| 7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/ic/handler-compiler.h" | 10 #include "src/ic/handler-compiler.h" |
| (...skipping 3427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3438 __ TailCallRuntime(Runtime::kStringToNumber, 1, 1); | 3438 __ TailCallRuntime(Runtime::kStringToNumber, 1, 1); |
| 3439 __ bind(¬_string); | 3439 __ bind(¬_string); |
| 3440 | 3440 |
| 3441 Label not_oddball; | 3441 Label not_oddball; |
| 3442 __ Branch(¬_oddball, ne, a1, Operand(ODDBALL_TYPE)); | 3442 __ Branch(¬_oddball, ne, a1, Operand(ODDBALL_TYPE)); |
| 3443 __ Ret(USE_DELAY_SLOT); | 3443 __ Ret(USE_DELAY_SLOT); |
| 3444 __ ld(v0, FieldMemOperand(a0, Oddball::kToNumberOffset)); | 3444 __ ld(v0, FieldMemOperand(a0, Oddball::kToNumberOffset)); |
| 3445 __ bind(¬_oddball); | 3445 __ bind(¬_oddball); |
| 3446 | 3446 |
| 3447 __ push(a0); // Push argument. | 3447 __ push(a0); // Push argument. |
| 3448 __ InvokeBuiltin(Context::TO_NUMBER_BUILTIN_INDEX, JUMP_FUNCTION); | 3448 __ TailCallRuntime(Runtime::kToNumber, 1, 1); |
| 3449 } | 3449 } |
| 3450 | 3450 |
| 3451 | 3451 |
| 3452 void StringHelper::GenerateFlatOneByteStringEquals( | 3452 void StringHelper::GenerateFlatOneByteStringEquals( |
| 3453 MacroAssembler* masm, Register left, Register right, Register scratch1, | 3453 MacroAssembler* masm, Register left, Register right, Register scratch1, |
| 3454 Register scratch2, Register scratch3) { | 3454 Register scratch2, Register scratch3) { |
| 3455 Register length = scratch1; | 3455 Register length = scratch1; |
| 3456 | 3456 |
| 3457 // Compare lengths. | 3457 // Compare lengths. |
| 3458 Label strings_not_equal, check_zero_length; | 3458 Label strings_not_equal, check_zero_length; |
| (...skipping 2201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5660 MemOperand(fp, 6 * kPointerSize), NULL); | 5660 MemOperand(fp, 6 * kPointerSize), NULL); |
| 5661 } | 5661 } |
| 5662 | 5662 |
| 5663 | 5663 |
| 5664 #undef __ | 5664 #undef __ |
| 5665 | 5665 |
| 5666 } // namespace internal | 5666 } // namespace internal |
| 5667 } // namespace v8 | 5667 } // namespace v8 |
| 5668 | 5668 |
| 5669 #endif // V8_TARGET_ARCH_MIPS64 | 5669 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |