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

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

Issue 11085004: Faster 64-bit left-shift for ia32. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: addressed comments. Created 8 years, 2 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 3577 matching lines...) Expand 10 before | Expand all | Expand 10 after
3588 3588
3589 class ShiftMintOpInstr : public TemplateDefinition<2> { 3589 class ShiftMintOpInstr : public TemplateDefinition<2> {
3590 public: 3590 public:
3591 ShiftMintOpInstr(Token::Kind op_kind, 3591 ShiftMintOpInstr(Token::Kind op_kind,
3592 Value* left, 3592 Value* left,
3593 Value* right, 3593 Value* right,
3594 InstanceCallInstr* instance_call) 3594 InstanceCallInstr* instance_call)
3595 : op_kind_(op_kind) { 3595 : op_kind_(op_kind) {
3596 ASSERT(left != NULL); 3596 ASSERT(left != NULL);
3597 ASSERT(right != NULL); 3597 ASSERT(right != NULL);
3598 ASSERT(op_kind == Token::kSHR); 3598 ASSERT(op_kind == Token::kSHR || op_kind == Token::kSHL);
3599 inputs_[0] = left; 3599 inputs_[0] = left;
3600 inputs_[1] = right; 3600 inputs_[1] = right;
3601 deopt_id_ = instance_call->deopt_id(); 3601 deopt_id_ = instance_call->deopt_id();
3602 } 3602 }
3603 3603
3604 Value* left() const { return inputs_[0]; } 3604 Value* left() const { return inputs_[0]; }
3605 Value* right() const { return inputs_[1]; } 3605 Value* right() const { return inputs_[1]; }
3606 3606
3607 Token::Kind op_kind() const { return op_kind_; } 3607 Token::Kind op_kind() const { return op_kind_; }
3608 3608
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
4184 ForwardInstructionIterator* current_iterator_; 4184 ForwardInstructionIterator* current_iterator_;
4185 4185
4186 private: 4186 private:
4187 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4187 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4188 }; 4188 };
4189 4189
4190 4190
4191 } // namespace dart 4191 } // namespace dart
4192 4192
4193 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4193 #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