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

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

Issue 175533003: Handle stepping requests after isolate interrupt event (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 | « no previous file | 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 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after
1195 if (interrupt_bits & Isolate::kStoreBufferInterrupt) { 1195 if (interrupt_bits & Isolate::kStoreBufferInterrupt) {
1196 if (FLAG_verbose_gc) { 1196 if (FLAG_verbose_gc) {
1197 OS::PrintErr("Scavenge scheduled by store buffer overflow.\n"); 1197 OS::PrintErr("Scavenge scheduled by store buffer overflow.\n");
1198 } 1198 }
1199 isolate->heap()->CollectGarbage(Heap::kNew); 1199 isolate->heap()->CollectGarbage(Heap::kNew);
1200 } 1200 }
1201 if (interrupt_bits & Isolate::kMessageInterrupt) { 1201 if (interrupt_bits & Isolate::kMessageInterrupt) {
1202 isolate->message_handler()->HandleOOBMessages(); 1202 isolate->message_handler()->HandleOOBMessages();
1203 } 1203 }
1204 if (interrupt_bits & Isolate::kApiInterrupt) { 1204 if (interrupt_bits & Isolate::kApiInterrupt) {
1205 // Signal isolate interrupt event. 1205 // Signal isolate interrupt event.
1206 Debugger::SignalIsolateEvent(Debugger::kIsolateInterrupted); 1206 Debugger::SignalIsolateInterrupted();
1207 1207
1208 Dart_IsolateInterruptCallback callback = isolate->InterruptCallback(); 1208 Dart_IsolateInterruptCallback callback = isolate->InterruptCallback();
1209 if (callback) { 1209 if (callback) {
1210 if ((*callback)()) { 1210 if ((*callback)()) {
1211 return; 1211 return;
1212 } else { 1212 } else {
1213 // TODO(turnidge): Unwind the stack. 1213 // TODO(turnidge): Unwind the stack.
1214 UNIMPLEMENTED(); 1214 UNIMPLEMENTED();
1215 } 1215 }
1216 } 1216 }
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1593 // of the given value. 1593 // of the given value.
1594 // Arg0: Field object; 1594 // Arg0: Field object;
1595 // Arg1: Value that is being stored. 1595 // Arg1: Value that is being stored.
1596 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) { 1596 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) {
1597 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); 1597 const Field& field = Field::CheckedHandle(arguments.ArgAt(0));
1598 const Object& value = Object::Handle(arguments.ArgAt(1)); 1598 const Object& value = Object::Handle(arguments.ArgAt(1));
1599 field.UpdateGuardedCidAndLength(value); 1599 field.UpdateGuardedCidAndLength(value);
1600 } 1600 }
1601 1601
1602 } // namespace dart 1602 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698