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

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

Issue 1732483002: Rename FlowGraphOptimizer -> JitOptimizer, clean up optimizer code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « runtime/vm/flow_graph_optimizer.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 2824 matching lines...) Expand 10 before | Expand all | Expand 10 after
2835 // Instance calls that are specialized by the optimizer need a 2835 // Instance calls that are specialized by the optimizer need a
2836 // deoptimization descriptor before the call. 2836 // deoptimization descriptor before the call.
2837 return true; 2837 return true;
2838 } 2838 }
2839 2839
2840 virtual EffectSet Effects() const { return EffectSet::All(); } 2840 virtual EffectSet Effects() const { return EffectSet::All(); }
2841 2841
2842 PRINT_OPERANDS_TO_SUPPORT 2842 PRINT_OPERANDS_TO_SUPPORT
2843 2843
2844 protected: 2844 protected:
2845 friend class FlowGraphOptimizer; 2845 friend class JitOptimizer;
2846 void set_ic_data(ICData* value) { ic_data_ = value; } 2846 void set_ic_data(ICData* value) { ic_data_ = value; }
2847 2847
2848 private: 2848 private:
2849 const ICData* ic_data_; 2849 const ICData* ic_data_;
2850 const TokenPosition token_pos_; 2850 const TokenPosition token_pos_;
2851 const String& function_name_; 2851 const String& function_name_;
2852 const Token::Kind token_kind_; // Binary op, unary op, kGET or kILLEGAL. 2852 const Token::Kind token_kind_; // Binary op, unary op, kGET or kILLEGAL.
2853 ZoneGrowableArray<PushArgumentInstr*>* const arguments_; 2853 ZoneGrowableArray<PushArgumentInstr*>* const arguments_;
2854 const Array& argument_names_; 2854 const Array& argument_names_;
2855 const intptr_t checked_argument_count_; 2855 const intptr_t checked_argument_count_;
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
3613 3613
3614 bool IsUnboxedStore() const; 3614 bool IsUnboxedStore() const;
3615 3615
3616 bool IsPotentialUnboxedStore() const; 3616 bool IsPotentialUnboxedStore() const;
3617 3617
3618 virtual Representation RequiredInputRepresentation(intptr_t index) const; 3618 virtual Representation RequiredInputRepresentation(intptr_t index) const;
3619 3619
3620 PRINT_OPERANDS_TO_SUPPORT 3620 PRINT_OPERANDS_TO_SUPPORT
3621 3621
3622 private: 3622 private:
3623 friend class FlowGraphOptimizer; // For ASSERT(initialization_). 3623 friend class JitOptimizer; // For ASSERT(initialization_).
3624 3624
3625 bool CanValueBeSmi() const { 3625 bool CanValueBeSmi() const {
3626 const intptr_t cid = value()->Type()->ToNullableCid(); 3626 const intptr_t cid = value()->Type()->ToNullableCid();
3627 // Write barrier is skipped for nullable and non-nullable smis. 3627 // Write barrier is skipped for nullable and non-nullable smis.
3628 ASSERT(cid != kSmiCid); 3628 ASSERT(cid != kSmiCid);
3629 return (cid == kDynamicCid); 3629 return (cid == kDynamicCid);
3630 } 3630 }
3631 3631
3632 const Field& field_; 3632 const Field& field_;
3633 intptr_t offset_in_bytes_; 3633 intptr_t offset_in_bytes_;
(...skipping 4575 matching lines...) Expand 10 before | Expand all | Expand 10 after
8209 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ 8209 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \
8210 UNIMPLEMENTED(); \ 8210 UNIMPLEMENTED(); \
8211 return NULL; \ 8211 return NULL; \
8212 } \ 8212 } \
8213 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } 8213 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); }
8214 8214
8215 8215
8216 } // namespace dart 8216 } // namespace dart
8217 8217
8218 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 8218 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698