Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Side by Side Diff: vm/intermediate_language_ia32.cc

Issue 10412043: Make it less verbose to declare instructions that use LocationSummary-based code generation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « vm/intermediate_language.h ('k') | vm/intermediate_language_x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « vm/intermediate_language.h ('k') | vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698