OLD | NEW |
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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 2914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2925 Register object = r4; | 2925 Register object = r4; |
2926 Register index = r3; | 2926 Register index = r3; |
2927 Register result = r6; | 2927 Register result = r6; |
2928 | 2928 |
2929 PopOperand(object); | 2929 PopOperand(object); |
2930 | 2930 |
2931 Label need_conversion; | 2931 Label need_conversion; |
2932 Label index_out_of_range; | 2932 Label index_out_of_range; |
2933 Label done; | 2933 Label done; |
2934 StringCharCodeAtGenerator generator(object, index, result, &need_conversion, | 2934 StringCharCodeAtGenerator generator(object, index, result, &need_conversion, |
2935 &need_conversion, &index_out_of_range, | 2935 &need_conversion, &index_out_of_range); |
2936 STRING_INDEX_IS_NUMBER); | |
2937 generator.GenerateFast(masm_); | 2936 generator.GenerateFast(masm_); |
2938 __ b(&done); | 2937 __ b(&done); |
2939 | 2938 |
2940 __ bind(&index_out_of_range); | 2939 __ bind(&index_out_of_range); |
2941 // When the index is out of range, the spec requires us to return | 2940 // When the index is out of range, the spec requires us to return |
2942 // NaN. | 2941 // NaN. |
2943 __ LoadRoot(result, Heap::kNanValueRootIndex); | 2942 __ LoadRoot(result, Heap::kNanValueRootIndex); |
2944 __ b(&done); | 2943 __ b(&done); |
2945 | 2944 |
2946 __ bind(&need_conversion); | 2945 __ bind(&need_conversion); |
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3805 | 3804 |
3806 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 3805 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
3807 | 3806 |
3808 DCHECK(interrupt_address == | 3807 DCHECK(interrupt_address == |
3809 isolate->builtins()->OnStackReplacement()->entry()); | 3808 isolate->builtins()->OnStackReplacement()->entry()); |
3810 return ON_STACK_REPLACEMENT; | 3809 return ON_STACK_REPLACEMENT; |
3811 } | 3810 } |
3812 } // namespace internal | 3811 } // namespace internal |
3813 } // namespace v8 | 3812 } // namespace v8 |
3814 #endif // V8_TARGET_ARCH_PPC | 3813 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |