| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/compiler/code-assembler.h" | 5 #include "src/compiler/code-assembler.h" |
| 6 | 6 |
| 7 #include <ostream> | 7 #include <ostream> |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 Node* CodeAssembler::name(Node* a, Node* b) { \ | 153 Node* CodeAssembler::name(Node* a, Node* b) { \ |
| 154 return raw_assembler_->name(a, b); \ | 154 return raw_assembler_->name(a, b); \ |
| 155 } | 155 } |
| 156 CODE_ASSEMBLER_BINARY_OP_LIST(DEFINE_CODE_ASSEMBLER_BINARY_OP) | 156 CODE_ASSEMBLER_BINARY_OP_LIST(DEFINE_CODE_ASSEMBLER_BINARY_OP) |
| 157 #undef DEFINE_CODE_ASSEMBLER_BINARY_OP | 157 #undef DEFINE_CODE_ASSEMBLER_BINARY_OP |
| 158 | 158 |
| 159 Node* CodeAssembler::WordShl(Node* value, int shift) { | 159 Node* CodeAssembler::WordShl(Node* value, int shift) { |
| 160 return raw_assembler_->WordShl(value, IntPtrConstant(shift)); | 160 return raw_assembler_->WordShl(value, IntPtrConstant(shift)); |
| 161 } | 161 } |
| 162 | 162 |
| 163 Node* CodeAssembler::WordShr(Node* value, int shift) { |
| 164 return raw_assembler_->WordShr(value, IntPtrConstant(shift)); |
| 165 } |
| 166 |
| 163 Node* CodeAssembler::ChangeUint32ToWord(Node* value) { | 167 Node* CodeAssembler::ChangeUint32ToWord(Node* value) { |
| 164 if (raw_assembler_->machine()->Is64()) { | 168 if (raw_assembler_->machine()->Is64()) { |
| 165 value = raw_assembler_->ChangeUint32ToUint64(value); | 169 value = raw_assembler_->ChangeUint32ToUint64(value); |
| 166 } | 170 } |
| 167 return value; | 171 return value; |
| 168 } | 172 } |
| 169 | 173 |
| 170 Node* CodeAssembler::ChangeInt32ToIntPtr(Node* value) { | 174 Node* CodeAssembler::ChangeInt32ToIntPtr(Node* value) { |
| 171 if (raw_assembler_->machine()->Is64()) { | 175 if (raw_assembler_->machine()->Is64()) { |
| 172 value = raw_assembler_->ChangeInt32ToInt64(value); | 176 value = raw_assembler_->ChangeInt32ToInt64(value); |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 } | 690 } |
| 687 } | 691 } |
| 688 } | 692 } |
| 689 | 693 |
| 690 bound_ = true; | 694 bound_ = true; |
| 691 } | 695 } |
| 692 | 696 |
| 693 } // namespace compiler | 697 } // namespace compiler |
| 694 } // namespace internal | 698 } // namespace internal |
| 695 } // namespace v8 | 699 } // namespace v8 |
| OLD | NEW |