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

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
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/intermediate_language.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 #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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 const Array& argument_names() const { return ast_node_.arguments()->names(); } 577 const Array& argument_names() const { return ast_node_.arguments()->names(); }
578 intptr_t token_pos() const { return ast_node_.token_pos(); } 578 intptr_t token_pos() const { return ast_node_.token_pos(); }
579 579
580 virtual intptr_t ArgumentCount() const { return arguments_->length(); } 580 virtual intptr_t ArgumentCount() const { return arguments_->length(); }
581 PushArgumentInstr* ArgumentAt(intptr_t index) const { 581 PushArgumentInstr* ArgumentAt(intptr_t index) const {
582 return (*arguments_)[index]; 582 return (*arguments_)[index];
583 } 583 }
584 584
585 virtual void PrintOperandsTo(BufferFormatter* f) const; 585 virtual void PrintOperandsTo(BufferFormatter* f) const;
586 586
587 virtual bool CanDeoptimize() const { return false; } 587 virtual bool CanDeoptimize() const { return true; }
588 virtual intptr_t ResultCid() const { return kDynamicCid; } 588 virtual intptr_t ResultCid() const { return kDynamicCid; }
589 589
590 private: 590 private:
591 const ClosureCallNode& ast_node_; 591 const ClosureCallNode& ast_node_;
592 ZoneGrowableArray<PushArgumentInstr*>* arguments_; 592 ZoneGrowableArray<PushArgumentInstr*>* arguments_;
593 593
594 DISALLOW_COPY_AND_ASSIGN(ClosureCallComp); 594 DISALLOW_COPY_AND_ASSIGN(ClosureCallComp);
595 }; 595 };
596 596
597 597
(...skipping 2584 matching lines...) Expand 10 before | Expand all | Expand 10 after
3182 ForwardInstructionIterator* current_iterator_; 3182 ForwardInstructionIterator* current_iterator_;
3183 3183
3184 private: 3184 private:
3185 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 3185 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
3186 }; 3186 };
3187 3187
3188 3188
3189 } // namespace dart 3189 } // namespace dart
3190 3190
3191 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 3191 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698