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

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

Issue 120723003: Refactors CPU feature detection. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Cleanup Created 6 years, 11 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_ARM) 10 #if defined(TARGET_ARCH_ARM)
11 11
12 // Only build the simulator if not compiling for real ARM hardware. 12 // Only build the simulator if not compiling for real ARM hardware.
13 #if !defined(HOST_ARCH_ARM) 13 #if !defined(HOST_ARCH_ARM)
14 14
15 #include "vm/simulator.h" 15 #include "vm/simulator.h"
16 16
17 #include "vm/assembler.h" 17 #include "vm/assembler.h"
18 #include "vm/constants_arm.h" 18 #include "vm/constants_arm.h"
19 #include "vm/cpu.h"
19 #include "vm/disassembler.h" 20 #include "vm/disassembler.h"
20 #include "vm/native_arguments.h" 21 #include "vm/native_arguments.h"
21 #include "vm/stack_frame.h" 22 #include "vm/stack_frame.h"
22 #include "vm/thread.h" 23 #include "vm/thread.h"
23 24
24 namespace dart { 25 namespace dart {
25 26
26 DEFINE_FLAG(bool, trace_sim, false, "Trace simulator execution."); 27 DEFINE_FLAG(bool, trace_sim, false, "Trace simulator execution.");
27 DEFINE_FLAG(int, stop_sim_at, 0, "Address to stop simulator at."); 28 DEFINE_FLAG(int, stop_sim_at, 0, "Address to stop simulator at.");
28 29
(...skipping 3695 matching lines...) Expand 10 before | Expand all | Expand 10 after
3724 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); 3725 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception));
3725 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); 3726 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace));
3726 buf->Longjmp(); 3727 buf->Longjmp();
3727 } 3728 }
3728 3729
3729 } // namespace dart 3730 } // namespace dart
3730 3731
3731 #endif // !defined(HOST_ARCH_ARM) 3732 #endif // !defined(HOST_ARCH_ARM)
3732 3733
3733 #endif // defined TARGET_ARCH_ARM 3734 #endif // defined TARGET_ARCH_ARM
OLDNEW
« runtime/vm/service.cc ('K') | « runtime/vm/service.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698