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

Side by Side Diff: src/assembler.cc

Issue 6606002: Merge revision 6500-6600 from bleeding_edge to the isolates branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 9 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 | « src/assembler.h ('k') | src/ast.h » ('j') | src/ast.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 return p; 846 return p;
847 } 847 }
848 848
849 849
850 double power_double_double(double x, double y) { 850 double power_double_double(double x, double y) {
851 int y_int = static_cast<int>(y); 851 int y_int = static_cast<int>(y);
852 if (y == y_int) { 852 if (y == y_int) {
853 return power_double_int(x, y_int); // Returns 1.0 for exponent 0. 853 return power_double_int(x, y_int); // Returns 1.0 for exponent 0.
854 } 854 }
855 if (!isinf(x)) { 855 if (!isinf(x)) {
856 if (y == 0.5) return sqrt(x); 856 if (y == 0.5) return sqrt(x + 0.0); // -0 must be converted to +0.
857 if (y == -0.5) return 1.0 / sqrt(x); 857 if (y == -0.5) return 1.0 / sqrt(x + 0.0);
858 } 858 }
859 if (isnan(y) || ((x == 1 || x == -1) && isinf(y))) { 859 if (isnan(y) || ((x == 1 || x == -1) && isinf(y))) {
860 return OS::nan_value(); 860 return OS::nan_value();
861 } 861 }
862 return pow(x, y); 862 return pow(x, y);
863 } 863 }
864 864
865 865
866 ExternalReference ExternalReference::power_double_double_function() { 866 ExternalReference ExternalReference::power_double_double_function() {
867 return ExternalReference(Redirect(FUNCTION_ADDR(power_double_double))); 867 return ExternalReference(Redirect(FUNCTION_ADDR(power_double_double)));
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 970 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
971 state_.written_position = state_.current_position; 971 state_.written_position = state_.current_position;
972 written = true; 972 written = true;
973 } 973 }
974 974
975 // Return whether something was written. 975 // Return whether something was written.
976 return written; 976 return written;
977 } 977 }
978 978
979 } } // namespace v8::internal 979 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/ast.h » ('j') | src/ast.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698