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

Unified Diff: src/compiler/raw-machine-assembler.h

Issue 1475643002: [turbofan] Hide dangerous RawMachineAssembler accessors. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_turbofan-pass-new-target-7
Patch Set: Rebased. Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/interpreter-assembler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/raw-machine-assembler.h
diff --git a/src/compiler/raw-machine-assembler.h b/src/compiler/raw-machine-assembler.h
index 915c8a93331fdc1ec1ab1ec68d49eb2a78dcfa8d..e4e6d01434f9fcc7473a3c2534206d1317c4301e 100644
--- a/src/compiler/raw-machine-assembler.h
+++ b/src/compiler/raw-machine-assembler.h
@@ -56,15 +56,10 @@ class RawMachineAssembler {
Isolate* isolate() const { return isolate_; }
Graph* graph() const { return graph_; }
- Schedule* schedule() { return schedule_; }
Zone* zone() const { return graph()->zone(); }
MachineOperatorBuilder* machine() { return &machine_; }
CommonOperatorBuilder* common() { return &common_; }
CallDescriptor* call_descriptor() const { return call_descriptor_; }
- size_t parameter_count() const { return machine_sig()->parameter_count(); }
- const MachineSignature* machine_sig() const {
- return call_descriptor_->GetMachineSignature();
- }
// Finalizes the schedule and exports it to be used for code generation. Note
// that this RawMachineAssembler becomes invalid after export.
@@ -618,6 +613,12 @@ class RawMachineAssembler {
BasicBlock* EnsureBlock(Label* label);
BasicBlock* CurrentBlock();
+ Schedule* schedule() { return schedule_; }
+ size_t parameter_count() const { return machine_sig()->parameter_count(); }
+ const MachineSignature* machine_sig() const {
+ return call_descriptor_->GetMachineSignature();
+ }
+
Isolate* isolate_;
Graph* graph_;
Schedule* schedule_;
« no previous file with comments | « src/compiler/interpreter-assembler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698