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

Side by Side Diff: src/compiler/code-assembler.cc

Issue 2705163005: [csa] Add Unreachable() and use it after throw sites (Closed)
Patch Set: Rebase Created 3 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/code-assembler.h ('k') | src/compiler/machine-graph-verifier.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 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
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
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
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/compiler/machine-graph-verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698