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

Side by Side Diff: src/full-codegen/arm/full-codegen-arm.cc

Issue 2010183003: [runtime] Kill the %NumberToIntegerMapMinusZero runtime entry. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months 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/code-stubs.h ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/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 2916 matching lines...) Expand 10 before | Expand all | Expand 10 after
2927 2927
2928 Register object = r1; 2928 Register object = r1;
2929 Register index = r0; 2929 Register index = r0;
2930 Register result = r3; 2930 Register result = r3;
2931 2931
2932 PopOperand(object); 2932 PopOperand(object);
2933 2933
2934 Label need_conversion; 2934 Label need_conversion;
2935 Label index_out_of_range; 2935 Label index_out_of_range;
2936 Label done; 2936 Label done;
2937 StringCharCodeAtGenerator generator(object, 2937 StringCharCodeAtGenerator generator(object, index, result, &need_conversion,
2938 index, 2938 &need_conversion, &index_out_of_range);
2939 result,
2940 &need_conversion,
2941 &need_conversion,
2942 &index_out_of_range,
2943 STRING_INDEX_IS_NUMBER);
2944 generator.GenerateFast(masm_); 2939 generator.GenerateFast(masm_);
2945 __ jmp(&done); 2940 __ jmp(&done);
2946 2941
2947 __ bind(&index_out_of_range); 2942 __ bind(&index_out_of_range);
2948 // When the index is out of range, the spec requires us to return 2943 // When the index is out of range, the spec requires us to return
2949 // NaN. 2944 // NaN.
2950 __ LoadRoot(result, Heap::kNanValueRootIndex); 2945 __ LoadRoot(result, Heap::kNanValueRootIndex);
2951 __ jmp(&done); 2946 __ jmp(&done);
2952 2947
2953 __ bind(&need_conversion); 2948 __ bind(&need_conversion);
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
3887 DCHECK(interrupt_address == 3882 DCHECK(interrupt_address ==
3888 isolate->builtins()->OnStackReplacement()->entry()); 3883 isolate->builtins()->OnStackReplacement()->entry());
3889 return ON_STACK_REPLACEMENT; 3884 return ON_STACK_REPLACEMENT;
3890 } 3885 }
3891 3886
3892 3887
3893 } // namespace internal 3888 } // namespace internal
3894 } // namespace v8 3889 } // namespace v8
3895 3890
3896 #endif // V8_TARGET_ARCH_ARM 3891 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698