| 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 2882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2893 | 2893 |
| 2894 | 2894 |
| 2895 void StringCharFromCodeGenerator::GenerateSlow( | 2895 void StringCharFromCodeGenerator::GenerateSlow( |
| 2896 MacroAssembler* masm, | 2896 MacroAssembler* masm, |
| 2897 const RuntimeCallHelper& call_helper) { | 2897 const RuntimeCallHelper& call_helper) { |
| 2898 __ Abort(kUnexpectedFallthroughToCharFromCodeSlowCase); | 2898 __ Abort(kUnexpectedFallthroughToCharFromCodeSlowCase); |
| 2899 | 2899 |
| 2900 __ bind(&slow_case_); | 2900 __ bind(&slow_case_); |
| 2901 call_helper.BeforeCall(masm); | 2901 call_helper.BeforeCall(masm); |
| 2902 __ push(code_); | 2902 __ push(code_); |
| 2903 __ CallRuntime(Runtime::kCharFromCode, 1); | 2903 __ CallRuntime(Runtime::kStringCharFromCode, 1); |
| 2904 __ Move(result_, v0); | 2904 __ Move(result_, v0); |
| 2905 | 2905 |
| 2906 call_helper.AfterCall(masm); | 2906 call_helper.AfterCall(masm); |
| 2907 __ Branch(&exit_); | 2907 __ Branch(&exit_); |
| 2908 | 2908 |
| 2909 __ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase); | 2909 __ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase); |
| 2910 } | 2910 } |
| 2911 | 2911 |
| 2912 | 2912 |
| 2913 enum CopyCharactersFlags { COPY_ONE_BYTE = 1, DEST_ALWAYS_ALIGNED = 2 }; | 2913 enum CopyCharactersFlags { COPY_ONE_BYTE = 1, DEST_ALWAYS_ALIGNED = 2 }; |
| (...skipping 2751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5665 MemOperand(fp, 6 * kPointerSize), NULL); | 5665 MemOperand(fp, 6 * kPointerSize), NULL); |
| 5666 } | 5666 } |
| 5667 | 5667 |
| 5668 | 5668 |
| 5669 #undef __ | 5669 #undef __ |
| 5670 | 5670 |
| 5671 } // namespace internal | 5671 } // namespace internal |
| 5672 } // namespace v8 | 5672 } // namespace v8 |
| 5673 | 5673 |
| 5674 #endif // V8_TARGET_ARCH_MIPS64 | 5674 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |