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

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

Issue 2802003003: [builtins] Speed up TypedArrayInitialize in CodeStubAssembler (Closed)
Patch Set: Created 3 years, 8 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') | no next file » | 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 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 RawMachineLabel*[case_count]; 751 RawMachineLabel*[case_count];
752 for (size_t i = 0; i < case_count; ++i) { 752 for (size_t i = 0; i < case_count; ++i) {
753 labels[i] = case_labels[i]->label_; 753 labels[i] = case_labels[i]->label_;
754 case_labels[i]->MergeVariables(); 754 case_labels[i]->MergeVariables();
755 default_label->MergeVariables(); 755 default_label->MergeVariables();
756 } 756 }
757 return raw_assembler()->Switch(index, default_label->label_, case_values, 757 return raw_assembler()->Switch(index, default_label->label_, case_values,
758 labels, case_count); 758 labels, case_count);
759 } 759 }
760 760
761 bool CodeAssembler::UnalignedLoadSupported(const MachineType& machineType,
762 uint8_t alignment) const {
763 return raw_assembler()->machine()->UnalignedLoadSupported(machineType,
764 alignment);
765 }
766 bool CodeAssembler::UnalignedStoreSupported(const MachineType& machineType,
767 uint8_t alignment) const {
768 return raw_assembler()->machine()->UnalignedStoreSupported(machineType,
769 alignment);
770 }
771
761 // RawMachineAssembler delegate helpers: 772 // RawMachineAssembler delegate helpers:
762 Isolate* CodeAssembler::isolate() const { return raw_assembler()->isolate(); } 773 Isolate* CodeAssembler::isolate() const { return raw_assembler()->isolate(); }
763 774
764 Factory* CodeAssembler::factory() const { return isolate()->factory(); } 775 Factory* CodeAssembler::factory() const { return isolate()->factory(); }
765 776
766 Zone* CodeAssembler::zone() const { return raw_assembler()->zone(); } 777 Zone* CodeAssembler::zone() const { return raw_assembler()->zone(); }
767 778
768 RawMachineAssembler* CodeAssembler::raw_assembler() const { 779 RawMachineAssembler* CodeAssembler::raw_assembler() const {
769 return state_->raw_assembler_.get(); 780 return state_->raw_assembler_.get();
770 } 781 }
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 } 1021 }
1011 } 1022 }
1012 } 1023 }
1013 1024
1014 bound_ = true; 1025 bound_ = true;
1015 } 1026 }
1016 1027
1017 } // namespace compiler 1028 } // namespace compiler
1018 } // namespace internal 1029 } // namespace internal
1019 } // namespace v8 1030 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698