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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 } | 737 } |
738 | 738 |
739 Node* CodeStubAssembler::Load(MachineType rep, Node* base) { | 739 Node* CodeStubAssembler::Load(MachineType rep, Node* base) { |
740 return raw_assembler_->Load(rep, base); | 740 return raw_assembler_->Load(rep, base); |
741 } | 741 } |
742 | 742 |
743 Node* CodeStubAssembler::Load(MachineType rep, Node* base, Node* index) { | 743 Node* CodeStubAssembler::Load(MachineType rep, Node* base, Node* index) { |
744 return raw_assembler_->Load(rep, base, index); | 744 return raw_assembler_->Load(rep, base, index); |
745 } | 745 } |
746 | 746 |
747 Node* CodeStubAssembler::AtomicLoad(MachineType rep, Node* base, Node* index) { | |
748 return raw_assembler_->AtomicLoad(rep, base, index); | |
749 } | |
750 | |
751 Node* CodeStubAssembler::Store(MachineRepresentation rep, Node* base, | 747 Node* CodeStubAssembler::Store(MachineRepresentation rep, Node* base, |
752 Node* value) { | 748 Node* value) { |
753 return raw_assembler_->Store(rep, base, value, kFullWriteBarrier); | 749 return raw_assembler_->Store(rep, base, value, kFullWriteBarrier); |
754 } | 750 } |
755 | 751 |
756 Node* CodeStubAssembler::Store(MachineRepresentation rep, Node* base, | 752 Node* CodeStubAssembler::Store(MachineRepresentation rep, Node* base, |
757 Node* index, Node* value) { | 753 Node* index, Node* value) { |
758 return raw_assembler_->Store(rep, base, index, value, kFullWriteBarrier); | 754 return raw_assembler_->Store(rep, base, index, value, kFullWriteBarrier); |
759 } | 755 } |
760 | 756 |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1313 | 1309 |
1314 Bind(&if_done); | 1310 Bind(&if_done); |
1315 return var_result.value(); | 1311 return var_result.value(); |
1316 } | 1312 } |
1317 | 1313 |
1318 Node* CodeStubAssembler::TruncateFloat64ToInt32(Node* value) { | 1314 Node* CodeStubAssembler::TruncateFloat64ToInt32(Node* value) { |
1319 return raw_assembler_->TruncateFloat64ToInt32(TruncationMode::kJavaScript, | 1315 return raw_assembler_->TruncateFloat64ToInt32(TruncationMode::kJavaScript, |
1320 value); | 1316 value); |
1321 } | 1317 } |
1322 | 1318 |
1323 Node* CodeStubAssembler::ChangeUint32ToWord(Node* value) { | |
1324 if (raw_assembler_->machine()->Is64()) { | |
1325 value = raw_assembler_->ChangeUint32ToUint64(value); | |
1326 } | |
1327 return value; | |
1328 } | |
1329 | |
1330 void CodeStubAssembler::BranchIf(Node* condition, Label* if_true, | 1319 void CodeStubAssembler::BranchIf(Node* condition, Label* if_true, |
1331 Label* if_false) { | 1320 Label* if_false) { |
1332 Label if_condition_is_true(this), if_condition_is_false(this); | 1321 Label if_condition_is_true(this), if_condition_is_false(this); |
1333 Branch(condition, &if_condition_is_true, &if_condition_is_false); | 1322 Branch(condition, &if_condition_is_true, &if_condition_is_false); |
1334 Bind(&if_condition_is_true); | 1323 Bind(&if_condition_is_true); |
1335 Goto(if_true); | 1324 Goto(if_true); |
1336 Bind(&if_condition_is_false); | 1325 Bind(&if_condition_is_false); |
1337 Goto(if_false); | 1326 Goto(if_false); |
1338 } | 1327 } |
1339 | 1328 |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1763 } | 1752 } |
1764 } | 1753 } |
1765 } | 1754 } |
1766 | 1755 |
1767 bound_ = true; | 1756 bound_ = true; |
1768 } | 1757 } |
1769 | 1758 |
1770 } // namespace compiler | 1759 } // namespace compiler |
1771 } // namespace internal | 1760 } // namespace internal |
1772 } // namespace v8 | 1761 } // namespace v8 |
OLD | NEW |