| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 fp, | 189 fp, |
| 190 ra | 190 ra |
| 191 }; | 191 }; |
| 192 return kRegisters[num]; | 192 return kRegisters[num]; |
| 193 } | 193 } |
| 194 | 194 |
| 195 | 195 |
| 196 // ----------------------------------------------------------------------------- | 196 // ----------------------------------------------------------------------------- |
| 197 // Implementation of RelocInfo. | 197 // Implementation of RelocInfo. |
| 198 | 198 |
| 199 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask | | 199 const int RelocInfo::kInternalReferenceMask = |
| 200 1 << RelocInfo::INTERNAL_REFERENCE | | 200 1 << RelocInfo::INTERNAL_REFERENCE | |
| 201 1 << RelocInfo::INTERNAL_REFERENCE_ENCODED; | 201 1 << RelocInfo::INTERNAL_REFERENCE_ENCODED; |
| 202 const int RelocInfo::kApplyMask = |
| 203 RelocInfo::kCodeTargetMask | RelocInfo::kInternalReferenceMask; |
| 202 | 204 |
| 203 | 205 |
| 204 bool RelocInfo::IsCodedSpecially() { | 206 bool RelocInfo::IsCodedSpecially() { |
| 205 // The deserializer needs to know whether a pointer is specially coded. Being | 207 // The deserializer needs to know whether a pointer is specially coded. Being |
| 206 // specially coded on MIPS means that it is a lui/ori instruction, and that is | 208 // specially coded on MIPS means that it is a lui/ori instruction, and that is |
| 207 // always the case inside code objects. | 209 // always the case inside code objects. |
| 208 return true; | 210 return true; |
| 209 } | 211 } |
| 210 | 212 |
| 211 | 213 |
| (...skipping 2538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2750 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { | 2752 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { |
| 2751 // No out-of-line constant pool support. | 2753 // No out-of-line constant pool support. |
| 2752 DCHECK(!FLAG_enable_ool_constant_pool); | 2754 DCHECK(!FLAG_enable_ool_constant_pool); |
| 2753 return; | 2755 return; |
| 2754 } | 2756 } |
| 2755 | 2757 |
| 2756 | 2758 |
| 2757 } } // namespace v8::internal | 2759 } } // namespace v8::internal |
| 2758 | 2760 |
| 2759 #endif // V8_TARGET_ARCH_MIPS | 2761 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |