Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(941)

Side by Side Diff: runtime/vm/code_generator.cc

Issue 132793002: Delete obsolete debug stub (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/code_generator.h ('k') | runtime/vm/stub_code.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 if (!function.HasCode()) { 833 if (!function.HasCode()) {
834 const Error& error = Error::Handle(Compiler::CompileFunction(function)); 834 const Error& error = Error::Handle(Compiler::CompileFunction(function));
835 if (!error.IsNull()) { 835 if (!error.IsNull()) {
836 Exceptions::PropagateError(error); 836 Exceptions::PropagateError(error);
837 } 837 }
838 } 838 }
839 arguments.SetReturn(Code::ZoneHandle(function.CurrentCode())); 839 arguments.SetReturn(Code::ZoneHandle(function.CurrentCode()));
840 } 840 }
841 841
842 842
843 // Gets called from debug stub when code reaches a breakpoint at a return
844 // in Dart code.
845 DEFINE_RUNTIME_ENTRY(BreakpointReturnHandler, 0) {
846 ASSERT(isolate->debugger() != NULL);
847 isolate->debugger()->SignalBpReached();
848 }
849
850
851 // Gets called from debug stub when code reaches a breakpoint. 843 // Gets called from debug stub when code reaches a breakpoint.
852 DEFINE_RUNTIME_ENTRY(BreakpointDynamicHandler, 0) { 844 DEFINE_RUNTIME_ENTRY(BreakpointDynamicHandler, 0) {
853 ASSERT(isolate->debugger() != NULL); 845 ASSERT(isolate->debugger() != NULL);
854 isolate->debugger()->SignalBpReached(); 846 isolate->debugger()->SignalBpReached();
855 } 847 }
856 848
857 849
858 DEFINE_RUNTIME_ENTRY(SingleStepHandler, 0) { 850 DEFINE_RUNTIME_ENTRY(SingleStepHandler, 0) {
859 ASSERT(isolate->debugger() != NULL); 851 ASSERT(isolate->debugger() != NULL);
860 isolate->debugger()->SingleStepCallback(); 852 isolate->debugger()->SingleStepCallback();
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
1739 // of the given value. 1731 // of the given value.
1740 // Arg0: Field object; 1732 // Arg0: Field object;
1741 // Arg1: Value that is being stored. 1733 // Arg1: Value that is being stored.
1742 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) { 1734 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) {
1743 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); 1735 const Field& field = Field::CheckedHandle(arguments.ArgAt(0));
1744 const Object& value = Object::Handle(arguments.ArgAt(1)); 1736 const Object& value = Object::Handle(arguments.ArgAt(1));
1745 field.UpdateGuardedCidAndLength(value); 1737 field.UpdateGuardedCidAndLength(value);
1746 } 1738 }
1747 1739
1748 } // namespace dart 1740 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.h ('k') | runtime/vm/stub_code.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698