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

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

Issue 9624025: Implement strict comparison and native calls in flow graph compiler x64. (Closed) Base URL: http://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
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | no next file » | 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 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 DISALLOW_COPY_AND_ASSIGN(StoreLocalComp); 280 DISALLOW_COPY_AND_ASSIGN(StoreLocalComp);
281 }; 281 };
282 282
283 283
284 class NativeCallComp : public Computation { 284 class NativeCallComp : public Computation {
285 public: 285 public:
286 explicit NativeCallComp(NativeBodyNode* node) : ast_node_(*node) {} 286 explicit NativeCallComp(NativeBodyNode* node) : ast_node_(*node) {}
287 287
288 DECLARE_COMPUTATION(NativeCall) 288 DECLARE_COMPUTATION(NativeCall)
289 289
290 intptr_t token_index() const { return ast_node_.token_index(); }
291
290 const String& native_name() const { 292 const String& native_name() const {
291 return ast_node_.native_c_function_name(); 293 return ast_node_.native_c_function_name();
292 } 294 }
293 295
296 NativeFunction native_c_function() const {
297 return ast_node_.native_c_function();
298 }
299
300 intptr_t argument_count() const { return ast_node_.argument_count(); }
301
302 bool has_optional_parameters() const {
303 return ast_node_.has_optional_parameters();
304 }
305
294 private: 306 private:
295 const NativeBodyNode& ast_node_; 307 const NativeBodyNode& ast_node_;
296 308
297 DISALLOW_COPY_AND_ASSIGN(NativeCallComp); 309 DISALLOW_COPY_AND_ASSIGN(NativeCallComp);
298 }; 310 };
299 311
300 312
301 class LoadInstanceFieldComp : public Computation { 313 class LoadInstanceFieldComp : public Computation {
302 public: 314 public:
303 LoadInstanceFieldComp(LoadInstanceFieldNode* ast_node, Value* instance) 315 LoadInstanceFieldComp(LoadInstanceFieldNode* ast_node, Value* instance)
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 #undef DECLARE_VISIT_INSTRUCTION 849 #undef DECLARE_VISIT_INSTRUCTION
838 850
839 private: 851 private:
840 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 852 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
841 }; 853 };
842 854
843 855
844 } // namespace dart 856 } // namespace dart
845 857
846 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 858 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698