Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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/ast_printer.h" | 5 #include "vm/ast_printer.h" |
| 6 | 6 |
| 7 #include "vm/handles.h" | 7 #include "vm/handles.h" |
| 8 #include "vm/log.h" | 8 #include "vm/log.h" |
| 9 #include "vm/object.h" | 9 #include "vm/object.h" |
| 10 #include "vm/os.h" | 10 #include "vm/os.h" |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 130 THR_Print(")"); | 130 THR_Print(")"); |
| 131 } | 131 } |
| 132 | 132 |
| 133 | 133 |
| 134 void AstPrinter::VisitLoadInstanceFieldNode(LoadInstanceFieldNode* node) { | 134 void AstPrinter::VisitLoadInstanceFieldNode(LoadInstanceFieldNode* node) { |
| 135 VisitGenericFieldNode(node, node->field()); | 135 VisitGenericFieldNode(node, node->field()); |
| 136 } | 136 } |
| 137 | 137 |
| 138 | 138 |
| 139 void AstPrinter::VisitStoreInstanceFieldNode(StoreInstanceFieldNode* node) { | 139 void AstPrinter::VisitStoreInstanceFieldNode(StoreInstanceFieldNode* node) { |
| 140 VisitGenericFieldNode(node, node->field()); | 140 VisitGenericFieldNode(node, *node->field().OriginalAsHandle()); |
|
siva
2016/02/25 23:38:32
*node->OriginalAsHandle(node->field()));
srdjan
2016/02/26 00:40:42
Resolved using Field::ZoneHandle
| |
| 141 } | 141 } |
| 142 | 142 |
| 143 | 143 |
| 144 void AstPrinter::VisitLoadStaticFieldNode(LoadStaticFieldNode* node) { | 144 void AstPrinter::VisitLoadStaticFieldNode(LoadStaticFieldNode* node) { |
| 145 VisitGenericFieldNode(node, node->field()); | 145 VisitGenericFieldNode(node, node->field()); |
| 146 } | 146 } |
| 147 | 147 |
| 148 | 148 |
| 149 void AstPrinter::VisitStoreStaticFieldNode(StoreStaticFieldNode* node) { | 149 void AstPrinter::VisitStoreStaticFieldNode(StoreStaticFieldNode* node) { |
| 150 VisitGenericFieldNode(node, node->field()); | 150 VisitGenericFieldNode(node, node->field()); |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 569 const char* function_name = | 569 const char* function_name = |
| 570 parsed_function.function().ToFullyQualifiedCString(); | 570 parsed_function.function().ToFullyQualifiedCString(); |
| 571 THR_Print("Ast for function '%s' {\n", function_name); | 571 THR_Print("Ast for function '%s' {\n", function_name); |
| 572 node_sequence->Visit(&ast_printer); | 572 node_sequence->Visit(&ast_printer); |
| 573 THR_Print("}\n"); | 573 THR_Print("}\n"); |
| 574 } | 574 } |
| 575 | 575 |
| 576 } // namespace dart | 576 } // namespace dart |
| 577 | 577 |
| 578 #endif // !defined(PRODUCT) | 578 #endif // !defined(PRODUCT) |
| OLD | NEW |