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 2852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2863 | 2863 |
2864 | 2864 |
2865 void StringCharFromCodeGenerator::GenerateSlow( | 2865 void StringCharFromCodeGenerator::GenerateSlow( |
2866 MacroAssembler* masm, | 2866 MacroAssembler* masm, |
2867 const RuntimeCallHelper& call_helper) { | 2867 const RuntimeCallHelper& call_helper) { |
2868 __ Abort(kUnexpectedFallthroughToCharFromCodeSlowCase); | 2868 __ Abort(kUnexpectedFallthroughToCharFromCodeSlowCase); |
2869 | 2869 |
2870 __ bind(&slow_case_); | 2870 __ bind(&slow_case_); |
2871 call_helper.BeforeCall(masm); | 2871 call_helper.BeforeCall(masm); |
2872 __ push(code_); | 2872 __ push(code_); |
2873 __ CallRuntime(Runtime::kCharFromCode, 1); | 2873 __ CallRuntime(Runtime::kStringCharFromCode, 1); |
2874 __ Move(result_, v0); | 2874 __ Move(result_, v0); |
2875 | 2875 |
2876 call_helper.AfterCall(masm); | 2876 call_helper.AfterCall(masm); |
2877 __ Branch(&exit_); | 2877 __ Branch(&exit_); |
2878 | 2878 |
2879 __ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase); | 2879 __ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase); |
2880 } | 2880 } |
2881 | 2881 |
2882 | 2882 |
2883 enum CopyCharactersFlags { COPY_ONE_BYTE = 1, DEST_ALWAYS_ALIGNED = 2 }; | 2883 enum CopyCharactersFlags { COPY_ONE_BYTE = 1, DEST_ALWAYS_ALIGNED = 2 }; |
(...skipping 2751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5635 MemOperand(fp, 6 * kPointerSize), NULL); | 5635 MemOperand(fp, 6 * kPointerSize), NULL); |
5636 } | 5636 } |
5637 | 5637 |
5638 | 5638 |
5639 #undef __ | 5639 #undef __ |
5640 | 5640 |
5641 } // namespace internal | 5641 } // namespace internal |
5642 } // namespace v8 | 5642 } // namespace v8 |
5643 | 5643 |
5644 #endif // V8_TARGET_ARCH_MIPS | 5644 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |