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

Side by Side Diff: src/assembler.cc

Issue 7342048: Make sure that canonical NaN is also platform NaN. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remove whitespace changes Created 9 years, 5 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 | src/objects-debug.cc » ('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 (c) 2011 Sun Microsystems Inc. 1 // Copyright (c) 2011 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 namespace v8 { 65 namespace v8 {
66 namespace internal { 66 namespace internal {
67 67
68 68
69 const double DoubleConstant::min_int = kMinInt; 69 const double DoubleConstant::min_int = kMinInt;
70 const double DoubleConstant::one_half = 0.5; 70 const double DoubleConstant::one_half = 0.5;
71 const double DoubleConstant::minus_zero = -0.0; 71 const double DoubleConstant::minus_zero = -0.0;
72 const double DoubleConstant::uint8_max_value = 255; 72 const double DoubleConstant::uint8_max_value = 255;
73 const double DoubleConstant::zero = 0.0; 73 const double DoubleConstant::zero = 0.0;
74 const double DoubleConstant::canonical_non_hole_nan = 74 const double DoubleConstant::canonical_non_hole_nan = OS::nan_value();
75 BitCast<double>(kCanonicalNonHoleNanInt64);
76 const double DoubleConstant::the_hole_nan = BitCast<double>(kHoleNanInt64); 75 const double DoubleConstant::the_hole_nan = BitCast<double>(kHoleNanInt64);
77 const double DoubleConstant::negative_infinity = -V8_INFINITY; 76 const double DoubleConstant::negative_infinity = -V8_INFINITY;
78 const char* RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING"; 77 const char* RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING";
79 78
80 // ----------------------------------------------------------------------------- 79 // -----------------------------------------------------------------------------
81 // Implementation of AssemblerBase 80 // Implementation of AssemblerBase
82 81
83 AssemblerBase::AssemblerBase(Isolate* isolate) 82 AssemblerBase::AssemblerBase(Isolate* isolate)
84 : isolate_(isolate), 83 : isolate_(isolate),
85 jit_cookie_(0) { 84 jit_cookie_(0) {
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1205 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1207 state_.written_position = state_.current_position; 1206 state_.written_position = state_.current_position;
1208 written = true; 1207 written = true;
1209 } 1208 }
1210 1209
1211 // Return whether something was written. 1210 // Return whether something was written.
1212 return written; 1211 return written;
1213 } 1212 }
1214 1213
1215 } } // namespace v8::internal 1214 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698