| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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/compiler.h" | 5 #include "vm/compiler.h" |
| 6 | 6 |
| 7 #include "vm/assembler.h" | 7 #include "vm/assembler.h" |
| 8 | 8 |
| 9 #include "vm/ast_printer.h" | 9 #include "vm/ast_printer.h" |
| 10 #include "vm/block_scheduler.h" | 10 #include "vm/block_scheduler.h" |
| (...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 const int8_t kind = var_info.kind(); | 920 const int8_t kind = var_info.kind(); |
| 921 if (kind == RawLocalVarDescriptors::kSavedCurrentContext) { | 921 if (kind == RawLocalVarDescriptors::kSavedCurrentContext) { |
| 922 THR_Print(" saved current CTX reg offset %d\n", var_info.index()); | 922 THR_Print(" saved current CTX reg offset %d\n", var_info.index()); |
| 923 } else { | 923 } else { |
| 924 if (kind == RawLocalVarDescriptors::kContextLevel) { | 924 if (kind == RawLocalVarDescriptors::kContextLevel) { |
| 925 THR_Print(" context level %d scope %d", var_info.index(), | 925 THR_Print(" context level %d scope %d", var_info.index(), |
| 926 var_info.scope_id); | 926 var_info.scope_id); |
| 927 } else if (kind == RawLocalVarDescriptors::kStackVar) { | 927 } else if (kind == RawLocalVarDescriptors::kStackVar) { |
| 928 THR_Print(" stack var '%s' offset %d", | 928 THR_Print(" stack var '%s' offset %d", |
| 929 var_name.ToCString(), var_info.index()); | 929 var_name.ToCString(), var_info.index()); |
| 930 } else if (kind == RawLocalVarDescriptors::kContextVar) { | 930 } else { |
| 931 ASSERT(kind == RawLocalVarDescriptors::kContextVar); |
| 931 THR_Print(" context var '%s' level %d offset %d", | 932 THR_Print(" context var '%s' level %d offset %d", |
| 932 var_name.ToCString(), var_info.scope_id, var_info.index()); | 933 var_name.ToCString(), var_info.scope_id, var_info.index()); |
| 933 } else { | |
| 934 ASSERT(kind == RawLocalVarDescriptors::kAsyncOperation); | |
| 935 THR_Print(" async operation '%s' level %d offset %d", | |
| 936 var_name.ToCString(), var_info.scope_id, var_info.index()); | |
| 937 } | 934 } |
| 938 THR_Print(" (valid %d-%d)\n", var_info.begin_pos, var_info.end_pos); | 935 THR_Print(" (valid %d-%d)\n", var_info.begin_pos, var_info.end_pos); |
| 939 } | 936 } |
| 940 } | 937 } |
| 941 THR_Print("}\n"); | 938 THR_Print("}\n"); |
| 942 | 939 |
| 943 THR_Print("Exception Handlers for function '%s' {\n", function_fullname); | 940 THR_Print("Exception Handlers for function '%s' {\n", function_fullname); |
| 944 const ExceptionHandlers& handlers = | 941 const ExceptionHandlers& handlers = |
| 945 ExceptionHandlers::Handle(code.exception_handlers()); | 942 ExceptionHandlers::Handle(code.exception_handlers()); |
| 946 THR_Print("%s}\n", handlers.ToCString()); | 943 THR_Print("%s}\n", handlers.ToCString()); |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1420 const Object& result = | 1417 const Object& result = |
| 1421 PassiveObject::Handle(isolate->object_store()->sticky_error()); | 1418 PassiveObject::Handle(isolate->object_store()->sticky_error()); |
| 1422 isolate->object_store()->clear_sticky_error(); | 1419 isolate->object_store()->clear_sticky_error(); |
| 1423 return result.raw(); | 1420 return result.raw(); |
| 1424 } | 1421 } |
| 1425 UNREACHABLE(); | 1422 UNREACHABLE(); |
| 1426 return Object::null(); | 1423 return Object::null(); |
| 1427 } | 1424 } |
| 1428 | 1425 |
| 1429 } // namespace dart | 1426 } // namespace dart |
| OLD | NEW |