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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 StackFrame* caller_frame = iterator.NextFrame(); | 807 StackFrame* caller_frame = iterator.NextFrame(); |
808 ASSERT(caller_frame != NULL); | 808 ASSERT(caller_frame != NULL); |
809 uword orig_stub = | 809 uword orig_stub = |
810 isolate->debugger()->GetPatchedStubAddress(caller_frame->pc()); | 810 isolate->debugger()->GetPatchedStubAddress(caller_frame->pc()); |
811 isolate->debugger()->SignalBpReached(); | 811 isolate->debugger()->SignalBpReached(); |
812 ASSERT((orig_stub & kSmiTagMask) == kSmiTag); | 812 ASSERT((orig_stub & kSmiTagMask) == kSmiTag); |
813 arguments.SetReturn(Smi::Handle(reinterpret_cast<RawSmi*>(orig_stub))); | 813 arguments.SetReturn(Smi::Handle(reinterpret_cast<RawSmi*>(orig_stub))); |
814 } | 814 } |
815 | 815 |
816 | 816 |
817 // Gets called from debug stub when code reaches a breakpoint. | |
818 DEFINE_RUNTIME_ENTRY(BreakpointDynamicHandler, 0) { | |
819 ASSERT(isolate->debugger() != NULL); | |
820 isolate->debugger()->SignalBpReached(); | |
821 } | |
822 | |
823 | |
824 DEFINE_RUNTIME_ENTRY(SingleStepHandler, 0) { | 817 DEFINE_RUNTIME_ENTRY(SingleStepHandler, 0) { |
825 ASSERT(isolate->debugger() != NULL); | 818 ASSERT(isolate->debugger() != NULL); |
826 isolate->debugger()->SingleStepCallback(); | 819 isolate->debugger()->SingleStepCallback(); |
827 } | 820 } |
828 | 821 |
829 | 822 |
830 static RawFunction* InlineCacheMissHandler( | 823 static RawFunction* InlineCacheMissHandler( |
831 const GrowableArray<const Instance*>& args, | 824 const GrowableArray<const Instance*>& args, |
832 const ICData& ic_data) { | 825 const ICData& ic_data) { |
833 const Instance& receiver = *args[0]; | 826 const Instance& receiver = *args[0]; |
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1706 // of the given value. | 1699 // of the given value. |
1707 // Arg0: Field object; | 1700 // Arg0: Field object; |
1708 // Arg1: Value that is being stored. | 1701 // Arg1: Value that is being stored. |
1709 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) { | 1702 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) { |
1710 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); | 1703 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); |
1711 const Object& value = Object::Handle(arguments.ArgAt(1)); | 1704 const Object& value = Object::Handle(arguments.ArgAt(1)); |
1712 field.UpdateGuardedCidAndLength(value); | 1705 field.UpdateGuardedCidAndLength(value); |
1713 } | 1706 } |
1714 | 1707 |
1715 } // namespace dart | 1708 } // namespace dart |
OLD | NEW |