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

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

Issue 447003003: Introduce await (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments Created 6 years, 4 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/vm/ast_transformer.cc ('k') | runtime/vm/parser.h » ('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) 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 2096 matching lines...) Expand 10 before | Expand all | Expand 10 after
2107 ASSERT(jump_target != NULL); 2107 ASSERT(jump_target != NULL);
2108 Goto(jump_target); 2108 Goto(jump_target);
2109 } 2109 }
2110 2110
2111 2111
2112 void EffectGraphVisitor::VisitArgumentListNode(ArgumentListNode* node) { 2112 void EffectGraphVisitor::VisitArgumentListNode(ArgumentListNode* node) {
2113 UNREACHABLE(); 2113 UNREACHABLE();
2114 } 2114 }
2115 2115
2116 2116
2117 void EffectGraphVisitor::VisitAwaitNode(AwaitNode* node) {
2118 // Await nodes are temporary during parsing.
2119 UNREACHABLE();
2120 }
2121
2122
2117 intptr_t EffectGraphVisitor::GetCurrentTempLocalIndex() const { 2123 intptr_t EffectGraphVisitor::GetCurrentTempLocalIndex() const {
2118 return kFirstLocalSlotFromFp 2124 return kFirstLocalSlotFromFp
2119 - owner()->num_stack_locals() 2125 - owner()->num_stack_locals()
2120 - owner()->num_copied_params() 2126 - owner()->num_copied_params()
2121 - owner()->args_pushed() 2127 - owner()->args_pushed()
2122 - owner()->temp_count() + 1; 2128 - owner()->temp_count() + 1;
2123 } 2129 }
2124 2130
2125 2131
2126 LocalVariable* EffectGraphVisitor::EnterTempLocalScope(Value* value) { 2132 LocalVariable* EffectGraphVisitor::EnterTempLocalScope(Value* value) {
(...skipping 1866 matching lines...) Expand 10 before | Expand all | Expand 10 after
3993 Report::MessageF(Report::kBailout, 3999 Report::MessageF(Report::kBailout,
3994 Script::Handle(function.script()), 4000 Script::Handle(function.script()),
3995 function.token_pos(), 4001 function.token_pos(),
3996 "FlowGraphBuilder Bailout: %s %s", 4002 "FlowGraphBuilder Bailout: %s %s",
3997 String::Handle(function.name()).ToCString(), 4003 String::Handle(function.name()).ToCString(),
3998 reason); 4004 reason);
3999 UNREACHABLE(); 4005 UNREACHABLE();
4000 } 4006 }
4001 4007
4002 } // namespace dart 4008 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/ast_transformer.cc ('k') | runtime/vm/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698