Chromium Code Reviews| 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 2247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2258 code <= kMaxStopCode && | 2258 code <= kMaxStopCode && |
| 2259 code > kMaxWatchpointCode) || | 2259 code > kMaxWatchpointCode) || |
| 2260 (!break_as_stop && | 2260 (!break_as_stop && |
| 2261 (code > kMaxStopCode || | 2261 (code > kMaxStopCode || |
| 2262 code <= kMaxWatchpointCode))); | 2262 code <= kMaxWatchpointCode))); |
| 2263 Instr break_instr = SPECIAL | BREAK | (code << 6); | 2263 Instr break_instr = SPECIAL | BREAK | (code << 6); |
| 2264 emit(break_instr); | 2264 emit(break_instr); |
| 2265 } | 2265 } |
| 2266 | 2266 |
| 2267 | 2267 |
| 2268 void Assembler::stop(const char* msg, uint32_t code) { | 2268 void Assembler::stop(const char* msg, uint32_t code) { |
|
petermarshall
2017/03/09 11:37:35
msg is no longer used at all - could it be removed
| |
| 2269 DCHECK(code > kMaxWatchpointCode); | 2269 DCHECK(code > kMaxWatchpointCode); |
| 2270 DCHECK(code <= kMaxStopCode); | 2270 DCHECK(code <= kMaxStopCode); |
| 2271 #if defined(V8_HOST_ARCH_MIPS) || defined(V8_HOST_ARCH_MIPS64) | 2271 #if defined(V8_HOST_ARCH_MIPS) || defined(V8_HOST_ARCH_MIPS64) |
| 2272 break_(0x54321); | 2272 break_(0x54321); |
| 2273 #else // V8_HOST_ARCH_MIPS | 2273 #else // V8_HOST_ARCH_MIPS |
| 2274 BlockTrampolinePoolFor(3); | 2274 BlockTrampolinePoolFor(3); |
| 2275 // The Simulator will handle the stop instruction and get the message address. | |
| 2276 // On MIPS stop() is just a special kind of break_(). | |
| 2277 break_(code, true); | 2275 break_(code, true); |
| 2278 // Do not embed the message string address! We used to do this, but that | |
| 2279 // made snapshots created from position-independent executable builds | |
| 2280 // non-deterministic. | |
| 2281 // TODO(yangguo): remove this field entirely. | |
| 2282 nop(); | |
| 2283 #endif | 2276 #endif |
| 2284 } | 2277 } |
| 2285 | 2278 |
| 2286 | 2279 |
| 2287 void Assembler::tge(Register rs, Register rt, uint16_t code) { | 2280 void Assembler::tge(Register rs, Register rt, uint16_t code) { |
| 2288 DCHECK(is_uint10(code)); | 2281 DCHECK(is_uint10(code)); |
| 2289 Instr instr = SPECIAL | TGE | rs.code() << kRsShift | 2282 Instr instr = SPECIAL | TGE | rs.code() << kRsShift |
| 2290 | rt.code() << kRtShift | code << 6; | 2283 | rt.code() << kRtShift | code << 6; |
| 2291 emit(instr); | 2284 emit(instr); |
| 2292 } | 2285 } |
| (...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3532 | 3525 |
| 3533 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3526 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
| 3534 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize); | 3527 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize); |
| 3535 } | 3528 } |
| 3536 } | 3529 } |
| 3537 | 3530 |
| 3538 } // namespace internal | 3531 } // namespace internal |
| 3539 } // namespace v8 | 3532 } // namespace v8 |
| 3540 | 3533 |
| 3541 #endif // V8_TARGET_ARCH_MIPS64 | 3534 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |