| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_macros.h" | 7 #include "vm/assembler_macros.h" |
| 8 #include "vm/ast.h" | 8 #include "vm/ast.h" |
| 9 #include "vm/code_patcher.h" | 9 #include "vm/code_patcher.h" |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1290 if (interrupt_bits & Isolate::kStoreBufferInterrupt) { | 1290 if (interrupt_bits & Isolate::kStoreBufferInterrupt) { |
| 1291 if (FLAG_verbose_gc) { | 1291 if (FLAG_verbose_gc) { |
| 1292 OS::PrintErr("Scavenge scheduled by store buffer overflow.\n"); | 1292 OS::PrintErr("Scavenge scheduled by store buffer overflow.\n"); |
| 1293 } | 1293 } |
| 1294 isolate->heap()->CollectGarbage(Heap::kNew); | 1294 isolate->heap()->CollectGarbage(Heap::kNew); |
| 1295 } | 1295 } |
| 1296 if (interrupt_bits & Isolate::kMessageInterrupt) { | 1296 if (interrupt_bits & Isolate::kMessageInterrupt) { |
| 1297 isolate->message_handler()->HandleOOBMessages(); | 1297 isolate->message_handler()->HandleOOBMessages(); |
| 1298 } | 1298 } |
| 1299 if (interrupt_bits & Isolate::kApiInterrupt) { | 1299 if (interrupt_bits & Isolate::kApiInterrupt) { |
| 1300 // Signal isolate interrupt event. |
| 1301 Debugger::SignalIsolateEvent(Debugger::kIsolateInterrupted); |
| 1302 |
| 1300 Dart_IsolateInterruptCallback callback = isolate->InterruptCallback(); | 1303 Dart_IsolateInterruptCallback callback = isolate->InterruptCallback(); |
| 1301 if (callback) { | 1304 if (callback) { |
| 1302 if ((*callback)()) { | 1305 if ((*callback)()) { |
| 1303 return; | 1306 return; |
| 1304 } else { | 1307 } else { |
| 1305 // TODO(turnidge): Unwind the stack. | 1308 // TODO(turnidge): Unwind the stack. |
| 1306 UNIMPLEMENTED(); | 1309 UNIMPLEMENTED(); |
| 1307 } | 1310 } |
| 1308 } | 1311 } |
| 1309 } | 1312 } |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1702 current->slot(), | 1705 current->slot(), |
| 1703 current->value()); | 1706 current->value()); |
| 1704 } | 1707 } |
| 1705 | 1708 |
| 1706 delete current; | 1709 delete current; |
| 1707 } | 1710 } |
| 1708 } | 1711 } |
| 1709 | 1712 |
| 1710 | 1713 |
| 1711 } // namespace dart | 1714 } // namespace dart |
| OLD | NEW |