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

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

Issue 9182001: OOB messages and general message refactor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 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/lib/isolate.cc ('k') | runtime/vm/custom_isolate_test.cc » ('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) 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 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 if (stack_pos < isolate->saved_stack_limit()) { 877 if (stack_pos < isolate->saved_stack_limit()) {
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) {
888 UNIMPLEMENTED();
889 }
887 if (interrupt_bits & Isolate::kApiInterrupt) { 890 if (interrupt_bits & Isolate::kApiInterrupt) {
888 Dart_IsolateInterruptCallback callback = isolate->InterruptCallback(); 891 Dart_IsolateInterruptCallback callback = isolate->InterruptCallback();
889 if (callback) { 892 if (callback) {
890 if ((*callback)()) { 893 if ((*callback)()) {
891 return; 894 return;
892 } else { 895 } else {
893 // TODO(turnidge): Unwind the stack. 896 // TODO(turnidge): Unwind the stack.
894 UNIMPLEMENTED(); 897 UNIMPLEMENTED();
895 } 898 }
896 } 899 }
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 } 1109 }
1107 } 1110 }
1108 } 1111 }
1109 // The cache is null terminated, therefore the loop above should never 1112 // The cache is null terminated, therefore the loop above should never
1110 // terminate by itself. 1113 // terminate by itself.
1111 UNREACHABLE(); 1114 UNREACHABLE();
1112 return Code::null(); 1115 return Code::null();
1113 } 1116 }
1114 1117
1115 } // namespace dart 1118 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/custom_isolate_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698