| 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::TruncateFloat64ToInt32RoundToZero(Node* a) { | |
| 164 return raw_assembler_->TruncateFloat64ToInt32(TruncationMode::kRoundToZero, | |
| 165 a); | |
| 166 } | |
| 167 | |
| 168 Node* CodeAssembler::TruncateFloat64ToInt32JavaScript(Node* a) { | |
| 169 return raw_assembler_->TruncateFloat64ToInt32(TruncationMode::kJavaScript, a); | |
| 170 } | |
| 171 | |
| 172 Node* CodeAssembler::ChangeUint32ToWord(Node* value) { | 163 Node* CodeAssembler::ChangeUint32ToWord(Node* value) { |
| 173 if (raw_assembler_->machine()->Is64()) { | 164 if (raw_assembler_->machine()->Is64()) { |
| 174 value = raw_assembler_->ChangeUint32ToUint64(value); | 165 value = raw_assembler_->ChangeUint32ToUint64(value); |
| 175 } | 166 } |
| 176 return value; | 167 return value; |
| 177 } | 168 } |
| 178 | 169 |
| 179 Node* CodeAssembler::ChangeInt32ToIntPtr(Node* value) { | 170 Node* CodeAssembler::ChangeInt32ToIntPtr(Node* value) { |
| 180 if (raw_assembler_->machine()->Is64()) { | 171 if (raw_assembler_->machine()->Is64()) { |
| 181 value = raw_assembler_->ChangeInt32ToInt64(value); | 172 value = raw_assembler_->ChangeInt32ToInt64(value); |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 } | 686 } |
| 696 } | 687 } |
| 697 } | 688 } |
| 698 | 689 |
| 699 bound_ = true; | 690 bound_ = true; |
| 700 } | 691 } |
| 701 | 692 |
| 702 } // namespace compiler | 693 } // namespace compiler |
| 703 } // namespace internal | 694 } // namespace internal |
| 704 } // namespace v8 | 695 } // namespace v8 |
| OLD | NEW |