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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 void CodeAssembler::Return(Node* value1, Node* value2, Node* value3) { | 267 void CodeAssembler::Return(Node* value1, Node* value2, Node* value3) { |
268 return raw_assembler()->Return(value1, value2, value3); | 268 return raw_assembler()->Return(value1, value2, value3); |
269 } | 269 } |
270 | 270 |
271 void CodeAssembler::PopAndReturn(Node* pop, Node* value) { | 271 void CodeAssembler::PopAndReturn(Node* pop, Node* value) { |
272 return raw_assembler()->PopAndReturn(pop, value); | 272 return raw_assembler()->PopAndReturn(pop, value); |
273 } | 273 } |
274 | 274 |
275 void CodeAssembler::DebugBreak() { raw_assembler()->DebugBreak(); } | 275 void CodeAssembler::DebugBreak() { raw_assembler()->DebugBreak(); } |
276 | 276 |
| 277 void CodeAssembler::Unreachable() { |
| 278 DebugBreak(); |
| 279 raw_assembler()->Unreachable(); |
| 280 } |
| 281 |
277 void CodeAssembler::Comment(const char* format, ...) { | 282 void CodeAssembler::Comment(const char* format, ...) { |
278 if (!FLAG_code_comments) return; | 283 if (!FLAG_code_comments) return; |
279 char buffer[4 * KB]; | 284 char buffer[4 * KB]; |
280 StringBuilder builder(buffer, arraysize(buffer)); | 285 StringBuilder builder(buffer, arraysize(buffer)); |
281 va_list arguments; | 286 va_list arguments; |
282 va_start(arguments, format); | 287 va_start(arguments, format); |
283 builder.AddFormattedList(format, arguments); | 288 builder.AddFormattedList(format, arguments); |
284 va_end(arguments); | 289 va_end(arguments); |
285 | 290 |
286 // Copy the string before recording it in the assembler to avoid | 291 // Copy the string before recording it in the assembler to avoid |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
848 } | 853 } |
849 } | 854 } |
850 } | 855 } |
851 | 856 |
852 bound_ = true; | 857 bound_ = true; |
853 } | 858 } |
854 | 859 |
855 } // namespace compiler | 860 } // namespace compiler |
856 } // namespace internal | 861 } // namespace internal |
857 } // namespace v8 | 862 } // namespace v8 |
OLD | NEW |