OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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/code_index_table.h" | 7 #include "vm/code_index_table.h" |
8 #include "vm/code_patcher.h" | 8 #include "vm/code_patcher.h" |
9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
10 #include "vm/dart_api_impl.h" | 10 #include "vm/dart_api_impl.h" |
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 // Use the preallocated stack overflow exception to avoid calling | 878 // Use the preallocated stack overflow exception to avoid calling |
879 // into dart code. | 879 // into dart code. |
880 const Instance& exception = | 880 const Instance& exception = |
881 Instance::Handle(isolate->object_store()->stack_overflow()); | 881 Instance::Handle(isolate->object_store()->stack_overflow()); |
882 Exceptions::Throw(exception); | 882 Exceptions::Throw(exception); |
883 UNREACHABLE(); | 883 UNREACHABLE(); |
884 } | 884 } |
885 | 885 |
886 uword interrupt_bits = isolate->GetAndClearInterrupts(); | 886 uword interrupt_bits = isolate->GetAndClearInterrupts(); |
887 if (interrupt_bits & Isolate::kMessageInterrupt) { | 887 if (interrupt_bits & Isolate::kMessageInterrupt) { |
888 UNIMPLEMENTED(); | 888 // UNIMPLEMENTED(); |
889 } | 889 } |
890 if (interrupt_bits & Isolate::kApiInterrupt) { | 890 if (interrupt_bits & Isolate::kApiInterrupt) { |
891 Dart_IsolateInterruptCallback callback = isolate->InterruptCallback(); | 891 Dart_IsolateInterruptCallback callback = isolate->InterruptCallback(); |
892 if (callback) { | 892 if (callback) { |
893 if ((*callback)()) { | 893 if ((*callback)()) { |
894 return; | 894 return; |
895 } else { | 895 } else { |
896 // TODO(turnidge): Unwind the stack. | 896 // TODO(turnidge): Unwind the stack. |
897 UNIMPLEMENTED(); | 897 UNIMPLEMENTED(); |
898 } | 898 } |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 } | 1109 } |
1110 } | 1110 } |
1111 } | 1111 } |
1112 // The cache is null terminated, therefore the loop above should never | 1112 // The cache is null terminated, therefore the loop above should never |
1113 // terminate by itself. | 1113 // terminate by itself. |
1114 UNREACHABLE(); | 1114 UNREACHABLE(); |
1115 return Code::null(); | 1115 return Code::null(); |
1116 } | 1116 } |
1117 | 1117 |
1118 } // namespace dart | 1118 } // namespace dart |
OLD | NEW |