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

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

Issue 1995543003: [turbofan] Add DebugBreak machine operator and support (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 4 years, 7 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
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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 } 525 }
526 526
527 void CodeAssembler::Branch(Node* condition, CodeAssembler::Label* true_label, 527 void CodeAssembler::Branch(Node* condition, CodeAssembler::Label* true_label,
528 CodeAssembler::Label* false_label) { 528 CodeAssembler::Label* false_label) {
529 true_label->MergeVariables(); 529 true_label->MergeVariables();
530 false_label->MergeVariables(); 530 false_label->MergeVariables();
531 return raw_assembler_->Branch(condition, true_label->label_, 531 return raw_assembler_->Branch(condition, true_label->label_,
532 false_label->label_); 532 false_label->label_);
533 } 533 }
534 534
535 void CodeAssembler::DebugBreak() { raw_assembler_->DebugBreak(); }
Michael Starzinger 2016/05/19 08:53:23 nit: Likewise.
danno 2016/05/19 09:05:04 Done.
536
535 void CodeAssembler::Switch(Node* index, Label* default_label, 537 void CodeAssembler::Switch(Node* index, Label* default_label,
536 int32_t* case_values, Label** case_labels, 538 int32_t* case_values, Label** case_labels,
537 size_t case_count) { 539 size_t case_count) {
538 RawMachineLabel** labels = 540 RawMachineLabel** labels =
539 new (zone()->New(sizeof(RawMachineLabel*) * case_count)) 541 new (zone()->New(sizeof(RawMachineLabel*) * case_count))
540 RawMachineLabel*[case_count]; 542 RawMachineLabel*[case_count];
541 for (size_t i = 0; i < case_count; ++i) { 543 for (size_t i = 0; i < case_count; ++i) {
542 labels[i] = case_labels[i]->label_; 544 labels[i] = case_labels[i]->label_;
543 case_labels[i]->MergeVariables(); 545 case_labels[i]->MergeVariables();
544 default_label->MergeVariables(); 546 default_label->MergeVariables();
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 } 701 }
700 } 702 }
701 } 703 }
702 704
703 bound_ = true; 705 bound_ = true;
704 } 706 }
705 707
706 } // namespace compiler 708 } // namespace compiler
707 } // namespace internal 709 } // namespace internal
708 } // namespace v8 710 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698