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

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

Issue 1513383003: [turbofan] Store nodes use only MachineRepresentation, not MachineType. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: please mips64 Created 5 years 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/mips64/instruction-selector-mips64.cc ('k') | src/compiler/simplified-lowering.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 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 return AddNode(common()->Projection(index), a); 106 return AddNode(common()->Projection(index), a);
107 } 107 }
108 108
109 // Memory Operations. 109 // Memory Operations.
110 Node* Load(MachineType rep, Node* base) { 110 Node* Load(MachineType rep, Node* base) {
111 return Load(rep, base, IntPtrConstant(0)); 111 return Load(rep, base, IntPtrConstant(0));
112 } 112 }
113 Node* Load(MachineType rep, Node* base, Node* index) { 113 Node* Load(MachineType rep, Node* base, Node* index) {
114 return AddNode(machine()->Load(rep), base, index); 114 return AddNode(machine()->Load(rep), base, index);
115 } 115 }
116 Node* Store(MachineType rep, Node* base, Node* value, 116 Node* Store(MachineRepresentation rep, Node* base, Node* value,
117 WriteBarrierKind write_barrier) { 117 WriteBarrierKind write_barrier) {
118 return Store(rep, base, IntPtrConstant(0), value, write_barrier); 118 return Store(rep, base, IntPtrConstant(0), value, write_barrier);
119 } 119 }
120 Node* Store(MachineType rep, Node* base, Node* index, Node* value, 120 Node* Store(MachineRepresentation rep, Node* base, Node* index, Node* value,
121 WriteBarrierKind write_barrier) { 121 WriteBarrierKind write_barrier) {
122 return AddNode(machine()->Store(StoreRepresentation(rep, write_barrier)), 122 return AddNode(machine()->Store(StoreRepresentation(rep, write_barrier)),
123 base, index, value); 123 base, index, value);
124 } 124 }
125 125
126 // Arithmetic Operations. 126 // Arithmetic Operations.
127 Node* WordAnd(Node* a, Node* b) { 127 Node* WordAnd(Node* a, Node* b) {
128 return AddNode(machine()->WordAnd(), a, b); 128 return AddNode(machine()->WordAnd(), a, b);
129 } 129 }
130 Node* WordOr(Node* a, Node* b) { return AddNode(machine()->WordOr(), a, b); } 130 Node* WordOr(Node* a, Node* b) { return AddNode(machine()->WordOr(), a, b); }
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 Node* LoadStackPointer() { return AddNode(machine()->LoadStackPointer()); } 543 Node* LoadStackPointer() { return AddNode(machine()->LoadStackPointer()); }
544 Node* LoadFramePointer() { return AddNode(machine()->LoadFramePointer()); } 544 Node* LoadFramePointer() { return AddNode(machine()->LoadFramePointer()); }
545 545
546 // Parameters. 546 // Parameters.
547 Node* Parameter(size_t index); 547 Node* Parameter(size_t index);
548 548
549 // Pointer utilities. 549 // Pointer utilities.
550 Node* LoadFromPointer(void* address, MachineType rep, int32_t offset = 0) { 550 Node* LoadFromPointer(void* address, MachineType rep, int32_t offset = 0) {
551 return Load(rep, PointerConstant(address), Int32Constant(offset)); 551 return Load(rep, PointerConstant(address), Int32Constant(offset));
552 } 552 }
553 Node* StoreToPointer(void* address, MachineType rep, Node* node) { 553 Node* StoreToPointer(void* address, MachineRepresentation rep, Node* node) {
554 return Store(rep, PointerConstant(address), node, kNoWriteBarrier); 554 return Store(rep, PointerConstant(address), node, kNoWriteBarrier);
555 } 555 }
556 Node* StringConstant(const char* string) { 556 Node* StringConstant(const char* string) {
557 return HeapConstant(isolate()->factory()->InternalizeUtf8String(string)); 557 return HeapConstant(isolate()->factory()->InternalizeUtf8String(string));
558 } 558 }
559 559
560 // Call a given call descriptor and the given arguments. 560 // Call a given call descriptor and the given arguments.
561 Node* CallN(CallDescriptor* desc, Node* function, Node** args); 561 Node* CallN(CallDescriptor* desc, Node* function, Node** args);
562 // Call a given call descriptor and the given arguments and frame-state. 562 // Call a given call descriptor and the given arguments and frame-state.
563 Node* CallNWithFrameState(CallDescriptor* desc, Node* function, Node** args, 563 Node* CallNWithFrameState(CallDescriptor* desc, Node* function, Node** args,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 bool bound_; 678 bool bound_;
679 friend class RawMachineAssembler; 679 friend class RawMachineAssembler;
680 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); 680 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel);
681 }; 681 };
682 682
683 } // namespace compiler 683 } // namespace compiler
684 } // namespace internal 684 } // namespace internal
685 } // namespace v8 685 } // namespace v8
686 686
687 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 687 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/mips64/instruction-selector-mips64.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698