OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 typedef void (*StoreBufferCallback)(Heap* heap, | 315 typedef void (*StoreBufferCallback)(Heap* heap, |
316 MemoryChunk* page, | 316 MemoryChunk* page, |
317 StoreBufferEvent event); | 317 StoreBufferEvent event); |
318 | 318 |
319 | 319 |
320 // Union used for fast testing of specific double values. | 320 // Union used for fast testing of specific double values. |
321 union DoubleRepresentation { | 321 union DoubleRepresentation { |
322 double value; | 322 double value; |
323 int64_t bits; | 323 int64_t bits; |
324 DoubleRepresentation(double x) { value = x; } | 324 DoubleRepresentation(double x) { value = x; } |
| 325 bool operator==(const DoubleRepresentation& other) const { |
| 326 return bits == other.bits; |
| 327 } |
325 }; | 328 }; |
326 | 329 |
327 | 330 |
328 // Union used for customized checking of the IEEE double types | 331 // Union used for customized checking of the IEEE double types |
329 // inlined within v8 runtime, rather than going to the underlying | 332 // inlined within v8 runtime, rather than going to the underlying |
330 // platform headers and libraries | 333 // platform headers and libraries |
331 union IeeeDoubleLittleEndianArchType { | 334 union IeeeDoubleLittleEndianArchType { |
332 double d; | 335 double d; |
333 struct { | 336 struct { |
334 unsigned int man_low :32; | 337 unsigned int man_low :32; |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 | 574 |
572 | 575 |
573 enum MinusZeroMode { | 576 enum MinusZeroMode { |
574 TREAT_MINUS_ZERO_AS_ZERO, | 577 TREAT_MINUS_ZERO_AS_ZERO, |
575 FAIL_ON_MINUS_ZERO | 578 FAIL_ON_MINUS_ZERO |
576 }; | 579 }; |
577 | 580 |
578 } } // namespace v8::internal | 581 } } // namespace v8::internal |
579 | 582 |
580 #endif // V8_V8GLOBALS_H_ | 583 #endif // V8_V8GLOBALS_H_ |
OLD | NEW |