Chromium Code Reviews| 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 "vm/ast_printer.h" | 7 #include "vm/ast_printer.h" |
| 8 #include "vm/code_descriptors.h" | 8 #include "vm/code_descriptors.h" |
| 9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
| 10 #include "vm/flags.h" | 10 #include "vm/flags.h" |
| (...skipping 2113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2124 void ValueGraphVisitor::VisitStoreLocalNode(StoreLocalNode* node) { | 2124 void ValueGraphVisitor::VisitStoreLocalNode(StoreLocalNode* node) { |
| 2125 HandleStoreLocal(node, kResultNeeded); | 2125 HandleStoreLocal(node, kResultNeeded); |
| 2126 } | 2126 } |
| 2127 | 2127 |
| 2128 | 2128 |
| 2129 void EffectGraphVisitor::VisitLoadInstanceFieldNode( | 2129 void EffectGraphVisitor::VisitLoadInstanceFieldNode( |
| 2130 LoadInstanceFieldNode* node) { | 2130 LoadInstanceFieldNode* node) { |
| 2131 ValueGraphVisitor for_instance(owner(), temp_index()); | 2131 ValueGraphVisitor for_instance(owner(), temp_index()); |
| 2132 node->instance()->Visit(&for_instance); | 2132 node->instance()->Visit(&for_instance); |
| 2133 Append(for_instance); | 2133 Append(for_instance); |
| 2134 LoadInstanceFieldInstr* load = new LoadInstanceFieldInstr( | 2134 LoadVMFieldInstr* load = new LoadVMFieldInstr( |
|
srdjan
2012/09/12 17:22:34
Name is not good, since VM field denotes a field t
Florian Schneider
2012/09/12 17:31:16
Done.
| |
| 2135 node->field(), for_instance.value()); | 2135 for_instance.value(), |
| 2136 node->field().Offset(), | |
| 2137 AbstractType::ZoneHandle(node->field().type())); | |
| 2136 ReturnDefinition(load); | 2138 ReturnDefinition(load); |
| 2137 } | 2139 } |
| 2138 | 2140 |
| 2139 | 2141 |
| 2140 void EffectGraphVisitor::VisitStoreInstanceFieldNode( | 2142 void EffectGraphVisitor::VisitStoreInstanceFieldNode( |
| 2141 StoreInstanceFieldNode* node) { | 2143 StoreInstanceFieldNode* node) { |
| 2142 ValueGraphVisitor for_instance(owner(), temp_index()); | 2144 ValueGraphVisitor for_instance(owner(), temp_index()); |
| 2143 node->instance()->Visit(&for_instance); | 2145 node->instance()->Visit(&for_instance); |
| 2144 Append(for_instance); | 2146 Append(for_instance); |
| 2145 ValueGraphVisitor for_value(owner(), for_instance.temp_index()); | 2147 ValueGraphVisitor for_value(owner(), for_instance.temp_index()); |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2631 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1; | 2633 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1; |
| 2632 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); | 2634 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); |
| 2633 OS::SNPrint(chars, len, kFormat, function_name, reason); | 2635 OS::SNPrint(chars, len, kFormat, function_name, reason); |
| 2634 const Error& error = Error::Handle( | 2636 const Error& error = Error::Handle( |
| 2635 LanguageError::New(String::Handle(String::New(chars)))); | 2637 LanguageError::New(String::Handle(String::New(chars)))); |
| 2636 Isolate::Current()->long_jump_base()->Jump(1, error); | 2638 Isolate::Current()->long_jump_base()->Jump(1, error); |
| 2637 } | 2639 } |
| 2638 | 2640 |
| 2639 | 2641 |
| 2640 } // namespace dart | 2642 } // namespace dart |
| OLD | NEW |