OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
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 3415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3426 __ bind(¬_string); | 3426 __ bind(¬_string); |
3427 | 3427 |
3428 Label not_oddball; | 3428 Label not_oddball; |
3429 __ cmpi(r4, Operand(ODDBALL_TYPE)); | 3429 __ cmpi(r4, Operand(ODDBALL_TYPE)); |
3430 __ bne(¬_oddball); | 3430 __ bne(¬_oddball); |
3431 __ LoadP(r3, FieldMemOperand(r3, Oddball::kToNumberOffset)); | 3431 __ LoadP(r3, FieldMemOperand(r3, Oddball::kToNumberOffset)); |
3432 __ blr(); | 3432 __ blr(); |
3433 __ bind(¬_oddball); | 3433 __ bind(¬_oddball); |
3434 | 3434 |
3435 __ push(r3); // Push argument. | 3435 __ push(r3); // Push argument. |
3436 __ InvokeBuiltin(Context::TO_NUMBER_BUILTIN_INDEX, JUMP_FUNCTION); | 3436 __ TailCallRuntime(Runtime::kToNumber, 1, 1); |
3437 } | 3437 } |
3438 | 3438 |
3439 | 3439 |
3440 void StringHelper::GenerateFlatOneByteStringEquals(MacroAssembler* masm, | 3440 void StringHelper::GenerateFlatOneByteStringEquals(MacroAssembler* masm, |
3441 Register left, | 3441 Register left, |
3442 Register right, | 3442 Register right, |
3443 Register scratch1, | 3443 Register scratch1, |
3444 Register scratch2) { | 3444 Register scratch2) { |
3445 Register length = scratch1; | 3445 Register length = scratch1; |
3446 | 3446 |
(...skipping 2280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5727 kStackUnwindSpace, NULL, | 5727 kStackUnwindSpace, NULL, |
5728 MemOperand(fp, 6 * kPointerSize), NULL); | 5728 MemOperand(fp, 6 * kPointerSize), NULL); |
5729 } | 5729 } |
5730 | 5730 |
5731 | 5731 |
5732 #undef __ | 5732 #undef __ |
5733 } // namespace internal | 5733 } // namespace internal |
5734 } // namespace v8 | 5734 } // namespace v8 |
5735 | 5735 |
5736 #endif // V8_TARGET_ARCH_PPC | 5736 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |