| 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_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 #include "vm/locations.h" | 9 #include "vm/locations.h" |
| 10 | 10 |
| 11 #define __ compiler->assembler()-> | 11 #define __ compiler->assembler()-> |
| 12 | 12 |
| 13 namespace dart { | 13 namespace dart { |
| 14 | 14 |
| 15 | 15 |
| 16 #define DEFINE_UNIMPLEMENTED(name) \ | 16 #define DEFINE_UNIMPLEMENTED(ShortName, ClassName) \ |
| 17 LocationSummary* name::MakeLocationSummary() { \ | 17 LocationSummary* ClassName::MakeLocationSummary() const { \ |
| 18 UNIMPLEMENTED(); \ | 18 UNIMPLEMENTED(); \ |
| 19 return NULL; \ | 19 return NULL; \ |
| 20 } \ | 20 } \ |
| 21 \ | 21 \ |
| 22 void name::EmitNativeCode(FlowGraphCompiler* compiler) { \ | 22 void ClassName::EmitNativeCode(FlowGraphCompiler* compiler) { \ |
| 23 UNIMPLEMENTED(); \ | 23 UNIMPLEMENTED(); \ |
| 24 } | 24 } |
| 25 | 25 |
| 26 DEFINE_UNIMPLEMENTED(StrictCompareComp) | 26 FOR_EACH_COMPUTATION(DEFINE_UNIMPLEMENTED) |
| 27 DEFINE_UNIMPLEMENTED(ClosureCallComp) | |
| 28 DEFINE_UNIMPLEMENTED(InstanceCallComp) | |
| 29 DEFINE_UNIMPLEMENTED(StaticCallComp) | |
| 30 DEFINE_UNIMPLEMENTED(CurrentContextComp) | |
| 31 DEFINE_UNIMPLEMENTED(StoreContextComp) | |
| 32 | 27 |
| 33 void BindInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 28 void BindInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 34 UNIMPLEMENTED(); | 29 UNIMPLEMENTED(); |
| 35 } | 30 } |
| 36 | 31 |
| 37 | 32 |
| 38 LocationSummary* LoadLocalComp::MakeLocationSummary() { | |
| 39 UNIMPLEMENTED(); | |
| 40 return NULL; | |
| 41 } | |
| 42 | |
| 43 | |
| 44 void LoadLocalComp::EmitNativeCode(FlowGraphCompiler* compiler) { | |
| 45 UNIMPLEMENTED(); | |
| 46 } | |
| 47 | |
| 48 | |
| 49 LocationSummary* StoreLocalComp::MakeLocationSummary() { | |
| 50 UNIMPLEMENTED(); | |
| 51 return NULL; | |
| 52 } | |
| 53 | |
| 54 | |
| 55 void StoreLocalComp::EmitNativeCode(FlowGraphCompiler* compiler) { | |
| 56 UNIMPLEMENTED(); | |
| 57 } | |
| 58 | |
| 59 | |
| 60 LocationSummary* ConstantVal::MakeLocationSummary() { | |
| 61 UNIMPLEMENTED(); | |
| 62 return NULL; | |
| 63 } | |
| 64 | |
| 65 | |
| 66 void ConstantVal::EmitNativeCode(FlowGraphCompiler* compiler) { | |
| 67 UNIMPLEMENTED(); | |
| 68 } | |
| 69 | |
| 70 | |
| 71 } // namespace dart | 33 } // namespace dart |
| 72 | 34 |
| 73 #undef __ | 35 #undef __ |
| 74 | 36 |
| 75 #endif // defined TARGET_ARCH_X64 | 37 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |