Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(673)

Side by Side Diff: src/ppc/code-stubs-ppc.cc

Issue 1429953005: PPC: [runtime] Drop redundant %CharFromCode runtime entry. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698