| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 #endif // Target architecture. | 60 #endif // Target architecture. |
| 61 #endif // V8_INTERPRETED_REGEXP | 61 #endif // V8_INTERPRETED_REGEXP |
| 62 | 62 |
| 63 namespace v8 { | 63 namespace v8 { |
| 64 namespace internal { | 64 namespace internal { |
| 65 | 65 |
| 66 | 66 |
| 67 const double DoubleConstant::min_int = kMinInt; | 67 const double DoubleConstant::min_int = kMinInt; |
| 68 const double DoubleConstant::one_half = 0.5; | 68 const double DoubleConstant::one_half = 0.5; |
| 69 const double DoubleConstant::minus_zero = -0.0; | 69 const double DoubleConstant::minus_zero = -0.0; |
| 70 const double DoubleConstant::nan = OS::nan_value(); |
| 70 const double DoubleConstant::negative_infinity = -V8_INFINITY; | 71 const double DoubleConstant::negative_infinity = -V8_INFINITY; |
| 71 const char* RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING"; | 72 const char* RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING"; |
| 72 | 73 |
| 73 // ----------------------------------------------------------------------------- | 74 // ----------------------------------------------------------------------------- |
| 74 // Implementation of Label | 75 // Implementation of Label |
| 75 | 76 |
| 76 int Label::pos() const { | 77 int Label::pos() const { |
| 77 if (pos_ < 0) return -pos_ - 1; | 78 if (pos_ < 0) return -pos_ - 1; |
| 78 if (pos_ > 0) return pos_ - 1; | 79 if (pos_ > 0) return pos_ - 1; |
| 79 UNREACHABLE(); | 80 UNREACHABLE(); |
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 750 const_cast<double*>(&DoubleConstant::minus_zero))); | 751 const_cast<double*>(&DoubleConstant::minus_zero))); |
| 751 } | 752 } |
| 752 | 753 |
| 753 | 754 |
| 754 ExternalReference ExternalReference::address_of_negative_infinity() { | 755 ExternalReference ExternalReference::address_of_negative_infinity() { |
| 755 return ExternalReference(reinterpret_cast<void*>( | 756 return ExternalReference(reinterpret_cast<void*>( |
| 756 const_cast<double*>(&DoubleConstant::negative_infinity))); | 757 const_cast<double*>(&DoubleConstant::negative_infinity))); |
| 757 } | 758 } |
| 758 | 759 |
| 759 | 760 |
| 761 ExternalReference ExternalReference::address_of_nan() { |
| 762 return ExternalReference(reinterpret_cast<void*>( |
| 763 const_cast<double*>(&DoubleConstant::nan))); |
| 764 } |
| 765 |
| 766 |
| 760 #ifndef V8_INTERPRETED_REGEXP | 767 #ifndef V8_INTERPRETED_REGEXP |
| 761 | 768 |
| 762 ExternalReference ExternalReference::re_check_stack_guard_state() { | 769 ExternalReference ExternalReference::re_check_stack_guard_state() { |
| 763 Address function; | 770 Address function; |
| 764 #ifdef V8_TARGET_ARCH_X64 | 771 #ifdef V8_TARGET_ARCH_X64 |
| 765 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); | 772 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); |
| 766 #elif V8_TARGET_ARCH_IA32 | 773 #elif V8_TARGET_ARCH_IA32 |
| 767 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); | 774 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); |
| 768 #elif V8_TARGET_ARCH_ARM | 775 #elif V8_TARGET_ARCH_ARM |
| 769 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); | 776 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1008 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1015 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
| 1009 state_.written_position = state_.current_position; | 1016 state_.written_position = state_.current_position; |
| 1010 written = true; | 1017 written = true; |
| 1011 } | 1018 } |
| 1012 | 1019 |
| 1013 // Return whether something was written. | 1020 // Return whether something was written. |
| 1014 return written; | 1021 return written; |
| 1015 } | 1022 } |
| 1016 | 1023 |
| 1017 } } // namespace v8::internal | 1024 } } // namespace v8::internal |
| OLD | NEW |