| 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_ARM | 5 #if V8_TARGET_ARCH_ARM |
| 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 2716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2727 | 2727 |
| 2728 | 2728 |
| 2729 void StringCharFromCodeGenerator::GenerateSlow( | 2729 void StringCharFromCodeGenerator::GenerateSlow( |
| 2730 MacroAssembler* masm, | 2730 MacroAssembler* masm, |
| 2731 const RuntimeCallHelper& call_helper) { | 2731 const RuntimeCallHelper& call_helper) { |
| 2732 __ Abort(kUnexpectedFallthroughToCharFromCodeSlowCase); | 2732 __ Abort(kUnexpectedFallthroughToCharFromCodeSlowCase); |
| 2733 | 2733 |
| 2734 __ bind(&slow_case_); | 2734 __ bind(&slow_case_); |
| 2735 call_helper.BeforeCall(masm); | 2735 call_helper.BeforeCall(masm); |
| 2736 __ push(code_); | 2736 __ push(code_); |
| 2737 __ CallRuntime(Runtime::kCharFromCode, 1); | 2737 __ CallRuntime(Runtime::kStringCharFromCode, 1); |
| 2738 __ Move(result_, r0); | 2738 __ Move(result_, r0); |
| 2739 call_helper.AfterCall(masm); | 2739 call_helper.AfterCall(masm); |
| 2740 __ jmp(&exit_); | 2740 __ jmp(&exit_); |
| 2741 | 2741 |
| 2742 __ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase); | 2742 __ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase); |
| 2743 } | 2743 } |
| 2744 | 2744 |
| 2745 | 2745 |
| 2746 enum CopyCharactersFlags { COPY_ONE_BYTE = 1, DEST_ALWAYS_ALIGNED = 2 }; | 2746 enum CopyCharactersFlags { COPY_ONE_BYTE = 1, DEST_ALWAYS_ALIGNED = 2 }; |
| 2747 | 2747 |
| (...skipping 2691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5439 MemOperand(fp, 6 * kPointerSize), NULL); | 5439 MemOperand(fp, 6 * kPointerSize), NULL); |
| 5440 } | 5440 } |
| 5441 | 5441 |
| 5442 | 5442 |
| 5443 #undef __ | 5443 #undef __ |
| 5444 | 5444 |
| 5445 } // namespace internal | 5445 } // namespace internal |
| 5446 } // namespace v8 | 5446 } // namespace v8 |
| 5447 | 5447 |
| 5448 #endif // V8_TARGET_ARCH_ARM | 5448 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |