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

Side by Side Diff: runtime/vm/intermediate_language_ia32.cc

Issue 221623002: Fix builds for finicky compilers. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 4791 matching lines...) Expand 10 before | Expand all | Expand 10 after
4802 __ j(PARITY_ODD, &do_call, Assembler::kNearJump); 4802 __ j(PARITY_ODD, &do_call, Assembler::kNearJump);
4803 // Return NaN. 4803 // Return NaN.
4804 __ Bind(&return_nan); 4804 __ Bind(&return_nan);
4805 __ LoadObject(temp, Double::ZoneHandle(Double::NewCanonical(NAN))); 4805 __ LoadObject(temp, Double::ZoneHandle(Double::NewCanonical(NAN)));
4806 __ movsd(result, FieldAddress(temp, Double::value_offset())); 4806 __ movsd(result, FieldAddress(temp, Double::value_offset()));
4807 __ jmp(&skip_call); 4807 __ jmp(&skip_call);
4808 4808
4809 Label do_pow, return_zero; 4809 Label do_pow, return_zero;
4810 __ Bind(&do_call); 4810 __ Bind(&do_call);
4811 // Before calling check if we could use sqrt instead of pow. 4811 // Before calling check if we could use sqrt instead of pow.
4812 __ LoadObject(temp, Double::ZoneHandle(Double::NewCanonical(-1.0/0.0))); 4812 __ LoadObject(temp, Double::ZoneHandle(Double::NewCanonical(-INFINITY)));
4813 __ movsd(result, FieldAddress(temp, Double::value_offset())); 4813 __ movsd(result, FieldAddress(temp, Double::value_offset()));
4814 // base == -Infinity -> call pow; 4814 // base == -Infinity -> call pow;
4815 __ comisd(base, result); 4815 __ comisd(base, result);
4816 __ j(EQUAL, &do_pow, Assembler::kNearJump); 4816 __ j(EQUAL, &do_pow, Assembler::kNearJump);
4817 4817
4818 // exponent == 0.5 ? 4818 // exponent == 0.5 ?
4819 __ LoadObject(temp, Double::ZoneHandle(Double::NewCanonical(0.5))); 4819 __ LoadObject(temp, Double::ZoneHandle(Double::NewCanonical(0.5)));
4820 __ movsd(result, FieldAddress(temp, Double::value_offset())); 4820 __ movsd(result, FieldAddress(temp, Double::value_offset()));
4821 __ comisd(exp, result); 4821 __ comisd(exp, result);
4822 __ j(NOT_EQUAL, &do_pow, Assembler::kNearJump); 4822 __ j(NOT_EQUAL, &do_pow, Assembler::kNearJump);
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after
5839 PcDescriptors::kOther, 5839 PcDescriptors::kOther,
5840 locs()); 5840 locs());
5841 __ Drop(ArgumentCount()); // Discard arguments. 5841 __ Drop(ArgumentCount()); // Discard arguments.
5842 } 5842 }
5843 5843
5844 } // namespace dart 5844 } // namespace dart
5845 5845
5846 #undef __ 5846 #undef __
5847 5847
5848 #endif // defined TARGET_ARCH_IA32 5848 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698