| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::negative_infinity = -V8_INFINITY; | 70 const double DoubleConstant::negative_infinity = -V8_INFINITY; |
| 71 | 71 const char* RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING"; |
| 72 | 72 |
| 73 // ----------------------------------------------------------------------------- | 73 // ----------------------------------------------------------------------------- |
| 74 // Implementation of Label | 74 // Implementation of Label |
| 75 | 75 |
| 76 int Label::pos() const { | 76 int Label::pos() const { |
| 77 if (pos_ < 0) return -pos_ - 1; | 77 if (pos_ < 0) return -pos_ - 1; |
| 78 if (pos_ > 0) return pos_ - 1; | 78 if (pos_ > 0) return pos_ - 1; |
| 79 UNREACHABLE(); | 79 UNREACHABLE(); |
| 80 return 0; | 80 return 0; |
| 81 } | 81 } |
| (...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 960 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 960 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
| 961 state_.written_position = state_.current_position; | 961 state_.written_position = state_.current_position; |
| 962 written = true; | 962 written = true; |
| 963 } | 963 } |
| 964 | 964 |
| 965 // Return whether something was written. | 965 // Return whether something was written. |
| 966 return written; | 966 return written; |
| 967 } | 967 } |
| 968 | 968 |
| 969 } } // namespace v8::internal | 969 } } // namespace v8::internal |
| OLD | NEW |