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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
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 3395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3406 __ TailCallRuntime(Runtime::kStringToNumber, 1, 1); | 3406 __ TailCallRuntime(Runtime::kStringToNumber, 1, 1); |
3407 __ bind(¬_string); | 3407 __ bind(¬_string); |
3408 | 3408 |
3409 Label not_oddball; | 3409 Label not_oddball; |
3410 __ Branch(¬_oddball, ne, a1, Operand(ODDBALL_TYPE)); | 3410 __ Branch(¬_oddball, ne, a1, Operand(ODDBALL_TYPE)); |
3411 __ Ret(USE_DELAY_SLOT); | 3411 __ Ret(USE_DELAY_SLOT); |
3412 __ lw(v0, FieldMemOperand(a0, Oddball::kToNumberOffset)); | 3412 __ lw(v0, FieldMemOperand(a0, Oddball::kToNumberOffset)); |
3413 __ bind(¬_oddball); | 3413 __ bind(¬_oddball); |
3414 | 3414 |
3415 __ push(a0); // Push argument. | 3415 __ push(a0); // Push argument. |
3416 __ InvokeBuiltin(Context::TO_NUMBER_BUILTIN_INDEX, JUMP_FUNCTION); | 3416 __ TailCallRuntime(Runtime::kToNumber, 1, 1); |
3417 } | 3417 } |
3418 | 3418 |
3419 | 3419 |
3420 void StringHelper::GenerateFlatOneByteStringEquals( | 3420 void StringHelper::GenerateFlatOneByteStringEquals( |
3421 MacroAssembler* masm, Register left, Register right, Register scratch1, | 3421 MacroAssembler* masm, Register left, Register right, Register scratch1, |
3422 Register scratch2, Register scratch3) { | 3422 Register scratch2, Register scratch3) { |
3423 Register length = scratch1; | 3423 Register length = scratch1; |
3424 | 3424 |
3425 // Compare lengths. | 3425 // Compare lengths. |
3426 Label strings_not_equal, check_zero_length; | 3426 Label strings_not_equal, check_zero_length; |
(...skipping 2201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5628 MemOperand(fp, 6 * kPointerSize), NULL); | 5628 MemOperand(fp, 6 * kPointerSize), NULL); |
5629 } | 5629 } |
5630 | 5630 |
5631 | 5631 |
5632 #undef __ | 5632 #undef __ |
5633 | 5633 |
5634 } // namespace internal | 5634 } // namespace internal |
5635 } // namespace v8 | 5635 } // namespace v8 |
5636 | 5636 |
5637 #endif // V8_TARGET_ARCH_MIPS | 5637 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |