| 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 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 uword orig_stub = | 814 uword orig_stub = |
| 815 isolate->debugger()->GetPatchedStubAddress(caller_frame->pc()); | 815 isolate->debugger()->GetPatchedStubAddress(caller_frame->pc()); |
| 816 isolate->debugger()->SignalBpReached(); | 816 isolate->debugger()->SignalBpReached(); |
| 817 ASSERT((orig_stub & kSmiTagMask) == kSmiTag); | 817 ASSERT((orig_stub & kSmiTagMask) == kSmiTag); |
| 818 arguments.SetReturn(Smi::Handle(reinterpret_cast<RawSmi*>(orig_stub))); | 818 arguments.SetReturn(Smi::Handle(reinterpret_cast<RawSmi*>(orig_stub))); |
| 819 } | 819 } |
| 820 | 820 |
| 821 | 821 |
| 822 DEFINE_RUNTIME_ENTRY(SingleStepHandler, 0) { | 822 DEFINE_RUNTIME_ENTRY(SingleStepHandler, 0) { |
| 823 ASSERT(isolate->debugger() != NULL); | 823 ASSERT(isolate->debugger() != NULL); |
| 824 isolate->debugger()->SingleStepCallback(); | 824 isolate->debugger()->DebuggerStepCallback(); |
| 825 } | 825 } |
| 826 | 826 |
| 827 | 827 |
| 828 static RawFunction* InlineCacheMissHandler( | 828 static RawFunction* InlineCacheMissHandler( |
| 829 const GrowableArray<const Instance*>& args, | 829 const GrowableArray<const Instance*>& args, |
| 830 const ICData& ic_data) { | 830 const ICData& ic_data) { |
| 831 const Instance& receiver = *args[0]; | 831 const Instance& receiver = *args[0]; |
| 832 const Code& target_code = | 832 const Code& target_code = |
| 833 Code::Handle(ResolveCompileInstanceCallTarget(receiver, ic_data)); | 833 Code::Handle(ResolveCompileInstanceCallTarget(receiver, ic_data)); |
| 834 if (target_code.IsNull()) { | 834 if (target_code.IsNull()) { |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1704 // of the given value. | 1704 // of the given value. |
| 1705 // Arg0: Field object; | 1705 // Arg0: Field object; |
| 1706 // Arg1: Value that is being stored. | 1706 // Arg1: Value that is being stored. |
| 1707 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) { | 1707 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) { |
| 1708 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); | 1708 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); |
| 1709 const Object& value = Object::Handle(arguments.ArgAt(1)); | 1709 const Object& value = Object::Handle(arguments.ArgAt(1)); |
| 1710 field.UpdateGuardedCidAndLength(value); | 1710 field.UpdateGuardedCidAndLength(value); |
| 1711 } | 1711 } |
| 1712 | 1712 |
| 1713 } // namespace dart | 1713 } // namespace dart |
| OLD | NEW |