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

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

Issue 14326006: Optimize static field and context load/stores as part of CSE pass. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
« runtime/vm/flow_graph_optimizer.cc ('K') | « runtime/vm/hash_map.h ('k') | no next file » | 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 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after
2312 public: 2312 public:
2313 CurrentContextInstr() { } 2313 CurrentContextInstr() { }
2314 2314
2315 DECLARE_INSTRUCTION(CurrentContext) 2315 DECLARE_INSTRUCTION(CurrentContext)
2316 virtual CompileType ComputeType() const; 2316 virtual CompileType ComputeType() const;
2317 2317
2318 virtual bool CanDeoptimize() const { return false; } 2318 virtual bool CanDeoptimize() const { return false; }
2319 2319
2320 virtual bool HasSideEffect() const { return false; } 2320 virtual bool HasSideEffect() const { return false; }
2321 2321
2322 virtual bool AttributesEqual(Instruction* other) const { return true; }
2323
2322 private: 2324 private:
2323 DISALLOW_COPY_AND_ASSIGN(CurrentContextInstr); 2325 DISALLOW_COPY_AND_ASSIGN(CurrentContextInstr);
2324 }; 2326 };
2325 2327
2326 2328
2327 class ClosureCallInstr : public TemplateDefinition<0> { 2329 class ClosureCallInstr : public TemplateDefinition<0> {
2328 public: 2330 public:
2329 ClosureCallInstr(ClosureCallNode* node, 2331 ClosureCallInstr(ClosureCallNode* node,
2330 ZoneGrowableArray<PushArgumentInstr*>* arguments) 2332 ZoneGrowableArray<PushArgumentInstr*>* arguments)
2331 : ast_node_(*node), 2333 : ast_node_(*node),
(...skipping 2608 matching lines...) Expand 10 before | Expand all | Expand 10 after
4940 ForwardInstructionIterator* current_iterator_; 4942 ForwardInstructionIterator* current_iterator_;
4941 4943
4942 private: 4944 private:
4943 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4945 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4944 }; 4946 };
4945 4947
4946 4948
4947 } // namespace dart 4949 } // namespace dart
4948 4950
4949 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4951 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« runtime/vm/flow_graph_optimizer.cc ('K') | « runtime/vm/hash_map.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698