| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 namespace internal { | 43 namespace internal { |
| 44 | 44 |
| 45 | 45 |
| 46 // ----------------------------------------------------------------------------- | 46 // ----------------------------------------------------------------------------- |
| 47 // Common double constants. | 47 // Common double constants. |
| 48 | 48 |
| 49 class DoubleConstant: public AllStatic { | 49 class DoubleConstant: public AllStatic { |
| 50 public: | 50 public: |
| 51 static const double min_int; | 51 static const double min_int; |
| 52 static const double one_half; | 52 static const double one_half; |
| 53 static const double negative_infinity; |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 | 56 |
| 56 // ----------------------------------------------------------------------------- | 57 // ----------------------------------------------------------------------------- |
| 57 // Labels represent pc locations; they are typically jump or call targets. | 58 // Labels represent pc locations; they are typically jump or call targets. |
| 58 // After declaration, a label can be freely used to denote known or (yet) | 59 // After declaration, a label can be freely used to denote known or (yet) |
| 59 // unknown pc location. Assembler::bind() is used to bind a label to the | 60 // unknown pc location. Assembler::bind() is used to bind a label to the |
| 60 // current pc. A label can be bound only once. | 61 // current pc. A label can be bound only once. |
| 61 | 62 |
| 62 class Label BASE_EMBEDDED { | 63 class Label BASE_EMBEDDED { |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 | 543 |
| 543 static ExternalReference handle_scope_next_address(); | 544 static ExternalReference handle_scope_next_address(); |
| 544 static ExternalReference handle_scope_limit_address(); | 545 static ExternalReference handle_scope_limit_address(); |
| 545 static ExternalReference handle_scope_level_address(); | 546 static ExternalReference handle_scope_level_address(); |
| 546 | 547 |
| 547 static ExternalReference scheduled_exception_address(); | 548 static ExternalReference scheduled_exception_address(); |
| 548 | 549 |
| 549 // Static variables containing common double constants. | 550 // Static variables containing common double constants. |
| 550 static ExternalReference address_of_min_int(); | 551 static ExternalReference address_of_min_int(); |
| 551 static ExternalReference address_of_one_half(); | 552 static ExternalReference address_of_one_half(); |
| 553 static ExternalReference address_of_negative_infinity(); |
| 552 | 554 |
| 553 Address address() const {return reinterpret_cast<Address>(address_);} | 555 Address address() const {return reinterpret_cast<Address>(address_);} |
| 554 | 556 |
| 555 #ifdef ENABLE_DEBUGGER_SUPPORT | 557 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 556 // Function Debug::Break() | 558 // Function Debug::Break() |
| 557 static ExternalReference debug_break(); | 559 static ExternalReference debug_break(); |
| 558 | 560 |
| 559 // Used to check if single stepping is enabled in generated code. | 561 // Used to check if single stepping is enabled in generated code. |
| 560 static ExternalReference debug_step_in_fp_address(); | 562 static ExternalReference debug_step_in_fp_address(); |
| 561 #endif | 563 #endif |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 unsigned int num_bits_set; | 708 unsigned int num_bits_set; |
| 707 for (num_bits_set = 0; x; x >>= 1) { | 709 for (num_bits_set = 0; x; x >>= 1) { |
| 708 num_bits_set += x & 1; | 710 num_bits_set += x & 1; |
| 709 } | 711 } |
| 710 return num_bits_set; | 712 return num_bits_set; |
| 711 } | 713 } |
| 712 | 714 |
| 713 } } // namespace v8::internal | 715 } } // namespace v8::internal |
| 714 | 716 |
| 715 #endif // V8_ASSEMBLER_H_ | 717 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |