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

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

Issue 15934025: Enables more VM tests for SIMMIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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/intrinsifier_mips.cc ('k') | runtime/vm/stub_code_mips.cc » ('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 <math.h> // for isnan. 5 #include <math.h> // for isnan.
6 #include <setjmp.h> 6 #include <setjmp.h>
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #if defined(TARGET_ARCH_MIPS) 10 #if defined(TARGET_ARCH_MIPS)
(...skipping 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after
1704 break; 1704 break;
1705 } 1705 }
1706 case LBU: { 1706 case LBU: {
1707 // Format(instr, "lbu 'rt, 'imms('rs)"); 1707 // Format(instr, "lbu 'rt, 'imms('rs)");
1708 int32_t base_val = get_register(instr->RsField()); 1708 int32_t base_val = get_register(instr->RsField());
1709 int32_t imm_val = instr->SImmField(); 1709 int32_t imm_val = instr->SImmField();
1710 uword addr = base_val + imm_val; 1710 uword addr = base_val + imm_val;
1711 if (Simulator::IsIllegalAddress(addr)) { 1711 if (Simulator::IsIllegalAddress(addr)) {
1712 HandleIllegalAccess(addr, instr); 1712 HandleIllegalAccess(addr, instr);
1713 } else { 1713 } else {
1714 int32_t res = ReadBU(addr); 1714 uint32_t res = ReadBU(addr);
1715 set_register(instr->RtField(), res); 1715 set_register(instr->RtField(), res);
1716 } 1716 }
1717 break; 1717 break;
1718 } 1718 }
1719 case LDC1: { 1719 case LDC1: {
1720 // Format(instr, "ldc1 'ft, 'imms('rs)"); 1720 // Format(instr, "ldc1 'ft, 'imms('rs)");
1721 int32_t base_val = get_register(instr->RsField()); 1721 int32_t base_val = get_register(instr->RsField());
1722 int32_t imm_val = instr->SImmField(); 1722 int32_t imm_val = instr->SImmField();
1723 uword addr = base_val + imm_val; 1723 uword addr = base_val + imm_val;
1724 if (Simulator::IsIllegalAddress(addr)) { 1724 if (Simulator::IsIllegalAddress(addr)) {
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
2052 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); 2052 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace));
2053 } 2053 }
2054 buf->Longjmp(); 2054 buf->Longjmp();
2055 } 2055 }
2056 2056
2057 } // namespace dart 2057 } // namespace dart
2058 2058
2059 #endif // !defined(HOST_ARCH_MIPS) 2059 #endif // !defined(HOST_ARCH_MIPS)
2060 2060
2061 #endif // defined TARGET_ARCH_MIPS 2061 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_mips.cc ('k') | runtime/vm/stub_code_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698