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

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: Explicitly state the type of test values. 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
« no previous file with comments | « src/compiler/ppc/code-generator-ppc.cc ('k') | src/compiler/typer.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 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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 bool bound_; 686 bool bound_;
684 friend class RawMachineAssembler; 687 friend class RawMachineAssembler;
685 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); 688 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel);
686 }; 689 };
687 690
688 } // namespace compiler 691 } // namespace compiler
689 } // namespace internal 692 } // namespace internal
690 } // namespace v8 693 } // namespace v8
691 694
692 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 695 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/ppc/code-generator-ppc.cc ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698