Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Side by Side Diff: runtime/vm/simulator_mips.cc

Issue 1065773003: Fix mint shifting by zero on MIPS (issue 23117). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/simulator_arm64.cc ('k') | tests/language/vm/regress_23117_vm_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include <setjmp.h> // NOLINT 5 #include <setjmp.h> // NOLINT
6 #include <stdlib.h> 6 #include <stdlib.h>
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #if defined(TARGET_ARCH_MIPS) 9 #if defined(TARGET_ARCH_MIPS)
10 10
(...skipping 1964 matching lines...) Expand 10 before | Expand all | Expand 10 after
1975 UnimplementedInstruction(instr); 1975 UnimplementedInstruction(instr);
1976 break; 1976 break;
1977 } 1977 }
1978 } 1978 }
1979 } 1979 }
1980 } 1980 }
1981 1981
1982 1982
1983 void Simulator::InstructionDecode(Instr* instr) { 1983 void Simulator::InstructionDecode(Instr* instr) {
1984 if (IsTracingExecution()) { 1984 if (IsTracingExecution()) {
1985 OS::Print("%" Pu64, icount_); 1985 OS::Print("%" Pu64 " ", icount_);
1986 const uword start = reinterpret_cast<uword>(instr); 1986 const uword start = reinterpret_cast<uword>(instr);
1987 const uword end = start + Instr::kInstrSize; 1987 const uword end = start + Instr::kInstrSize;
1988 Disassembler::Disassemble(start, end); 1988 Disassembler::Disassemble(start, end);
1989 } 1989 }
1990 1990
1991 switch (instr->OpcodeField()) { 1991 switch (instr->OpcodeField()) {
1992 case SPECIAL: { 1992 case SPECIAL: {
1993 DecodeSpecial(instr); 1993 DecodeSpecial(instr);
1994 break; 1994 break;
1995 } 1995 }
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
2487 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); 2487 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception));
2488 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); 2488 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace));
2489 buf->Longjmp(); 2489 buf->Longjmp();
2490 } 2490 }
2491 2491
2492 } // namespace dart 2492 } // namespace dart
2493 2493
2494 #endif // !defined(HOST_ARCH_MIPS) 2494 #endif // !defined(HOST_ARCH_MIPS)
2495 2495
2496 #endif // defined TARGET_ARCH_MIPS 2496 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/simulator_arm64.cc ('k') | tests/language/vm/regress_23117_vm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698