| 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/globals.h" // Needed here to get TARGET_ARCH_XXX. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. |
| 6 | 6 |
| 7 #include "vm/flow_graph_compiler.h" | 7 #include "vm/flow_graph_compiler.h" |
| 8 | 8 |
| 9 #include "vm/debugger.h" | 9 #include "vm/debugger.h" |
| 10 #include "vm/il_printer.h" | 10 #include "vm/il_printer.h" |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 } else { | 202 } else { |
| 203 // Finalize the stack map array and add it to the code object. | 203 // Finalize the stack map array and add it to the code object. |
| 204 code.set_stackmaps( | 204 code.set_stackmaps( |
| 205 Array::Handle(stackmap_builder_->FinalizeStackmaps(code))); | 205 Array::Handle(stackmap_builder_->FinalizeStackmaps(code))); |
| 206 } | 206 } |
| 207 } | 207 } |
| 208 | 208 |
| 209 | 209 |
| 210 void FlowGraphCompiler::FinalizeVarDescriptors(const Code& code) { | 210 void FlowGraphCompiler::FinalizeVarDescriptors(const Code& code) { |
| 211 const LocalVarDescriptors& var_descs = LocalVarDescriptors::Handle( | 211 const LocalVarDescriptors& var_descs = LocalVarDescriptors::Handle( |
| 212 parsed_function_.node_sequence()->scope()->GetVarDescriptors()); | 212 parsed_function_.node_sequence()->scope()->GetVarDescriptors( |
| 213 parsed_function_.function())); |
| 213 code.set_var_descriptors(var_descs); | 214 code.set_var_descriptors(var_descs); |
| 214 } | 215 } |
| 215 | 216 |
| 216 | 217 |
| 217 void FlowGraphCompiler::FinalizeComments(const Code& code) { | 218 void FlowGraphCompiler::FinalizeComments(const Code& code) { |
| 218 code.set_comments(assembler()->GetCodeComments()); | 219 code.set_comments(assembler()->GetCodeComments()); |
| 219 } | 220 } |
| 220 | 221 |
| 221 | 222 |
| 222 static bool CanOptimize() { | 223 static bool CanOptimize() { |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 | 578 |
| 578 | 579 |
| 579 void FrameRegisterAllocator::SpillInDeoptStub(DeoptimizationStub* stub) { | 580 void FrameRegisterAllocator::SpillInDeoptStub(DeoptimizationStub* stub) { |
| 580 for (int i = 0; i < stack_.length(); i++) { | 581 for (int i = 0; i < stack_.length(); i++) { |
| 581 stub->Push(stack_[i]); | 582 stub->Push(stack_[i]); |
| 582 } | 583 } |
| 583 } | 584 } |
| 584 | 585 |
| 585 | 586 |
| 586 } // namespace dart | 587 } // namespace dart |
| OLD | NEW |