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

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

Issue 1645653002: [turbofan] Add the StackSlot operator to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Added better tests Created 4 years, 10 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 return IntPtrConstant(reinterpret_cast<intptr_t>(value)); 72 return IntPtrConstant(reinterpret_cast<intptr_t>(value));
73 } 73 }
74 Node* IntPtrConstant(intptr_t value) { 74 Node* IntPtrConstant(intptr_t value) {
75 // TODO(dcarney): mark generated code as unserializable if value != 0. 75 // TODO(dcarney): mark generated code as unserializable if value != 0.
76 return kPointerSize == 8 ? Int64Constant(value) 76 return kPointerSize == 8 ? Int64Constant(value)
77 : Int32Constant(static_cast<int>(value)); 77 : Int32Constant(static_cast<int>(value));
78 } 78 }
79 Node* Int32Constant(int32_t value) { 79 Node* Int32Constant(int32_t value) {
80 return AddNode(common()->Int32Constant(value)); 80 return AddNode(common()->Int32Constant(value));
81 } 81 }
82 Node* StackSlot(MachineRepresentation rep) {
83 return AddNode(machine()->StackSlot(rep));
84 }
82 Node* Int64Constant(int64_t value) { 85 Node* Int64Constant(int64_t value) {
83 return AddNode(common()->Int64Constant(value)); 86 return AddNode(common()->Int64Constant(value));
84 } 87 }
85 Node* NumberConstant(double value) { 88 Node* NumberConstant(double value) {
86 return AddNode(common()->NumberConstant(value)); 89 return AddNode(common()->NumberConstant(value));
87 } 90 }
88 Node* Float32Constant(float value) { 91 Node* Float32Constant(float value) {
89 return AddNode(common()->Float32Constant(value)); 92 return AddNode(common()->Float32Constant(value));
90 } 93 }
91 Node* Float64Constant(double value) { 94 Node* Float64Constant(double value) {
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 bool bound_; 683 bool bound_;
681 friend class RawMachineAssembler; 684 friend class RawMachineAssembler;
682 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); 685 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel);
683 }; 686 };
684 687
685 } // namespace compiler 688 } // namespace compiler
686 } // namespace internal 689 } // namespace internal
687 } // namespace v8 690 } // namespace v8
688 691
689 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 692 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698