OLD | NEW |
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 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 | 798 |
799 // Result of an invoke may be an unhandled exception, in which case we | 799 // Result of an invoke may be an unhandled exception, in which case we |
800 // rethrow it. | 800 // rethrow it. |
801 static void CheckResultError(const Object& result) { | 801 static void CheckResultError(const Object& result) { |
802 if (result.IsError()) { | 802 if (result.IsError()) { |
803 Exceptions::PropagateError(Error::Cast(result)); | 803 Exceptions::PropagateError(Error::Cast(result)); |
804 } | 804 } |
805 } | 805 } |
806 | 806 |
807 | 807 |
| 808 // Gets called from debug stub when code reaches a breakpoint before |
| 809 // calling a closure. |
| 810 DEFINE_RUNTIME_ENTRY(BreakpointClosureHandler, 0) { |
| 811 ASSERT(arguments.ArgCount() == |
| 812 kBreakpointClosureHandlerRuntimeEntry.argument_count()); |
| 813 ASSERT(isolate->debugger() != NULL); |
| 814 isolate->debugger()->SignalBpReached(); |
| 815 } |
| 816 |
| 817 |
808 // Gets called from debug stub when code reaches a breakpoint. | 818 // Gets called from debug stub when code reaches a breakpoint. |
809 DEFINE_RUNTIME_ENTRY(BreakpointStaticHandler, 0) { | 819 DEFINE_RUNTIME_ENTRY(BreakpointStaticHandler, 0) { |
810 ASSERT(arguments.ArgCount() == | 820 ASSERT(arguments.ArgCount() == |
811 kBreakpointStaticHandlerRuntimeEntry.argument_count()); | 821 kBreakpointStaticHandlerRuntimeEntry.argument_count()); |
812 ASSERT(isolate->debugger() != NULL); | 822 ASSERT(isolate->debugger() != NULL); |
813 isolate->debugger()->SignalBpReached(); | 823 isolate->debugger()->SignalBpReached(); |
814 // Make sure the static function that is about to be called is | 824 // Make sure the static function that is about to be called is |
815 // compiled. The stub will jump to the entry point without any | 825 // compiled. The stub will jump to the entry point without any |
816 // further tests. | 826 // further tests. |
817 DartFrameIterator iterator; | 827 DartFrameIterator iterator; |
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1749 // Arg1: Value that is being stored. | 1759 // Arg1: Value that is being stored. |
1750 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) { | 1760 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) { |
1751 ASSERT(arguments.ArgCount() == kUpdateFieldCidRuntimeEntry.argument_count()); | 1761 ASSERT(arguments.ArgCount() == kUpdateFieldCidRuntimeEntry.argument_count()); |
1752 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); | 1762 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); |
1753 const Object& value = Object::Handle(arguments.ArgAt(1)); | 1763 const Object& value = Object::Handle(arguments.ArgAt(1)); |
1754 | 1764 |
1755 field.UpdateCid(Class::Handle(value.clazz()).id()); | 1765 field.UpdateCid(Class::Handle(value.clazz()).id()); |
1756 } | 1766 } |
1757 | 1767 |
1758 } // namespace dart | 1768 } // namespace dart |
OLD | NEW |