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

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

Issue 2874713003: [turbofan] Reland of `Add alignment parameter to StackSlot operator` (Closed)
Patch Set: Fix failures with control flow integrity bots Created 3 years, 7 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
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 Node* IntPtrConstant(intptr_t value) { 78 Node* IntPtrConstant(intptr_t value) {
79 // TODO(dcarney): mark generated code as unserializable if value != 0. 79 // TODO(dcarney): mark generated code as unserializable if value != 0.
80 return kPointerSize == 8 ? Int64Constant(value) 80 return kPointerSize == 8 ? Int64Constant(value)
81 : Int32Constant(static_cast<int>(value)); 81 : Int32Constant(static_cast<int>(value));
82 } 82 }
83 Node* RelocatableIntPtrConstant(intptr_t value, RelocInfo::Mode rmode); 83 Node* RelocatableIntPtrConstant(intptr_t value, RelocInfo::Mode rmode);
84 Node* Int32Constant(int32_t value) { 84 Node* Int32Constant(int32_t value) {
85 return AddNode(common()->Int32Constant(value)); 85 return AddNode(common()->Int32Constant(value));
86 } 86 }
87 Node* StackSlot(MachineRepresentation rep) { 87 Node* StackSlot(MachineRepresentation rep, int alignment = 0) {
88 return AddNode(machine()->StackSlot(rep)); 88 return AddNode(machine()->StackSlot(rep, alignment));
89 } 89 }
90 Node* Int64Constant(int64_t value) { 90 Node* Int64Constant(int64_t value) {
91 return AddNode(common()->Int64Constant(value)); 91 return AddNode(common()->Int64Constant(value));
92 } 92 }
93 Node* NumberConstant(double value) { 93 Node* NumberConstant(double value) {
94 return AddNode(common()->NumberConstant(value)); 94 return AddNode(common()->NumberConstant(value));
95 } 95 }
96 Node* Float32Constant(float value) { 96 Node* Float32Constant(float value) {
97 return AddNode(common()->Float32Constant(value)); 97 return AddNode(common()->Float32Constant(value));
98 } 98 }
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 bool deferred_; 900 bool deferred_;
901 friend class RawMachineAssembler; 901 friend class RawMachineAssembler;
902 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); 902 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel);
903 }; 903 };
904 904
905 } // namespace compiler 905 } // namespace compiler
906 } // namespace internal 906 } // namespace internal
907 } // namespace v8 907 } // namespace v8
908 908
909 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 909 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.cc ('k') | src/compiler/s390/instruction-selector-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698