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 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 const int8_t kind = var_info.kind(); | 925 const int8_t kind = var_info.kind(); |
926 if (kind == RawLocalVarDescriptors::kSavedCurrentContext) { | 926 if (kind == RawLocalVarDescriptors::kSavedCurrentContext) { |
927 ISL_Print(" saved current CTX reg offset %d\n", var_info.index()); | 927 ISL_Print(" saved current CTX reg offset %d\n", var_info.index()); |
928 } else { | 928 } else { |
929 if (kind == RawLocalVarDescriptors::kContextLevel) { | 929 if (kind == RawLocalVarDescriptors::kContextLevel) { |
930 ISL_Print(" context level %d scope %d", var_info.index(), | 930 ISL_Print(" context level %d scope %d", var_info.index(), |
931 var_info.scope_id); | 931 var_info.scope_id); |
932 } else if (kind == RawLocalVarDescriptors::kStackVar) { | 932 } else if (kind == RawLocalVarDescriptors::kStackVar) { |
933 ISL_Print(" stack var '%s' offset %d", | 933 ISL_Print(" stack var '%s' offset %d", |
934 var_name.ToCString(), var_info.index()); | 934 var_name.ToCString(), var_info.index()); |
| 935 } else if (kind == RawLocalVarDescriptors::kContextVar) { |
| 936 ISL_Print(" context var '%s' level %d offset %d", |
| 937 var_name.ToCString(), var_info.scope_id, var_info.index()); |
935 } else { | 938 } else { |
936 ASSERT(kind == RawLocalVarDescriptors::kContextVar); | 939 ASSERT(kind == RawLocalVarDescriptors::kAsyncOperation); |
937 ISL_Print(" context var '%s' level %d offset %d", | 940 ISL_Print(" async operation '%s' level %d offset %d", |
938 var_name.ToCString(), var_info.scope_id, var_info.index()); | 941 var_name.ToCString(), var_info.scope_id, var_info.index()); |
939 } | 942 } |
940 ISL_Print(" (valid %d-%d)\n", var_info.begin_pos, var_info.end_pos); | 943 ISL_Print(" (valid %d-%d)\n", var_info.begin_pos, var_info.end_pos); |
941 } | 944 } |
942 } | 945 } |
943 ISL_Print("}\n"); | 946 ISL_Print("}\n"); |
944 | 947 |
945 ISL_Print("Exception Handlers for function '%s' {\n", function_fullname); | 948 ISL_Print("Exception Handlers for function '%s' {\n", function_fullname); |
946 const ExceptionHandlers& handlers = | 949 const ExceptionHandlers& handlers = |
947 ExceptionHandlers::Handle(code.exception_handlers()); | 950 ExceptionHandlers::Handle(code.exception_handlers()); |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1424 const Object& result = | 1427 const Object& result = |
1425 PassiveObject::Handle(isolate->object_store()->sticky_error()); | 1428 PassiveObject::Handle(isolate->object_store()->sticky_error()); |
1426 isolate->object_store()->clear_sticky_error(); | 1429 isolate->object_store()->clear_sticky_error(); |
1427 return result.raw(); | 1430 return result.raw(); |
1428 } | 1431 } |
1429 UNREACHABLE(); | 1432 UNREACHABLE(); |
1430 return Object::null(); | 1433 return Object::null(); |
1431 } | 1434 } |
1432 | 1435 |
1433 } // namespace dart | 1436 } // namespace dart |
OLD | NEW |