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

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

Issue 10539145: Implement polymorphic instance calls. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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_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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 intptr_t ArgumentCount() const { return arguments_->length(); } 488 intptr_t ArgumentCount() const { return arguments_->length(); }
489 Value* ArgumentAt(intptr_t index) const { return (*arguments_)[index]; } 489 Value* ArgumentAt(intptr_t index) const { return (*arguments_)[index]; }
490 const Array& argument_names() const { return argument_names_; } 490 const Array& argument_names() const { return argument_names_; }
491 intptr_t checked_argument_count() const { return checked_argument_count_; } 491 intptr_t checked_argument_count() const { return checked_argument_count_; }
492 492
493 virtual intptr_t InputCount() const; 493 virtual intptr_t InputCount() const;
494 virtual Value* InputAt(intptr_t i) const { return ArgumentAt(i); } 494 virtual Value* InputAt(intptr_t i) const { return ArgumentAt(i); }
495 495
496 virtual void PrintOperandsTo(BufferFormatter* f) const; 496 virtual void PrintOperandsTo(BufferFormatter* f) const;
497 497
498 bool VerifyComputation();
499
498 private: 500 private:
499 const intptr_t token_index_; 501 const intptr_t token_index_;
500 const intptr_t try_index_; 502 const intptr_t try_index_;
501 const String& function_name_; 503 const String& function_name_;
502 ZoneGrowableArray<Value*>* const arguments_; 504 ZoneGrowableArray<Value*>* const arguments_;
503 const Array& argument_names_; 505 const Array& argument_names_;
504 const intptr_t checked_argument_count_; 506 const intptr_t checked_argument_count_;
505 507
506 DISALLOW_COPY_AND_ASSIGN(InstanceCallComp); 508 DISALLOW_COPY_AND_ASSIGN(InstanceCallComp);
507 }; 509 };
(...skipping 1852 matching lines...) Expand 10 before | Expand all | Expand 10 after
2360 const GrowableArray<BlockEntryInstr*>& block_order_; 2362 const GrowableArray<BlockEntryInstr*>& block_order_;
2361 2363
2362 private: 2364 private:
2363 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 2365 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
2364 }; 2366 };
2365 2367
2366 2368
2367 } // namespace dart 2369 } // namespace dart
2368 2370
2369 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 2371 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698