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

Side by Side Diff: src/compiler/raw-machine-assembler.h

Issue 2330063002: [stubs] Port StoreFastElementsStub to TurboFan. (Closed)
Patch Set: Retain removed, a comment added Created 4 years, 3 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-assembler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 Node* Store(MachineRepresentation rep, Node* base, Node* value, 129 Node* Store(MachineRepresentation rep, Node* base, Node* value,
130 WriteBarrierKind write_barrier) { 130 WriteBarrierKind write_barrier) {
131 return Store(rep, base, IntPtrConstant(0), value, write_barrier); 131 return Store(rep, base, IntPtrConstant(0), value, write_barrier);
132 } 132 }
133 Node* Store(MachineRepresentation rep, Node* base, Node* index, Node* value, 133 Node* Store(MachineRepresentation rep, Node* base, Node* index, Node* value,
134 WriteBarrierKind write_barrier) { 134 WriteBarrierKind write_barrier) {
135 return AddNode(machine()->Store(StoreRepresentation(rep, write_barrier)), 135 return AddNode(machine()->Store(StoreRepresentation(rep, write_barrier)),
136 base, index, value); 136 base, index, value);
137 } 137 }
138 Node* Retain(Node* value) { return AddNode(common()->Retain(), value); }
138 139
139 // Unaligned memory operations 140 // Unaligned memory operations
140 Node* UnalignedLoad(MachineType rep, Node* base) { 141 Node* UnalignedLoad(MachineType rep, Node* base) {
141 return UnalignedLoad(rep, base, IntPtrConstant(0)); 142 return UnalignedLoad(rep, base, IntPtrConstant(0));
142 } 143 }
143 Node* UnalignedLoad(MachineType rep, Node* base, Node* index) { 144 Node* UnalignedLoad(MachineType rep, Node* base, Node* index) {
144 if (machine()->UnalignedLoadSupported(rep, 1)) { 145 if (machine()->UnalignedLoadSupported(rep, 1)) {
145 return AddNode(machine()->Load(rep), base, index); 146 return AddNode(machine()->Load(rep), base, index);
146 } else { 147 } else {
147 return AddNode(machine()->UnalignedLoad(rep), base, index); 148 return AddNode(machine()->UnalignedLoad(rep), base, index);
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 } 653 }
653 Node* Float64ExtractHighWord32(Node* a) { 654 Node* Float64ExtractHighWord32(Node* a) {
654 return AddNode(machine()->Float64ExtractHighWord32(), a); 655 return AddNode(machine()->Float64ExtractHighWord32(), a);
655 } 656 }
656 Node* Float64InsertLowWord32(Node* a, Node* b) { 657 Node* Float64InsertLowWord32(Node* a, Node* b) {
657 return AddNode(machine()->Float64InsertLowWord32(), a, b); 658 return AddNode(machine()->Float64InsertLowWord32(), a, b);
658 } 659 }
659 Node* Float64InsertHighWord32(Node* a, Node* b) { 660 Node* Float64InsertHighWord32(Node* a, Node* b) {
660 return AddNode(machine()->Float64InsertHighWord32(), a, b); 661 return AddNode(machine()->Float64InsertHighWord32(), a, b);
661 } 662 }
663 Node* Float64SilenceNaN(Node* a) {
664 return AddNode(machine()->Float64SilenceNaN(), a);
665 }
662 666
663 // Stack operations. 667 // Stack operations.
664 Node* LoadStackPointer() { return AddNode(machine()->LoadStackPointer()); } 668 Node* LoadStackPointer() { return AddNode(machine()->LoadStackPointer()); }
665 Node* LoadFramePointer() { return AddNode(machine()->LoadFramePointer()); } 669 Node* LoadFramePointer() { return AddNode(machine()->LoadFramePointer()); }
666 Node* LoadParentFramePointer() { 670 Node* LoadParentFramePointer() {
667 return AddNode(machine()->LoadParentFramePointer()); 671 return AddNode(machine()->LoadParentFramePointer());
668 } 672 }
669 673
670 // Parameters. 674 // Parameters.
671 Node* Parameter(size_t index); 675 Node* Parameter(size_t index);
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 bool deferred_; 844 bool deferred_;
841 friend class RawMachineAssembler; 845 friend class RawMachineAssembler;
842 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); 846 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel);
843 }; 847 };
844 848
845 } // namespace compiler 849 } // namespace compiler
846 } // namespace internal 850 } // namespace internal
847 } // namespace v8 851 } // namespace v8
848 852
849 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 853 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698