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

Side by Side Diff: src/full-codegen/mips/full-codegen-mips.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
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_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 2926 matching lines...) Expand 10 before | Expand all | Expand 10 after
2937 2937
2938 Register object = a1; 2938 Register object = a1;
2939 Register index = a0; 2939 Register index = a0;
2940 Register result = v0; 2940 Register result = v0;
2941 2941
2942 PopOperand(object); 2942 PopOperand(object);
2943 2943
2944 Label need_conversion; 2944 Label need_conversion;
2945 Label index_out_of_range; 2945 Label index_out_of_range;
2946 Label done; 2946 Label done;
2947 StringCharCodeAtGenerator generator(object, 2947 StringCharCodeAtGenerator generator(object, index, result, &need_conversion,
2948 index, 2948 &need_conversion, &index_out_of_range);
2949 result,
2950 &need_conversion,
2951 &need_conversion,
2952 &index_out_of_range,
2953 STRING_INDEX_IS_NUMBER);
2954 generator.GenerateFast(masm_); 2949 generator.GenerateFast(masm_);
2955 __ jmp(&done); 2950 __ jmp(&done);
2956 2951
2957 __ bind(&index_out_of_range); 2952 __ bind(&index_out_of_range);
2958 // When the index is out of range, the spec requires us to return 2953 // When the index is out of range, the spec requires us to return
2959 // NaN. 2954 // NaN.
2960 __ LoadRoot(result, Heap::kNanValueRootIndex); 2955 __ LoadRoot(result, Heap::kNanValueRootIndex);
2961 __ jmp(&done); 2956 __ jmp(&done);
2962 2957
2963 __ bind(&need_conversion); 2958 __ bind(&need_conversion);
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
3832 reinterpret_cast<uint32_t>( 3827 reinterpret_cast<uint32_t>(
3833 isolate->builtins()->OnStackReplacement()->entry())); 3828 isolate->builtins()->OnStackReplacement()->entry()));
3834 return ON_STACK_REPLACEMENT; 3829 return ON_STACK_REPLACEMENT;
3835 } 3830 }
3836 3831
3837 3832
3838 } // namespace internal 3833 } // namespace internal
3839 } // namespace v8 3834 } // namespace v8
3840 3835
3841 #endif // V8_TARGET_ARCH_MIPS 3836 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/full-codegen/ia32/full-codegen-ia32.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698