| 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-stub-assembler.h" | 5 #include "src/compiler/code-stub-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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 } | 746 } |
| 747 | 747 |
| 748 Node* CodeStubAssembler::Load(MachineType rep, Node* base) { | 748 Node* CodeStubAssembler::Load(MachineType rep, Node* base) { |
| 749 return raw_assembler_->Load(rep, base); | 749 return raw_assembler_->Load(rep, base); |
| 750 } | 750 } |
| 751 | 751 |
| 752 Node* CodeStubAssembler::Load(MachineType rep, Node* base, Node* index) { | 752 Node* CodeStubAssembler::Load(MachineType rep, Node* base, Node* index) { |
| 753 return raw_assembler_->Load(rep, base, index); | 753 return raw_assembler_->Load(rep, base, index); |
| 754 } | 754 } |
| 755 | 755 |
| 756 Node* CodeStubAssembler::AtomicLoad(MachineType rep, Node* base, Node* index) { |
| 757 return raw_assembler_->AtomicLoad(rep, base, index); |
| 758 } |
| 759 |
| 756 Node* CodeStubAssembler::Store(MachineRepresentation rep, Node* base, | 760 Node* CodeStubAssembler::Store(MachineRepresentation rep, Node* base, |
| 757 Node* value) { | 761 Node* value) { |
| 758 return raw_assembler_->Store(rep, base, value, kFullWriteBarrier); | 762 return raw_assembler_->Store(rep, base, value, kFullWriteBarrier); |
| 759 } | 763 } |
| 760 | 764 |
| 761 Node* CodeStubAssembler::Store(MachineRepresentation rep, Node* base, | 765 Node* CodeStubAssembler::Store(MachineRepresentation rep, Node* base, |
| 762 Node* index, Node* value) { | 766 Node* index, Node* value) { |
| 763 return raw_assembler_->Store(rep, base, index, value, kFullWriteBarrier); | 767 return raw_assembler_->Store(rep, base, index, value, kFullWriteBarrier); |
| 764 } | 768 } |
| 765 | 769 |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1318 | 1322 |
| 1319 Bind(&if_done); | 1323 Bind(&if_done); |
| 1320 return var_result.value(); | 1324 return var_result.value(); |
| 1321 } | 1325 } |
| 1322 | 1326 |
| 1323 Node* CodeStubAssembler::TruncateFloat64ToInt32(Node* value) { | 1327 Node* CodeStubAssembler::TruncateFloat64ToInt32(Node* value) { |
| 1324 return raw_assembler_->TruncateFloat64ToInt32(TruncationMode::kJavaScript, | 1328 return raw_assembler_->TruncateFloat64ToInt32(TruncationMode::kJavaScript, |
| 1325 value); | 1329 value); |
| 1326 } | 1330 } |
| 1327 | 1331 |
| 1332 Node* CodeStubAssembler::ChangeUint32ToWord(Node* value) { |
| 1333 if (raw_assembler_->machine()->Is64()) { |
| 1334 value = raw_assembler_->ChangeUint32ToUint64(value); |
| 1335 } |
| 1336 return value; |
| 1337 } |
| 1338 |
| 1328 void CodeStubAssembler::BranchIf(Node* condition, Label* if_true, | 1339 void CodeStubAssembler::BranchIf(Node* condition, Label* if_true, |
| 1329 Label* if_false) { | 1340 Label* if_false) { |
| 1330 Label if_condition_is_true(this), if_condition_is_false(this); | 1341 Label if_condition_is_true(this), if_condition_is_false(this); |
| 1331 Branch(condition, &if_condition_is_true, &if_condition_is_false); | 1342 Branch(condition, &if_condition_is_true, &if_condition_is_false); |
| 1332 Bind(&if_condition_is_true); | 1343 Bind(&if_condition_is_true); |
| 1333 Goto(if_true); | 1344 Goto(if_true); |
| 1334 Bind(&if_condition_is_false); | 1345 Bind(&if_condition_is_false); |
| 1335 Goto(if_false); | 1346 Goto(if_false); |
| 1336 } | 1347 } |
| 1337 | 1348 |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1761 } | 1772 } |
| 1762 } | 1773 } |
| 1763 } | 1774 } |
| 1764 | 1775 |
| 1765 bound_ = true; | 1776 bound_ = true; |
| 1766 } | 1777 } |
| 1767 | 1778 |
| 1768 } // namespace compiler | 1779 } // namespace compiler |
| 1769 } // namespace internal | 1780 } // namespace internal |
| 1770 } // namespace v8 | 1781 } // namespace v8 |
| OLD | NEW |