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

Side by Side Diff: src/compiler/code-stub-assembler.cc

Issue 1891033002: [Atomics] Remove Atomics code stubs; use TF ops (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove s390 code stub Created 4 years, 8 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
« no previous file with comments | « src/compiler/code-stub-assembler.h ('k') | src/compiler/ia32/code-generator-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 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
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
747 Node* CodeStubAssembler::Store(MachineRepresentation rep, Node* base, 751 Node* CodeStubAssembler::Store(MachineRepresentation rep, Node* base,
748 Node* value) { 752 Node* value) {
749 return raw_assembler_->Store(rep, base, value, kFullWriteBarrier); 753 return raw_assembler_->Store(rep, base, value, kFullWriteBarrier);
750 } 754 }
751 755
752 Node* CodeStubAssembler::Store(MachineRepresentation rep, Node* base, 756 Node* CodeStubAssembler::Store(MachineRepresentation rep, Node* base,
753 Node* index, Node* value) { 757 Node* index, Node* value) {
754 return raw_assembler_->Store(rep, base, index, value, kFullWriteBarrier); 758 return raw_assembler_->Store(rep, base, index, value, kFullWriteBarrier);
755 } 759 }
756 760
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 1313
1310 Bind(&if_done); 1314 Bind(&if_done);
1311 return var_result.value(); 1315 return var_result.value();
1312 } 1316 }
1313 1317
1314 Node* CodeStubAssembler::TruncateFloat64ToInt32(Node* value) { 1318 Node* CodeStubAssembler::TruncateFloat64ToInt32(Node* value) {
1315 return raw_assembler_->TruncateFloat64ToInt32(TruncationMode::kJavaScript, 1319 return raw_assembler_->TruncateFloat64ToInt32(TruncationMode::kJavaScript,
1316 value); 1320 value);
1317 } 1321 }
1318 1322
1323 Node* CodeStubAssembler::ChangeUint32ToWord(Node* value) {
1324 if (raw_assembler_->machine()->Is64()) {
1325 value = raw_assembler_->ChangeUint32ToUint64(value);
1326 }
1327 return value;
1328 }
1329
1319 void CodeStubAssembler::BranchIf(Node* condition, Label* if_true, 1330 void CodeStubAssembler::BranchIf(Node* condition, Label* if_true,
1320 Label* if_false) { 1331 Label* if_false) {
1321 Label if_condition_is_true(this), if_condition_is_false(this); 1332 Label if_condition_is_true(this), if_condition_is_false(this);
1322 Branch(condition, &if_condition_is_true, &if_condition_is_false); 1333 Branch(condition, &if_condition_is_true, &if_condition_is_false);
1323 Bind(&if_condition_is_true); 1334 Bind(&if_condition_is_true);
1324 Goto(if_true); 1335 Goto(if_true);
1325 Bind(&if_condition_is_false); 1336 Bind(&if_condition_is_false);
1326 Goto(if_false); 1337 Goto(if_false);
1327 } 1338 }
1328 1339
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
1752 } 1763 }
1753 } 1764 }
1754 } 1765 }
1755 1766
1756 bound_ = true; 1767 bound_ = true;
1757 } 1768 }
1758 1769
1759 } // namespace compiler 1770 } // namespace compiler
1760 } // namespace internal 1771 } // namespace internal
1761 } // namespace v8 1772 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-stub-assembler.h ('k') | src/compiler/ia32/code-generator-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698