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

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

Issue 1417743007: [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/runtime/runtime-strings.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_X64 5 #if V8_TARGET_ARCH_X64
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 2668 matching lines...) Expand 10 before | Expand all | Expand 10 after
2679 2679
2680 2680
2681 void StringCharFromCodeGenerator::GenerateSlow( 2681 void StringCharFromCodeGenerator::GenerateSlow(
2682 MacroAssembler* masm, 2682 MacroAssembler* masm,
2683 const RuntimeCallHelper& call_helper) { 2683 const RuntimeCallHelper& call_helper) {
2684 __ Abort(kUnexpectedFallthroughToCharFromCodeSlowCase); 2684 __ Abort(kUnexpectedFallthroughToCharFromCodeSlowCase);
2685 2685
2686 __ bind(&slow_case_); 2686 __ bind(&slow_case_);
2687 call_helper.BeforeCall(masm); 2687 call_helper.BeforeCall(masm);
2688 __ Push(code_); 2688 __ Push(code_);
2689 __ CallRuntime(Runtime::kCharFromCode, 1); 2689 __ CallRuntime(Runtime::kStringCharFromCode, 1);
2690 if (!result_.is(rax)) { 2690 if (!result_.is(rax)) {
2691 __ movp(result_, rax); 2691 __ movp(result_, rax);
2692 } 2692 }
2693 call_helper.AfterCall(masm); 2693 call_helper.AfterCall(masm);
2694 __ jmp(&exit_); 2694 __ jmp(&exit_);
2695 2695
2696 __ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase); 2696 __ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase);
2697 } 2697 }
2698 2698
2699 2699
(...skipping 2769 matching lines...) Expand 10 before | Expand all | Expand 10 after
5469 kStackSpace, nullptr, return_value_operand, NULL); 5469 kStackSpace, nullptr, return_value_operand, NULL);
5470 } 5470 }
5471 5471
5472 5472
5473 #undef __ 5473 #undef __
5474 5474
5475 } // namespace internal 5475 } // namespace internal
5476 } // namespace v8 5476 } // namespace v8
5477 5477
5478 #endif // V8_TARGET_ARCH_X64 5478 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/runtime/runtime-strings.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698