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/flow_graph_builder.h" | 5 #include "vm/flow_graph_builder.h" |
6 | 6 |
7 #include "lib/invocation_mirror.h" | 7 #include "lib/invocation_mirror.h" |
8 #include "vm/ast_printer.h" | 8 #include "vm/ast_printer.h" |
9 #include "vm/bit_vector.h" | 9 #include "vm/bit_vector.h" |
10 #include "vm/class_finalizer.h" | 10 #include "vm/class_finalizer.h" |
(...skipping 2059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2070 ASSERT(jump_target != NULL); | 2070 ASSERT(jump_target != NULL); |
2071 Goto(jump_target); | 2071 Goto(jump_target); |
2072 } | 2072 } |
2073 | 2073 |
2074 | 2074 |
2075 void EffectGraphVisitor::VisitArgumentListNode(ArgumentListNode* node) { | 2075 void EffectGraphVisitor::VisitArgumentListNode(ArgumentListNode* node) { |
2076 UNREACHABLE(); | 2076 UNREACHABLE(); |
2077 } | 2077 } |
2078 | 2078 |
2079 | 2079 |
| 2080 void EffectGraphVisitor::VisitAwaitNode(AwaitNode* node) { |
| 2081 // Await nodes are temporary during parsing. |
| 2082 UNREACHABLE(); |
| 2083 } |
| 2084 |
| 2085 |
2080 intptr_t EffectGraphVisitor::GetCurrentTempLocalIndex() const { | 2086 intptr_t EffectGraphVisitor::GetCurrentTempLocalIndex() const { |
2081 return kFirstLocalSlotFromFp | 2087 return kFirstLocalSlotFromFp |
2082 - owner()->num_stack_locals() | 2088 - owner()->num_stack_locals() |
2083 - owner()->num_copied_params() | 2089 - owner()->num_copied_params() |
2084 - owner()->args_pushed() | 2090 - owner()->args_pushed() |
2085 - owner()->temp_count() + 1; | 2091 - owner()->temp_count() + 1; |
2086 } | 2092 } |
2087 | 2093 |
2088 | 2094 |
2089 LocalVariable* EffectGraphVisitor::EnterTempLocalScope(Value* value) { | 2095 LocalVariable* EffectGraphVisitor::EnterTempLocalScope(Value* value) { |
(...skipping 1866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3956 Report::MessageF(Report::kBailout, | 3962 Report::MessageF(Report::kBailout, |
3957 Script::Handle(function.script()), | 3963 Script::Handle(function.script()), |
3958 function.token_pos(), | 3964 function.token_pos(), |
3959 "FlowGraphBuilder Bailout: %s %s", | 3965 "FlowGraphBuilder Bailout: %s %s", |
3960 String::Handle(function.name()).ToCString(), | 3966 String::Handle(function.name()).ToCString(), |
3961 reason); | 3967 reason); |
3962 UNREACHABLE(); | 3968 UNREACHABLE(); |
3963 } | 3969 } |
3964 | 3970 |
3965 } // namespace dart | 3971 } // namespace dart |
OLD | NEW |