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

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

Issue 15412005: Fix broken Mac build. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 | « no previous file | no next file » | 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_ARM) 10 #if defined(TARGET_ARCH_ARM)
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 bool is_optimized, 268 bool is_optimized,
269 bool is_inlined) { 269 bool is_inlined) {
270 const Script& script = Script::Handle(function.script()); 270 const Script& script = Script::Handle(function.script());
271 const String& func_name = String::Handle(function.QualifiedUserVisibleName()); 271 const String& func_name = String::Handle(function.QualifiedUserVisibleName());
272 const String& url = String::Handle(script.url()); 272 const String& url = String::Handle(script.url());
273 intptr_t line = -1; 273 intptr_t line = -1;
274 intptr_t column = -1; 274 intptr_t column = -1;
275 if (token_pos >= 0) { 275 if (token_pos >= 0) {
276 script.GetTokenLocation(token_pos, &line, &column); 276 script.GetTokenLocation(token_pos, &line, &column);
277 } 277 }
278 OS::Print("pc=0x%"Px" fp=0x%"Px" sp=0x%"Px" %s%s (%s:%d:%d)\n", 278 OS::Print("pc=0x%"Px" fp=0x%"Px" sp=0x%"Px" %s%s (%s:%"Pd":%"Pd")\n",
279 pc, fp, sp, 279 pc, fp, sp,
280 is_optimized ? (is_inlined ? "inlined " : "optimized ") : "", 280 is_optimized ? (is_inlined ? "inlined " : "optimized ") : "",
281 func_name.ToCString(), 281 func_name.ToCString(),
282 url.ToCString(), 282 url.ToCString(),
283 line, column); 283 line, column);
284 } 284 }
285 285
286 286
287 void SimulatorDebugger::PrintBacktrace() { 287 void SimulatorDebugger::PrintBacktrace() {
288 StackFrameIterator frames(sim_->get_register(FP), 288 StackFrameIterator frames(sim_->get_register(FP),
(...skipping 2721 matching lines...) Expand 10 before | Expand all | Expand 10 after
3010 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); 3010 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace));
3011 } 3011 }
3012 buf->Longjmp(); 3012 buf->Longjmp();
3013 } 3013 }
3014 3014
3015 } // namespace dart 3015 } // namespace dart
3016 3016
3017 #endif // !defined(HOST_ARCH_ARM) 3017 #endif // !defined(HOST_ARCH_ARM)
3018 3018
3019 #endif // defined TARGET_ARCH_ARM 3019 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698