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

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

Issue 10553040: Inline binary And operation for Mint and Smi in new compilers. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language_ia32.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 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after
1560 const LocalVariable& stacktrace_var_; 1560 const LocalVariable& stacktrace_var_;
1561 1561
1562 DISALLOW_COPY_AND_ASSIGN(CatchEntryComp); 1562 DISALLOW_COPY_AND_ASSIGN(CatchEntryComp);
1563 }; 1563 };
1564 1564
1565 1565
1566 class BinaryOpComp : public TemplateComputation<2> { 1566 class BinaryOpComp : public TemplateComputation<2> {
1567 public: 1567 public:
1568 enum OperandsType { 1568 enum OperandsType {
1569 kSmiOperands, 1569 kSmiOperands,
1570 kMintOperands,
1570 kDoubleOperands 1571 kDoubleOperands
1571 }; 1572 };
1572 1573
1573 BinaryOpComp(Token::Kind op_kind, 1574 BinaryOpComp(Token::Kind op_kind,
1574 OperandsType operands_type, 1575 OperandsType operands_type,
1575 InstanceCallComp* instance_call, 1576 InstanceCallComp* instance_call,
1576 Value* left, 1577 Value* left,
1577 Value* right) 1578 Value* right)
1578 : op_kind_(op_kind), 1579 : op_kind_(op_kind),
1579 operands_type_(operands_type), 1580 operands_type_(operands_type),
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
2424 const GrowableArray<BlockEntryInstr*>& block_order_; 2425 const GrowableArray<BlockEntryInstr*>& block_order_;
2425 2426
2426 private: 2427 private:
2427 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 2428 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
2428 }; 2429 };
2429 2430
2430 2431
2431 } // namespace dart 2432 } // namespace dart
2432 2433
2433 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 2434 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698