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

Side by Side Diff: runtime/vm/simulator_arm64.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_arm.cc ('k') | runtime/vm/simulator_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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64) 9 #if defined(TARGET_ARCH_ARM64)
10 10
(...skipping 3282 matching lines...) Expand 10 before | Expand all | Expand 10 after
3293 } else { 3293 } else {
3294 UnimplementedInstruction(instr); 3294 UnimplementedInstruction(instr);
3295 } 3295 }
3296 } 3296 }
3297 3297
3298 3298
3299 // Executes the current instruction. 3299 // Executes the current instruction.
3300 void Simulator::InstructionDecode(Instr* instr) { 3300 void Simulator::InstructionDecode(Instr* instr) {
3301 pc_modified_ = false; 3301 pc_modified_ = false;
3302 if (IsTracingExecution()) { 3302 if (IsTracingExecution()) {
3303 OS::Print("%" Pu64, icount_); 3303 OS::Print("%" Pu64 " ", icount_);
3304 const uword start = reinterpret_cast<uword>(instr); 3304 const uword start = reinterpret_cast<uword>(instr);
3305 const uword end = start + Instr::kInstrSize; 3305 const uword end = start + Instr::kInstrSize;
3306 Disassembler::Disassemble(start, end); 3306 Disassembler::Disassemble(start, end);
3307 } 3307 }
3308 3308
3309 if (instr->IsDPImmediateOp()) { 3309 if (instr->IsDPImmediateOp()) {
3310 DecodeDPImmediate(instr); 3310 DecodeDPImmediate(instr);
3311 } else if (instr->IsCompareBranchOp()) { 3311 } else if (instr->IsCompareBranchOp()) {
3312 DecodeCompareBranch(instr); 3312 DecodeCompareBranch(instr);
3313 } else if (instr->IsLoadStoreOp()) { 3313 } else if (instr->IsLoadStoreOp()) {
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
3494 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception)); 3494 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception));
3495 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace)); 3495 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace));
3496 buf->Longjmp(); 3496 buf->Longjmp();
3497 } 3497 }
3498 3498
3499 } // namespace dart 3499 } // namespace dart
3500 3500
3501 #endif // !defined(HOST_ARCH_ARM64) 3501 #endif // !defined(HOST_ARCH_ARM64)
3502 3502
3503 #endif // defined TARGET_ARCH_ARM64 3503 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/simulator_arm.cc ('k') | runtime/vm/simulator_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698