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

Side by Side Diff: src/compiler/raw-machine-assembler.h

Issue 2124023003: [turbofan] Add MachineType to LinkageLocation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 5 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/ppc/instruction-selector-ppc.cc ('k') | src/compiler/raw-machine-assembler.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 return AddNode(op, sizeof...(args) + 1, buffer); 755 return AddNode(op, sizeof...(args) + 1, buffer);
756 } 756 }
757 757
758 private: 758 private:
759 Node* MakeNode(const Operator* op, int input_count, Node* const* inputs); 759 Node* MakeNode(const Operator* op, int input_count, Node* const* inputs);
760 BasicBlock* Use(RawMachineLabel* label); 760 BasicBlock* Use(RawMachineLabel* label);
761 BasicBlock* EnsureBlock(RawMachineLabel* label); 761 BasicBlock* EnsureBlock(RawMachineLabel* label);
762 BasicBlock* CurrentBlock(); 762 BasicBlock* CurrentBlock();
763 763
764 Schedule* schedule() { return schedule_; } 764 Schedule* schedule() { return schedule_; }
765 size_t parameter_count() const { return machine_sig()->parameter_count(); } 765 size_t parameter_count() const { return call_descriptor_->ParameterCount(); }
766 const MachineSignature* machine_sig() const {
767 return call_descriptor_->GetMachineSignature();
768 }
769 766
770 Isolate* isolate_; 767 Isolate* isolate_;
771 Graph* graph_; 768 Graph* graph_;
772 Schedule* schedule_; 769 Schedule* schedule_;
773 MachineOperatorBuilder machine_; 770 MachineOperatorBuilder machine_;
774 CommonOperatorBuilder common_; 771 CommonOperatorBuilder common_;
775 CallDescriptor* call_descriptor_; 772 CallDescriptor* call_descriptor_;
776 NodeVector parameters_; 773 NodeVector parameters_;
777 BasicBlock* current_block_; 774 BasicBlock* current_block_;
778 775
(...skipping 16 matching lines...) Expand all
795 bool deferred_; 792 bool deferred_;
796 friend class RawMachineAssembler; 793 friend class RawMachineAssembler;
797 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); 794 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel);
798 }; 795 };
799 796
800 } // namespace compiler 797 } // namespace compiler
801 } // namespace internal 798 } // namespace internal
802 } // namespace v8 799 } // namespace v8
803 800
804 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 801 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.cc ('k') | src/compiler/raw-machine-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698