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

Side by Side Diff: runtime/vm/ast.h

Issue 2322853003: VM: Zero-cost try-finally with an empty finally-block. (Closed)
Patch Set: detect rethrow correctly Created 4 years, 3 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
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | runtime/vm/flow_graph_builder.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef VM_AST_H_ 5 #ifndef VM_AST_H_
6 #define VM_AST_H_ 6 #define VM_AST_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 1857 matching lines...) Expand 10 before | Expand all | Expand 10 after
1868 rethrow_stacktrace_var_(*rethrow_stacktrace_var), 1868 rethrow_stacktrace_var_(*rethrow_stacktrace_var),
1869 catch_handler_index_(catch_handler_index), 1869 catch_handler_index_(catch_handler_index),
1870 needs_stacktrace_(needs_stacktrace) { 1870 needs_stacktrace_(needs_stacktrace) {
1871 ASSERT(catch_block_ != NULL); 1871 ASSERT(catch_block_ != NULL);
1872 ASSERT(handler_types.IsZoneHandle()); 1872 ASSERT(handler_types.IsZoneHandle());
1873 ASSERT(context_var != NULL); 1873 ASSERT(context_var != NULL);
1874 ASSERT(exception_var != NULL); 1874 ASSERT(exception_var != NULL);
1875 ASSERT(stacktrace_var != NULL); 1875 ASSERT(stacktrace_var != NULL);
1876 } 1876 }
1877 1877
1878 SequenceNode* sequence() const { return catch_block_; }
1878 const Array& handler_types() const { return handler_types_; } 1879 const Array& handler_types() const { return handler_types_; }
1879 const LocalVariable& context_var() const { return context_var_; } 1880 const LocalVariable& context_var() const { return context_var_; }
1880 const LocalVariable& exception_var() const { return exception_var_; } 1881 const LocalVariable& exception_var() const { return exception_var_; }
1881 const LocalVariable& stacktrace_var() const { return stacktrace_var_; } 1882 const LocalVariable& stacktrace_var() const { return stacktrace_var_; }
1882 const LocalVariable& rethrow_exception_var() const { 1883 const LocalVariable& rethrow_exception_var() const {
1883 return rethrow_exception_var_; 1884 return rethrow_exception_var_;
1884 } 1885 }
1885 const LocalVariable& rethrow_stacktrace_var() const { 1886 const LocalVariable& rethrow_stacktrace_var() const {
1886 return rethrow_stacktrace_var_; 1887 return rethrow_stacktrace_var_;
1887 } 1888 }
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
2019 const intptr_t try_index_; 2020 const intptr_t try_index_;
2020 2021
2021 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); 2022 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode);
2022 }; 2023 };
2023 2024
2024 } // namespace dart 2025 } // namespace dart
2025 2026
2026 #undef DECLARE_COMMON_NODE_FUNCTIONS 2027 #undef DECLARE_COMMON_NODE_FUNCTIONS
2027 2028
2028 #endif // VM_AST_H_ 2029 #endif // VM_AST_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | runtime/vm/flow_graph_builder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698