OLD | NEW |
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 = OS::nan_value(); | 74 const double DoubleConstant::canonical_non_hole_nan = OS::nan_value(); |
75 const double DoubleConstant::the_hole_nan = BitCast<double>(kHoleNanInt64); | 75 const double DoubleConstant::the_hole_nan = BitCast<double>(kHoleNanInt64); |
76 const double DoubleConstant::negative_infinity = -V8_INFINITY; | 76 const double DoubleConstant::negative_infinity = -V8_INFINITY; |
77 const char* RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING"; | 77 const char* const RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING"; |
78 | 78 |
79 // ----------------------------------------------------------------------------- | 79 // ----------------------------------------------------------------------------- |
80 // Implementation of AssemblerBase | 80 // Implementation of AssemblerBase |
81 | 81 |
82 AssemblerBase::AssemblerBase(Isolate* isolate) | 82 AssemblerBase::AssemblerBase(Isolate* isolate) |
83 : isolate_(isolate), | 83 : isolate_(isolate), |
84 jit_cookie_(0) { | 84 jit_cookie_(0) { |
85 if (FLAG_mask_constants_with_cookie && isolate != NULL) { | 85 if (FLAG_mask_constants_with_cookie && isolate != NULL) { |
86 jit_cookie_ = V8::RandomPrivate(isolate); | 86 jit_cookie_ = V8::RandomPrivate(isolate); |
87 } | 87 } |
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1205 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1205 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
1206 state_.written_position = state_.current_position; | 1206 state_.written_position = state_.current_position; |
1207 written = true; | 1207 written = true; |
1208 } | 1208 } |
1209 | 1209 |
1210 // Return whether something was written. | 1210 // Return whether something was written. |
1211 return written; | 1211 return written; |
1212 } | 1212 } |
1213 | 1213 |
1214 } } // namespace v8::internal | 1214 } } // namespace v8::internal |
OLD | NEW |