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

Side by Side Diff: src/compiler/instruction-selector.h

Issue 1578723002: [turbofan] Build s/NULL/nullptr/g and CHECK(x != nullptr) to CHECK_NOT_NULL(x). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/instruction.cc ('k') | src/compiler/instruction-selector.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_INSTRUCTION_SELECTOR_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_H_
6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_ 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 void StartBlock(RpoNumber rpo); 62 void StartBlock(RpoNumber rpo);
63 void EndBlock(RpoNumber rpo); 63 void EndBlock(RpoNumber rpo);
64 void AddInstruction(Instruction* instr); 64 void AddInstruction(Instruction* instr);
65 65
66 // =========================================================================== 66 // ===========================================================================
67 // ============= Architecture-independent code emission methods. ============= 67 // ============= Architecture-independent code emission methods. =============
68 // =========================================================================== 68 // ===========================================================================
69 69
70 Instruction* Emit(InstructionCode opcode, InstructionOperand output, 70 Instruction* Emit(InstructionCode opcode, InstructionOperand output,
71 size_t temp_count = 0, InstructionOperand* temps = NULL); 71 size_t temp_count = 0, InstructionOperand* temps = nullptr);
72 Instruction* Emit(InstructionCode opcode, InstructionOperand output, 72 Instruction* Emit(InstructionCode opcode, InstructionOperand output,
73 InstructionOperand a, size_t temp_count = 0, 73 InstructionOperand a, size_t temp_count = 0,
74 InstructionOperand* temps = NULL); 74 InstructionOperand* temps = nullptr);
75 Instruction* Emit(InstructionCode opcode, InstructionOperand output, 75 Instruction* Emit(InstructionCode opcode, InstructionOperand output,
76 InstructionOperand a, InstructionOperand b, 76 InstructionOperand a, InstructionOperand b,
77 size_t temp_count = 0, InstructionOperand* temps = NULL); 77 size_t temp_count = 0, InstructionOperand* temps = nullptr);
78 Instruction* Emit(InstructionCode opcode, InstructionOperand output, 78 Instruction* Emit(InstructionCode opcode, InstructionOperand output,
79 InstructionOperand a, InstructionOperand b, 79 InstructionOperand a, InstructionOperand b,
80 InstructionOperand c, size_t temp_count = 0, 80 InstructionOperand c, size_t temp_count = 0,
81 InstructionOperand* temps = NULL); 81 InstructionOperand* temps = nullptr);
82 Instruction* Emit(InstructionCode opcode, InstructionOperand output, 82 Instruction* Emit(InstructionCode opcode, InstructionOperand output,
83 InstructionOperand a, InstructionOperand b, 83 InstructionOperand a, InstructionOperand b,
84 InstructionOperand c, InstructionOperand d, 84 InstructionOperand c, InstructionOperand d,
85 size_t temp_count = 0, InstructionOperand* temps = NULL); 85 size_t temp_count = 0, InstructionOperand* temps = nullptr);
86 Instruction* Emit(InstructionCode opcode, InstructionOperand output, 86 Instruction* Emit(InstructionCode opcode, InstructionOperand output,
87 InstructionOperand a, InstructionOperand b, 87 InstructionOperand a, InstructionOperand b,
88 InstructionOperand c, InstructionOperand d, 88 InstructionOperand c, InstructionOperand d,
89 InstructionOperand e, size_t temp_count = 0, 89 InstructionOperand e, size_t temp_count = 0,
90 InstructionOperand* temps = NULL); 90 InstructionOperand* temps = nullptr);
91 Instruction* Emit(InstructionCode opcode, InstructionOperand output, 91 Instruction* Emit(InstructionCode opcode, InstructionOperand output,
92 InstructionOperand a, InstructionOperand b, 92 InstructionOperand a, InstructionOperand b,
93 InstructionOperand c, InstructionOperand d, 93 InstructionOperand c, InstructionOperand d,
94 InstructionOperand e, InstructionOperand f, 94 InstructionOperand e, InstructionOperand f,
95 size_t temp_count = 0, InstructionOperand* temps = NULL); 95 size_t temp_count = 0, InstructionOperand* temps = nullptr);
96 Instruction* Emit(InstructionCode opcode, size_t output_count, 96 Instruction* Emit(InstructionCode opcode, size_t output_count,
97 InstructionOperand* outputs, size_t input_count, 97 InstructionOperand* outputs, size_t input_count,
98 InstructionOperand* inputs, size_t temp_count = 0, 98 InstructionOperand* inputs, size_t temp_count = 0,
99 InstructionOperand* temps = NULL); 99 InstructionOperand* temps = nullptr);
100 Instruction* Emit(Instruction* instr); 100 Instruction* Emit(Instruction* instr);
101 101
102 // =========================================================================== 102 // ===========================================================================
103 // ============== Architecture-independent CPU feature methods. ============== 103 // ============== Architecture-independent CPU feature methods. ==============
104 // =========================================================================== 104 // ===========================================================================
105 105
106 class Features final { 106 class Features final {
107 public: 107 public:
108 Features() : bits_(0) {} 108 Features() : bits_(0) {}
109 explicit Features(unsigned bits) : bits_(bits) {} 109 explicit Features(unsigned bits) : bits_(bits) {}
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 BoolVector used_; 271 BoolVector used_;
272 IntVector virtual_registers_; 272 IntVector virtual_registers_;
273 InstructionScheduler* scheduler_; 273 InstructionScheduler* scheduler_;
274 }; 274 };
275 275
276 } // namespace compiler 276 } // namespace compiler
277 } // namespace internal 277 } // namespace internal
278 } // namespace v8 278 } // namespace v8
279 279
280 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ 280 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction.cc ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698