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

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
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 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after
1556 const LocalVariable& stacktrace_var_; 1556 const LocalVariable& stacktrace_var_;
1557 1557
1558 DISALLOW_COPY_AND_ASSIGN(CatchEntryComp); 1558 DISALLOW_COPY_AND_ASSIGN(CatchEntryComp);
1559 }; 1559 };
1560 1560
1561 1561
1562 class BinaryOpComp : public TemplateComputation<2> { 1562 class BinaryOpComp : public TemplateComputation<2> {
1563 public: 1563 public:
1564 enum OperandsType { 1564 enum OperandsType {
1565 kSmiOperands, 1565 kSmiOperands,
1566 kMintOperands,
1566 kDoubleOperands 1567 kDoubleOperands
1567 }; 1568 };
1568 1569
1569 BinaryOpComp(Token::Kind op_kind, 1570 BinaryOpComp(Token::Kind op_kind,
1570 OperandsType operands_type, 1571 OperandsType operands_type,
1571 InstanceCallComp* instance_call, 1572 InstanceCallComp* instance_call,
1572 Value* left, 1573 Value* left,
1573 Value* right) 1574 Value* right)
1574 : op_kind_(op_kind), 1575 : op_kind_(op_kind),
1575 operands_type_(operands_type), 1576 operands_type_(operands_type),
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
2420 const GrowableArray<BlockEntryInstr*>& block_order_; 2421 const GrowableArray<BlockEntryInstr*>& block_order_;
2421 2422
2422 private: 2423 private:
2423 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 2424 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
2424 }; 2425 };
2425 2426
2426 2427
2427 } // namespace dart 2428 } // namespace dart
2428 2429
2429 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 2430 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698