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

Unified Diff: runtime/vm/jit_optimizer.h

Issue 2265873005: VM: Remove more duplicate code between AOT and JIT compiler. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix comment Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/jit_optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/jit_optimizer.h
diff --git a/runtime/vm/jit_optimizer.h b/runtime/vm/jit_optimizer.h
index 5d5311103ba84f621f1108ea9d03a6fda569baaa..21a7855235ae3dc48a6362f63d6615bce8cc3310 100644
--- a/runtime/vm/jit_optimizer.h
+++ b/runtime/vm/jit_optimizer.h
@@ -30,11 +30,6 @@ class JitOptimizer : public FlowGraphVisitor {
// Use propagated class ids to optimize, replace or eliminate instructions.
void ApplyClassIds();
- // Optimize (a << b) & c pattern: if c is a positive Smi or zero, then the
- // shift can be a truncating Smi shift-left and result is always Smi.
- // Merge instructions (only per basic-block).
- void TryOptimizePatterns();
-
virtual void VisitStaticCall(StaticCallInstr* instr);
virtual void VisitInstanceCall(InstanceCallInstr* instr);
virtual void VisitStoreInstanceField(StoreInstanceFieldInstr* instr);
@@ -106,12 +101,6 @@ class JitOptimizer : public FlowGraphVisitor {
bool InstanceCallNeedsClassCheck(InstanceCallInstr* call,
RawFunction::Kind kind) const;
- bool InlineFloat32x4Getter(InstanceCallInstr* call,
- MethodRecognizer::Kind getter);
- bool InlineFloat64x2Getter(InstanceCallInstr* call,
- MethodRecognizer::Kind getter);
- bool InlineInt32x4Getter(InstanceCallInstr* call,
- MethodRecognizer::Kind getter);
bool InlineFloat32x4BinaryOp(InstanceCallInstr* call,
Token::Kind op_kind);
bool InlineInt32x4BinaryOp(InstanceCallInstr* call,
@@ -127,14 +116,6 @@ class JitOptimizer : public FlowGraphVisitor {
void ReplaceWithMathCFunction(InstanceCallInstr* call,
MethodRecognizer::Kind recognized_kind);
- void OptimizeLeftShiftBitAndSmiOp(Definition* bit_and_instr,
- Definition* left_instr,
- Definition* right_instr);
- void TryMergeTruncDivMod(GrowableArray<BinarySmiOpInstr*>* merge_candidates);
- void TryMergeMathUnary(GrowableArray<MathUnaryInstr*>* merge_candidates);
-
- void AppendExtractNthOutputForMerged(Definition* instr, intptr_t ix,
- Representation rep, intptr_t cid);
bool TryStringLengthOneEquality(InstanceCallInstr* call, Token::Kind op_kind);
RawField* GetField(intptr_t class_id, const String& field_name);
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/jit_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698