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

Side by Side Diff: src/full-codegen/ia32/full-codegen-ia32.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_IA32 5 #if V8_TARGET_ARCH_IA32
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 2808 matching lines...) Expand 10 before | Expand all | Expand 10 after
2819 2819
2820 Register object = ebx; 2820 Register object = ebx;
2821 Register index = eax; 2821 Register index = eax;
2822 Register result = edx; 2822 Register result = edx;
2823 2823
2824 PopOperand(object); 2824 PopOperand(object);
2825 2825
2826 Label need_conversion; 2826 Label need_conversion;
2827 Label index_out_of_range; 2827 Label index_out_of_range;
2828 Label done; 2828 Label done;
2829 StringCharCodeAtGenerator generator(object, 2829 StringCharCodeAtGenerator generator(object, index, result, &need_conversion,
2830 index, 2830 &need_conversion, &index_out_of_range);
2831 result,
2832 &need_conversion,
2833 &need_conversion,
2834 &index_out_of_range,
2835 STRING_INDEX_IS_NUMBER);
2836 generator.GenerateFast(masm_); 2831 generator.GenerateFast(masm_);
2837 __ jmp(&done); 2832 __ jmp(&done);
2838 2833
2839 __ bind(&index_out_of_range); 2834 __ bind(&index_out_of_range);
2840 // When the index is out of range, the spec requires us to return 2835 // When the index is out of range, the spec requires us to return
2841 // NaN. 2836 // NaN.
2842 __ Move(result, Immediate(isolate()->factory()->nan_value())); 2837 __ Move(result, Immediate(isolate()->factory()->nan_value()));
2843 __ jmp(&done); 2838 __ jmp(&done);
2844 2839
2845 __ bind(&need_conversion); 2840 __ bind(&need_conversion);
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
3722 isolate->builtins()->OnStackReplacement()->entry(), 3717 isolate->builtins()->OnStackReplacement()->entry(),
3723 Assembler::target_address_at(call_target_address, unoptimized_code)); 3718 Assembler::target_address_at(call_target_address, unoptimized_code));
3724 return ON_STACK_REPLACEMENT; 3719 return ON_STACK_REPLACEMENT;
3725 } 3720 }
3726 3721
3727 3722
3728 } // namespace internal 3723 } // namespace internal
3729 } // namespace v8 3724 } // namespace v8
3730 3725
3731 #endif // V8_TARGET_ARCH_IA32 3726 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/arm64/full-codegen-arm64.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698