OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #include "src/compiler/code-assembler.h" | 5 #include "src/compiler/code-assembler.h" |
6 | 6 |
7 #include <ostream> | 7 #include <ostream> |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 } | 173 } |
174 | 174 |
175 Node* CodeAssembler::Parameter(int value) { | 175 Node* CodeAssembler::Parameter(int value) { |
176 return raw_assembler_->Parameter(value); | 176 return raw_assembler_->Parameter(value); |
177 } | 177 } |
178 | 178 |
179 void CodeAssembler::Return(Node* value) { | 179 void CodeAssembler::Return(Node* value) { |
180 return raw_assembler_->Return(value); | 180 return raw_assembler_->Return(value); |
181 } | 181 } |
182 | 182 |
183 void CodeAssembler::PopAndReturn(Node* pop, Node* value) { | |
184 return raw_assembler_->PopAndReturn(pop, value); | |
185 } | |
186 | |
187 void CodeAssembler::DebugBreak() { raw_assembler_->DebugBreak(); } | 183 void CodeAssembler::DebugBreak() { raw_assembler_->DebugBreak(); } |
188 | 184 |
189 void CodeAssembler::Comment(const char* format, ...) { | 185 void CodeAssembler::Comment(const char* format, ...) { |
190 if (!FLAG_code_comments) return; | 186 if (!FLAG_code_comments) return; |
191 char buffer[4 * KB]; | 187 char buffer[4 * KB]; |
192 StringBuilder builder(buffer, arraysize(buffer)); | 188 StringBuilder builder(buffer, arraysize(buffer)); |
193 va_list arguments; | 189 va_list arguments; |
194 va_start(arguments, format); | 190 va_start(arguments, format); |
195 builder.AddFormattedList(format, arguments); | 191 builder.AddFormattedList(format, arguments); |
196 va_end(arguments); | 192 va_end(arguments); |
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1177 } | 1173 } |
1178 } | 1174 } |
1179 } | 1175 } |
1180 | 1176 |
1181 bound_ = true; | 1177 bound_ = true; |
1182 } | 1178 } |
1183 | 1179 |
1184 } // namespace compiler | 1180 } // namespace compiler |
1185 } // namespace internal | 1181 } // namespace internal |
1186 } // namespace v8 | 1182 } // namespace v8 |
OLD | NEW |