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

Side by Side Diff: runtime/vm/flow_graph_compiler_x64.h

Issue 9570015: Support instance getters and setters, indexed loads and stores. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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
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 #ifndef VM_FLOW_GRAPH_COMPILER_X64_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_X64_H_
6 #define VM_FLOW_GRAPH_COMPILER_X64_H_ 6 #define VM_FLOW_GRAPH_COMPILER_X64_H_
7 7
8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ 8 #ifndef VM_FLOW_GRAPH_COMPILER_H_
9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_x64.h. 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_x64.h.
10 #endif 10 #endif
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 FOR_EACH_COMPUTATION(DECLARE_VISIT_COMPUTATION) 57 FOR_EACH_COMPUTATION(DECLARE_VISIT_COMPUTATION)
58 FOR_EACH_INSTRUCTION(DECLARE_VISIT_INSTRUCTION) 58 FOR_EACH_INSTRUCTION(DECLARE_VISIT_INSTRUCTION)
59 59
60 #undef DECLARE_VISIT_COMPUTATION 60 #undef DECLARE_VISIT_COMPUTATION
61 #undef DECLARE_VISIT_INSTRUCTION 61 #undef DECLARE_VISIT_INSTRUCTION
62 62
63 // Emit code to load a Value into register RAX. 63 // Emit code to load a Value into register RAX.
64 void LoadValue(Value* value); 64 void LoadValue(Value* value);
65 65
66 // Emit an instance call.
67 void EmitInstanceCall(intptr_t node_id,
68 intptr_t token_index,
69 const String& function_name,
70 intptr_t argument_count,
71 const Array& argument_names,
72 intptr_t checked_argument_count);
73
66 // Infrastructure copied from class CodeGenerator. 74 // Infrastructure copied from class CodeGenerator.
75 void GenerateCall(intptr_t token_index,
76 const ExternalLabel* label,
77 PcDescriptors::Kind kind);
67 void GenerateCallRuntime(intptr_t node_id, 78 void GenerateCallRuntime(intptr_t node_id,
68 intptr_t token_index, 79 intptr_t token_index,
69 const RuntimeEntry& entry); 80 const RuntimeEntry& entry);
70 void AddCurrentDescriptor(PcDescriptors::Kind kind, 81 void AddCurrentDescriptor(PcDescriptors::Kind kind,
71 intptr_t node_id, 82 intptr_t node_id,
72 intptr_t token_index); 83 intptr_t token_index);
73 84
74 Assembler* assembler_; 85 Assembler* assembler_;
75 const ParsedFunction& parsed_function_; 86 const ParsedFunction& parsed_function_;
76 const GrowableArray<BlockEntryInstr*>* blocks_; 87 const GrowableArray<BlockEntryInstr*>* blocks_;
77 88
78 CodeGenerator::DescriptorList* pc_descriptors_list_; 89 CodeGenerator::DescriptorList* pc_descriptors_list_;
79 int stack_local_count_; 90 int stack_local_count_;
80 91
81 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 92 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
82 }; 93 };
83 94
84 } // namespace dart 95 } // namespace dart
85 96
86 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ 97 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698