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

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

Issue 10885039: Deoptimization can occur at Dart calls (includes native calls to C) but not at runtime calls. This … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 const Array& argument_names() const { return ast_node_.arguments()->names(); } 637 const Array& argument_names() const { return ast_node_.arguments()->names(); }
638 intptr_t token_pos() const { return ast_node_.token_pos(); } 638 intptr_t token_pos() const { return ast_node_.token_pos(); }
639 639
640 virtual intptr_t ArgumentCount() const { return arguments_->length(); } 640 virtual intptr_t ArgumentCount() const { return arguments_->length(); }
641 PushArgumentInstr* ArgumentAt(intptr_t index) const { 641 PushArgumentInstr* ArgumentAt(intptr_t index) const {
642 return (*arguments_)[index]; 642 return (*arguments_)[index];
643 } 643 }
644 644
645 virtual void PrintOperandsTo(BufferFormatter* f) const; 645 virtual void PrintOperandsTo(BufferFormatter* f) const;
646 646
647 virtual bool CanDeoptimize() const { return false; } 647 virtual bool CanDeoptimize() const { return true; }
648 virtual intptr_t ResultCid() const { return kDynamicCid; } 648 virtual intptr_t ResultCid() const { return kDynamicCid; }
649 649
650 private: 650 private:
651 const ClosureCallNode& ast_node_; 651 const ClosureCallNode& ast_node_;
652 ZoneGrowableArray<PushArgumentInstr*>* arguments_; 652 ZoneGrowableArray<PushArgumentInstr*>* arguments_;
653 653
654 DISALLOW_COPY_AND_ASSIGN(ClosureCallComp); 654 DISALLOW_COPY_AND_ASSIGN(ClosureCallComp);
655 }; 655 };
656 656
657 657
(...skipping 2602 matching lines...) Expand 10 before | Expand all | Expand 10 after
3260 ForwardInstructionIterator* current_iterator_; 3260 ForwardInstructionIterator* current_iterator_;
3261 3261
3262 private: 3262 private:
3263 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 3263 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
3264 }; 3264 };
3265 3265
3266 3266
3267 } // namespace dart 3267 } // namespace dart
3268 3268
3269 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 3269 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698