| 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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
| 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 2739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2750 | 2750 |
| 2751 | 2751 |
| 2752 void StringCharFromCodeGenerator::GenerateSlow( | 2752 void StringCharFromCodeGenerator::GenerateSlow( |
| 2753 MacroAssembler* masm, | 2753 MacroAssembler* masm, |
| 2754 const RuntimeCallHelper& call_helper) { | 2754 const RuntimeCallHelper& call_helper) { |
| 2755 __ Abort(kUnexpectedFallthroughToCharFromCodeSlowCase); | 2755 __ Abort(kUnexpectedFallthroughToCharFromCodeSlowCase); |
| 2756 | 2756 |
| 2757 __ bind(&slow_case_); | 2757 __ bind(&slow_case_); |
| 2758 call_helper.BeforeCall(masm); | 2758 call_helper.BeforeCall(masm); |
| 2759 __ push(code_); | 2759 __ push(code_); |
| 2760 __ CallRuntime(Runtime::kCharFromCode, 1); | 2760 __ CallRuntime(Runtime::kStringCharFromCode, 1); |
| 2761 if (!result_.is(eax)) { | 2761 if (!result_.is(eax)) { |
| 2762 __ mov(result_, eax); | 2762 __ mov(result_, eax); |
| 2763 } | 2763 } |
| 2764 call_helper.AfterCall(masm); | 2764 call_helper.AfterCall(masm); |
| 2765 __ jmp(&exit_); | 2765 __ jmp(&exit_); |
| 2766 | 2766 |
| 2767 __ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase); | 2767 __ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase); |
| 2768 } | 2768 } |
| 2769 | 2769 |
| 2770 | 2770 |
| (...skipping 2974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5745 Operand(ebp, 7 * kPointerSize), NULL); | 5745 Operand(ebp, 7 * kPointerSize), NULL); |
| 5746 } | 5746 } |
| 5747 | 5747 |
| 5748 | 5748 |
| 5749 #undef __ | 5749 #undef __ |
| 5750 | 5750 |
| 5751 } // namespace internal | 5751 } // namespace internal |
| 5752 } // namespace v8 | 5752 } // namespace v8 |
| 5753 | 5753 |
| 5754 #endif // V8_TARGET_ARCH_IA32 | 5754 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |