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

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

Issue 13884017: Adds support for UseDartApi vm test on MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
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 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after
1675 int32_t imm_val = instr->SImmField(); 1675 int32_t imm_val = instr->SImmField();
1676 uword addr = base_val + imm_val; 1676 uword addr = base_val + imm_val;
1677 if (Simulator::IsIllegalAddress(addr)) { 1677 if (Simulator::IsIllegalAddress(addr)) {
1678 HandleIllegalAccess(addr, instr); 1678 HandleIllegalAccess(addr, instr);
1679 } else { 1679 } else {
1680 int32_t value = get_fregister(instr->FtField()); 1680 int32_t value = get_fregister(instr->FtField());
1681 WriteW(addr, value, instr); 1681 WriteW(addr, value, instr);
1682 } 1682 }
1683 break; 1683 break;
1684 } 1684 }
1685 case XORI: {
1686 // Format(instr, "xori 'rt, 'rs, 'immu");
1687 int32_t rs_val = get_register(instr->RsField());
1688 set_register(instr->RtField(), rs_val ^ instr->UImmField());
1689 break;
1690 break;
1691 }
1685 default: { 1692 default: {
1686 OS::PrintErr("Undecoded instruction: 0x%x at %p\n", 1693 OS::PrintErr("Undecoded instruction: 0x%x at %p\n",
1687 instr->InstructionBits(), instr); 1694 instr->InstructionBits(), instr);
1688 UnimplementedInstruction(instr); 1695 UnimplementedInstruction(instr);
1689 break; 1696 break;
1690 } 1697 }
1691 } 1698 }
1692 pc_ += Instr::kInstrSize; 1699 pc_ += Instr::kInstrSize;
1693 } 1700 }
1694 1701
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1820 // Restore the SP register and return R1:R0. 1827 // Restore the SP register and return R1:R0.
1821 set_register(SP, sp_before_call); 1828 set_register(SP, sp_before_call);
1822 return Utils::LowHighTo64Bits(get_register(V0), get_register(V1)); 1829 return Utils::LowHighTo64Bits(get_register(V0), get_register(V1));
1823 } 1830 }
1824 1831
1825 } // namespace dart 1832 } // namespace dart
1826 1833
1827 #endif // !defined(HOST_ARCH_MIPS) 1834 #endif // !defined(HOST_ARCH_MIPS)
1828 1835
1829 #endif // defined TARGET_ARCH_MIPS 1836 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698