| 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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 void FlowGraphCompiler::VisitStoreLocal(StoreLocalComp* comp) { | 93 void FlowGraphCompiler::VisitStoreLocal(StoreLocalComp* comp) { |
| 94 if (comp->local().is_captured()) { | 94 if (comp->local().is_captured()) { |
| 95 Bailout("store to context variable"); | 95 Bailout("store to context variable"); |
| 96 } | 96 } |
| 97 LoadValue(comp->value()); | 97 LoadValue(comp->value()); |
| 98 __ movq(Address(RBP, comp->local().index() * kWordSize), RAX); | 98 __ movq(Address(RBP, comp->local().index() * kWordSize), RAX); |
| 99 } | 99 } |
| 100 | 100 |
| 101 | 101 |
| 102 void FlowGraphCompiler::VisitNativeCall(NativeCallComp* comp) { |
| 103 Bailout("NativeCallComp"); |
| 104 } |
| 105 |
| 106 |
| 102 void FlowGraphCompiler::VisitJoinEntry(JoinEntryInstr* instr) { | 107 void FlowGraphCompiler::VisitJoinEntry(JoinEntryInstr* instr) { |
| 103 Bailout("JoinEntryInstr"); | 108 Bailout("JoinEntryInstr"); |
| 104 } | 109 } |
| 105 | 110 |
| 106 | 111 |
| 107 void FlowGraphCompiler::VisitTargetEntry(TargetEntryInstr* instr) { | 112 void FlowGraphCompiler::VisitTargetEntry(TargetEntryInstr* instr) { |
| 108 // Since we don't handle branching control flow yet, there is nothing to do. | 113 // Since we don't handle branching control flow yet, there is nothing to do. |
| 109 } | 114 } |
| 110 | 115 |
| 111 | 116 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) { | 302 void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) { |
| 298 // We don't compile exception handlers yet. | 303 // We don't compile exception handlers yet. |
| 299 code.set_exception_handlers( | 304 code.set_exception_handlers( |
| 300 ExceptionHandlers::Handle(ExceptionHandlers::New(0))); | 305 ExceptionHandlers::Handle(ExceptionHandlers::New(0))); |
| 301 } | 306 } |
| 302 | 307 |
| 303 | 308 |
| 304 } // namespace dart | 309 } // namespace dart |
| 305 | 310 |
| 306 #endif // defined TARGET_ARCH_X64 | 311 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |