| 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 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1967 void Assembler::stop(const char* msg, uint32_t code) { | 1967 void Assembler::stop(const char* msg, uint32_t code) { |
| 1968 DCHECK(code > kMaxWatchpointCode); | 1968 DCHECK(code > kMaxWatchpointCode); |
| 1969 DCHECK(code <= kMaxStopCode); | 1969 DCHECK(code <= kMaxStopCode); |
| 1970 #if V8_HOST_ARCH_MIPS | 1970 #if V8_HOST_ARCH_MIPS |
| 1971 break_(0x54321); | 1971 break_(0x54321); |
| 1972 #else // V8_HOST_ARCH_MIPS | 1972 #else // V8_HOST_ARCH_MIPS |
| 1973 BlockTrampolinePoolFor(2); | 1973 BlockTrampolinePoolFor(2); |
| 1974 // The Simulator will handle the stop instruction and get the message address. | 1974 // The Simulator will handle the stop instruction and get the message address. |
| 1975 // On MIPS stop() is just a special kind of break_(). | 1975 // On MIPS stop() is just a special kind of break_(). |
| 1976 break_(code, true); | 1976 break_(code, true); |
| 1977 emit(reinterpret_cast<Instr>(msg)); | 1977 // Do not embed the message string address! We used to do this, but that |
| 1978 // made snapshots created from position-independent executable builds |
| 1979 // non-deterministic. |
| 1980 // TODO(yangguo): remove this field entirely. |
| 1981 nop(); |
| 1978 #endif | 1982 #endif |
| 1979 } | 1983 } |
| 1980 | 1984 |
| 1981 | 1985 |
| 1982 void Assembler::tge(Register rs, Register rt, uint16_t code) { | 1986 void Assembler::tge(Register rs, Register rt, uint16_t code) { |
| 1983 DCHECK(is_uint10(code)); | 1987 DCHECK(is_uint10(code)); |
| 1984 Instr instr = SPECIAL | TGE | rs.code() << kRsShift | 1988 Instr instr = SPECIAL | TGE | rs.code() << kRsShift |
| 1985 | rt.code() << kRtShift | code << 6; | 1989 | rt.code() << kRtShift | code << 6; |
| 1986 emit(instr); | 1990 emit(instr); |
| 1987 } | 1991 } |
| (...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3188 | 3192 |
| 3189 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3193 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
| 3190 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); | 3194 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); |
| 3191 } | 3195 } |
| 3192 } | 3196 } |
| 3193 | 3197 |
| 3194 } // namespace internal | 3198 } // namespace internal |
| 3195 } // namespace v8 | 3199 } // namespace v8 |
| 3196 | 3200 |
| 3197 #endif // V8_TARGET_ARCH_MIPS | 3201 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |