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

Side by Side Diff: src/a64/simulator-a64.h

Issue 132233055: Consistenly use stderr for printing simulator and debug messages (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | « src/a64/macro-assembler-a64.h ('k') | src/a64/simulator-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 uint8_t value_[kSizeInBytes]; 187 uint8_t value_[kSizeInBytes];
188 }; 188 };
189 typedef SimRegisterBase<kXRegSizeInBytes> SimRegister; // r0-r31 189 typedef SimRegisterBase<kXRegSizeInBytes> SimRegister; // r0-r31
190 typedef SimRegisterBase<kDRegSizeInBytes> SimFPRegister; // v0-v31 190 typedef SimRegisterBase<kDRegSizeInBytes> SimFPRegister; // v0-v31
191 191
192 192
193 class Simulator : public DecoderVisitor { 193 class Simulator : public DecoderVisitor {
194 public: 194 public:
195 explicit Simulator(Decoder* decoder, 195 explicit Simulator(Decoder* decoder,
196 Isolate* isolate = NULL, 196 Isolate* isolate = NULL,
197 FILE* stream = stdout); 197 FILE* stream = stderr);
198 ~Simulator(); 198 ~Simulator();
199 199
200 // System functions. 200 // System functions.
201 201
202 static void Initialize(Isolate* isolate); 202 static void Initialize(Isolate* isolate);
203 203
204 static Simulator* current(v8::internal::Isolate* isolate); 204 static Simulator* current(v8::internal::Isolate* isolate);
205 205
206 // Call an arbitrary function taking an arbitrary number of arguments. The 206 // Call an arbitrary function taking an arbitrary number of arguments. The
207 // varargs list must be a set of arguments with type CallArgument, and 207 // varargs list must be a set of arguments with type CallArgument, and
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 static inline void UnregisterCTryCatch() { 850 static inline void UnregisterCTryCatch() {
851 Simulator::current(Isolate::Current())->PopAddress(); 851 Simulator::current(Isolate::Current())->PopAddress();
852 } 852 }
853 }; 853 };
854 854
855 #endif // !defined(USE_SIMULATOR) 855 #endif // !defined(USE_SIMULATOR)
856 856
857 } } // namespace v8::internal 857 } } // namespace v8::internal
858 858
859 #endif // V8_A64_SIMULATOR_A64_H_ 859 #endif // V8_A64_SIMULATOR_A64_H_
OLDNEW
« no previous file with comments | « src/a64/macro-assembler-a64.h ('k') | src/a64/simulator-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698