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 3014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3025 } | 3025 } |
3026 | 3026 |
3027 | 3027 |
3028 void StringCharFromCodeGenerator::GenerateSlow( | 3028 void StringCharFromCodeGenerator::GenerateSlow( |
3029 MacroAssembler* masm, const RuntimeCallHelper& call_helper) { | 3029 MacroAssembler* masm, const RuntimeCallHelper& call_helper) { |
3030 __ Abort(kUnexpectedFallthroughToCharFromCodeSlowCase); | 3030 __ Abort(kUnexpectedFallthroughToCharFromCodeSlowCase); |
3031 | 3031 |
3032 __ bind(&slow_case_); | 3032 __ bind(&slow_case_); |
3033 call_helper.BeforeCall(masm); | 3033 call_helper.BeforeCall(masm); |
3034 __ push(code_); | 3034 __ push(code_); |
3035 __ CallRuntime(Runtime::kCharFromCode, 1); | 3035 __ CallRuntime(Runtime::kStringCharFromCode, 1); |
3036 __ Move(result_, r3); | 3036 __ Move(result_, r3); |
3037 call_helper.AfterCall(masm); | 3037 call_helper.AfterCall(masm); |
3038 __ b(&exit_); | 3038 __ b(&exit_); |
3039 | 3039 |
3040 __ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase); | 3040 __ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase); |
3041 } | 3041 } |
3042 | 3042 |
3043 | 3043 |
3044 enum CopyCharactersFlags { COPY_ONE_BYTE = 1, DEST_ALWAYS_ALIGNED = 2 }; | 3044 enum CopyCharactersFlags { COPY_ONE_BYTE = 1, DEST_ALWAYS_ALIGNED = 2 }; |
3045 | 3045 |
(...skipping 2824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5870 kStackUnwindSpace, NULL, | 5870 kStackUnwindSpace, NULL, |
5871 MemOperand(fp, 6 * kPointerSize), NULL); | 5871 MemOperand(fp, 6 * kPointerSize), NULL); |
5872 } | 5872 } |
5873 | 5873 |
5874 | 5874 |
5875 #undef __ | 5875 #undef __ |
5876 } // namespace internal | 5876 } // namespace internal |
5877 } // namespace v8 | 5877 } // namespace v8 |
5878 | 5878 |
5879 #endif // V8_TARGET_ARCH_PPC | 5879 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |