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

Side by Side Diff: src/arm64/simulator-arm64.cc

Issue 426233002: Land the Fan (disabled) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback, rebase and "git cl format" Created 6 years, 4 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/arm64/simulator-arm64.h ('k') | src/arm64/utils-arm64.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include <stdlib.h> 5 #include <stdlib.h>
6 #include <cmath> 6 #include <cmath>
7 #include <cstdarg> 7 #include <cstdarg>
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #if V8_TARGET_ARCH_ARM64 10 #if V8_TARGET_ARCH_ARM64
11 11
12 #include "src/arm64/decoder-arm64-inl.h" 12 #include "src/arm64/decoder-arm64-inl.h"
13 #include "src/arm64/simulator-arm64.h" 13 #include "src/arm64/simulator-arm64.h"
14 #include "src/assembler.h" 14 #include "src/assembler.h"
15 #include "src/disasm.h" 15 #include "src/disasm.h"
16 #include "src/macro-assembler.h" 16 #include "src/macro-assembler.h"
17 #include "src/ostreams.h"
17 18
18 namespace v8 { 19 namespace v8 {
19 namespace internal { 20 namespace internal {
20 21
21 #if defined(USE_SIMULATOR) 22 #if defined(USE_SIMULATOR)
22 23
23 24
24 // This macro provides a platform independent use of sscanf. The reason for 25 // This macro provides a platform independent use of sscanf. The reason for
25 // SScanF not being implemented in a platform independent way through 26 // SScanF not being implemented in a platform independent way through
26 // ::v8::internal::OS in the same way as SNPrintF is that the 27 // ::v8::internal::OS in the same way as SNPrintF is that the
(...skipping 2878 matching lines...) Expand 10 before | Expand all | Expand 10 after
2905 b = kFP64NegativeInfinity; 2906 b = kFP64NegativeInfinity;
2906 } 2907 }
2907 2908
2908 T result = FPProcessNaNs(a, b); 2909 T result = FPProcessNaNs(a, b);
2909 return std::isnan(result) ? result : FPMax(a, b); 2910 return std::isnan(result) ? result : FPMax(a, b);
2910 } 2911 }
2911 2912
2912 template <typename T> 2913 template <typename T>
2913 T Simulator::FPMin(T a, T b) { 2914 T Simulator::FPMin(T a, T b) {
2914 // NaNs should be handled elsewhere. 2915 // NaNs should be handled elsewhere.
2915 ASSERT(!isnan(a) && !isnan(b)); 2916 ASSERT(!std::isnan(a) && !std::isnan(b));
2916 2917
2917 if ((a == 0.0) && (b == 0.0) && 2918 if ((a == 0.0) && (b == 0.0) &&
2918 (copysign(1.0, a) != copysign(1.0, b))) { 2919 (copysign(1.0, a) != copysign(1.0, b))) {
2919 // a and b are zero, and the sign differs: return -0.0. 2920 // a and b are zero, and the sign differs: return -0.0.
2920 return -0.0; 2921 return -0.0;
2921 } else { 2922 } else {
2922 return (a < b) ? a : b; 2923 return (a < b) ? a : b;
2923 } 2924 }
2924 } 2925 }
2925 2926
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
3728 3729
3729 delete[] format; 3730 delete[] format;
3730 } 3731 }
3731 3732
3732 3733
3733 #endif // USE_SIMULATOR 3734 #endif // USE_SIMULATOR
3734 3735
3735 } } // namespace v8::internal 3736 } } // namespace v8::internal
3736 3737
3737 #endif // V8_TARGET_ARCH_ARM64 3738 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/simulator-arm64.h ('k') | src/arm64/utils-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698