| OLD | NEW |
| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 double_constants->one_half = 0.5; | 105 double_constants->one_half = 0.5; |
| 106 double_constants->minus_zero = -0.0; | 106 double_constants->minus_zero = -0.0; |
| 107 double_constants->uint8_max_value = 255; | 107 double_constants->uint8_max_value = 255; |
| 108 double_constants->zero = 0.0; | 108 double_constants->zero = 0.0; |
| 109 double_constants->canonical_non_hole_nan = OS::nan_value(); | 109 double_constants->canonical_non_hole_nan = OS::nan_value(); |
| 110 double_constants->the_hole_nan = BitCast<double>(kHoleNanInt64); | 110 double_constants->the_hole_nan = BitCast<double>(kHoleNanInt64); |
| 111 double_constants->negative_infinity = -V8_INFINITY; | 111 double_constants->negative_infinity = -V8_INFINITY; |
| 112 } | 112 } |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 static LazyInstance<DoubleConstant, InitializeDoubleConstants>::type | 115 static LazyInstance<DoubleConstant, InitializeDoubleConstants, |
| 116 double_constants = LAZY_INSTANCE_INITIALIZER; | 116 SingleThreadInitOnceTrait>::type double_constants = |
| 117 LAZY_INSTANCE_INITIALIZER; |
| 117 | 118 |
| 118 const char* const RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING"; | 119 const char* const RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING"; |
| 119 | 120 |
| 120 // ----------------------------------------------------------------------------- | 121 // ----------------------------------------------------------------------------- |
| 121 // Implementation of AssemblerBase | 122 // Implementation of AssemblerBase |
| 122 | 123 |
| 123 AssemblerBase::AssemblerBase(Isolate* isolate) | 124 AssemblerBase::AssemblerBase(Isolate* isolate) |
| 124 : isolate_(isolate), | 125 : isolate_(isolate), |
| 125 jit_cookie_(0) { | 126 jit_cookie_(0) { |
| 126 if (FLAG_mask_constants_with_cookie && isolate != NULL) { | 127 if (FLAG_mask_constants_with_cookie && isolate != NULL) { |
| (...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1298 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1299 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
| 1299 state_.written_position = state_.current_position; | 1300 state_.written_position = state_.current_position; |
| 1300 written = true; | 1301 written = true; |
| 1301 } | 1302 } |
| 1302 | 1303 |
| 1303 // Return whether something was written. | 1304 // Return whether something was written. |
| 1304 return written; | 1305 return written; |
| 1305 } | 1306 } |
| 1306 | 1307 |
| 1307 } } // namespace v8::internal | 1308 } } // namespace v8::internal |
| OLD | NEW |