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

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

Issue 13587008: Updated VM stacktrace support (20898) with strndup impl. (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
« no previous file with comments | « runtime/platform/c99_support_win.h ('k') | runtime/vm/debugger.h » ('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) 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 "vm/code_generator.h" 5 #include "vm/code_generator.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/ast.h" 8 #include "vm/ast.h"
9 #include "vm/bigint_operations.h" 9 #include "vm/bigint_operations.h"
10 #include "vm/code_patcher.h" 10 #include "vm/code_patcher.h"
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 Dart_IsolateInterruptCallback callback = isolate->InterruptCallback(); 1249 Dart_IsolateInterruptCallback callback = isolate->InterruptCallback();
1250 if (callback) { 1250 if (callback) {
1251 if ((*callback)()) { 1251 if ((*callback)()) {
1252 return; 1252 return;
1253 } else { 1253 } else {
1254 // TODO(turnidge): Unwind the stack. 1254 // TODO(turnidge): Unwind the stack.
1255 UNIMPLEMENTED(); 1255 UNIMPLEMENTED();
1256 } 1256 }
1257 } 1257 }
1258 } 1258 }
1259 if (interrupt_bits & Isolate::kVmStatusInterrupt) {
1260 Dart_IsolateInterruptCallback callback = isolate->VmStatsCallback();
1261 if (callback) {
1262 (*callback)();
1263 }
1264 }
1259 } 1265 }
1260 1266
1261 1267
1262 DEFINE_RUNTIME_ENTRY(TraceICCall, 2) { 1268 DEFINE_RUNTIME_ENTRY(TraceICCall, 2) {
1263 ASSERT(arguments.ArgCount() == 1269 ASSERT(arguments.ArgCount() ==
1264 kTraceICCallRuntimeEntry.argument_count()); 1270 kTraceICCallRuntimeEntry.argument_count());
1265 const ICData& ic_data = ICData::CheckedHandle(arguments.ArgAt(0)); 1271 const ICData& ic_data = ICData::CheckedHandle(arguments.ArgAt(0));
1266 const Function& function = Function::CheckedHandle(arguments.ArgAt(1)); 1272 const Function& function = Function::CheckedHandle(arguments.ArgAt(1));
1267 DartFrameIterator iterator; 1273 DartFrameIterator iterator;
1268 StackFrame* frame = iterator.NextFrame(); 1274 StackFrame* frame = iterator.NextFrame();
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
1719 // Arg1: Value that is being stored. 1725 // Arg1: Value that is being stored.
1720 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) { 1726 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) {
1721 ASSERT(arguments.ArgCount() == kUpdateFieldCidRuntimeEntry.argument_count()); 1727 ASSERT(arguments.ArgCount() == kUpdateFieldCidRuntimeEntry.argument_count());
1722 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); 1728 const Field& field = Field::CheckedHandle(arguments.ArgAt(0));
1723 const Object& value = Object::Handle(arguments.ArgAt(1)); 1729 const Object& value = Object::Handle(arguments.ArgAt(1));
1724 1730
1725 field.UpdateCid(Class::Handle(value.clazz()).id()); 1731 field.UpdateCid(Class::Handle(value.clazz()).id());
1726 } 1732 }
1727 1733
1728 } // namespace dart 1734 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/platform/c99_support_win.h ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698