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

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

Issue 2094613003: Canonicalize CheckedSmiOp if compile type turns out to be smi. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: add comment Created 4 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
« no previous file with comments | « no previous file | 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 6892 matching lines...) Expand 10 before | Expand all | Expand 10 after
6903 6903
6904 InstanceCallInstr* call() const { return call_; } 6904 InstanceCallInstr* call() const { return call_; }
6905 Token::Kind op_kind() const { return op_kind_; } 6905 Token::Kind op_kind() const { return op_kind_; }
6906 Value* left() const { return inputs_[0]; } 6906 Value* left() const { return inputs_[0]; }
6907 Value* right() const { return inputs_[1]; } 6907 Value* right() const { return inputs_[1]; }
6908 6908
6909 virtual bool CanDeoptimize() const { return true; } 6909 virtual bool CanDeoptimize() const { return true; }
6910 6910
6911 virtual EffectSet Effects() const { return EffectSet::All(); } 6911 virtual EffectSet Effects() const { return EffectSet::All(); }
6912 6912
6913 virtual Definition* Canonicalize(FlowGraph* flow_graph);
6914
6913 PRINT_OPERANDS_TO_SUPPORT 6915 PRINT_OPERANDS_TO_SUPPORT
6914 6916
6915 DECLARE_INSTRUCTION(CheckedSmiOp) 6917 DECLARE_INSTRUCTION(CheckedSmiOp)
6916 6918
6917 private: 6919 private:
6918 InstanceCallInstr* call_; 6920 InstanceCallInstr* call_;
6919 const Token::Kind op_kind_; 6921 const Token::Kind op_kind_;
6920 DISALLOW_COPY_AND_ASSIGN(CheckedSmiOpInstr); 6922 DISALLOW_COPY_AND_ASSIGN(CheckedSmiOpInstr);
6921 }; 6923 };
6922 6924
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
8293 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ 8295 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \
8294 UNIMPLEMENTED(); \ 8296 UNIMPLEMENTED(); \
8295 return NULL; \ 8297 return NULL; \
8296 } \ 8298 } \
8297 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } 8299 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); }
8298 8300
8299 8301
8300 } // namespace dart 8302 } // namespace dart
8301 8303
8302 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 8304 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698