OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |