| 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 |
| 183 void CodeAssembler::DebugBreak() { raw_assembler_->DebugBreak(); } | 187 void CodeAssembler::DebugBreak() { raw_assembler_->DebugBreak(); } |
| 184 | 188 |
| 185 void CodeAssembler::Comment(const char* format, ...) { | 189 void CodeAssembler::Comment(const char* format, ...) { |
| 186 if (!FLAG_code_comments) return; | 190 if (!FLAG_code_comments) return; |
| 187 char buffer[4 * KB]; | 191 char buffer[4 * KB]; |
| 188 StringBuilder builder(buffer, arraysize(buffer)); | 192 StringBuilder builder(buffer, arraysize(buffer)); |
| 189 va_list arguments; | 193 va_list arguments; |
| 190 va_start(arguments, format); | 194 va_start(arguments, format); |
| 191 builder.AddFormattedList(format, arguments); | 195 builder.AddFormattedList(format, arguments); |
| 192 va_end(arguments); | 196 va_end(arguments); |
| (...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1173 } | 1177 } |
| 1174 } | 1178 } |
| 1175 } | 1179 } |
| 1176 | 1180 |
| 1177 bound_ = true; | 1181 bound_ = true; |
| 1178 } | 1182 } |
| 1179 | 1183 |
| 1180 } // namespace compiler | 1184 } // namespace compiler |
| 1181 } // namespace internal | 1185 } // namespace internal |
| 1182 } // namespace v8 | 1186 } // namespace v8 |
| OLD | NEW |