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

Unified Diff: src/compiler/simplified-lowering.h

Issue 426233002: Land the Fan (disabled) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback, rebase and "git cl format" Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/scheduler.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-lowering.h
diff --git a/src/compiler/simplified-lowering.h b/src/compiler/simplified-lowering.h
new file mode 100644
index 0000000000000000000000000000000000000000..0e67cc60b3711bbc1194cc3ec1df390312716d4a
--- /dev/null
+++ b/src/compiler/simplified-lowering.h
@@ -0,0 +1,60 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef V8_COMPILER_SIMPLIFIED_LOWERING_H_
+#define V8_COMPILER_SIMPLIFIED_LOWERING_H_
+
+#include "src/compiler/graph-reducer.h"
+#include "src/compiler/js-graph.h"
+#include "src/compiler/lowering-builder.h"
+#include "src/compiler/machine-operator.h"
+#include "src/compiler/node.h"
+#include "src/compiler/simplified-operator.h"
+
+namespace v8 {
+namespace internal {
+namespace compiler {
+
+class SimplifiedLowering : public LoweringBuilder {
+ public:
+ explicit SimplifiedLowering(JSGraph* jsgraph,
+ SourcePositionTable* source_positions)
+ : LoweringBuilder(jsgraph->graph(), source_positions),
+ jsgraph_(jsgraph),
+ machine_(jsgraph->zone()) {}
+ virtual ~SimplifiedLowering() {}
+
+ virtual void Lower(Node* node);
+
+ private:
+ JSGraph* jsgraph_;
+ MachineOperatorBuilder machine_;
+
+ Node* DoChangeTaggedToInt32(Node* node, Node* effect, Node* control);
+ Node* DoChangeTaggedToUint32(Node* node, Node* effect, Node* control);
+ Node* DoChangeTaggedToFloat64(Node* node, Node* effect, Node* control);
+ Node* DoChangeInt32ToTagged(Node* node, Node* effect, Node* control);
+ Node* DoChangeUint32ToTagged(Node* node, Node* effect, Node* control);
+ Node* DoChangeFloat64ToTagged(Node* node, Node* effect, Node* control);
+ Node* DoChangeBoolToBit(Node* node, Node* effect, Node* control);
+ Node* DoChangeBitToBool(Node* node, Node* effect, Node* control);
+ Node* DoLoadField(Node* node, Node* effect, Node* control);
+ Node* DoStoreField(Node* node, Node* effect, Node* control);
+ Node* DoLoadElement(Node* node, Node* effect, Node* control);
+ Node* DoStoreElement(Node* node, Node* effect, Node* control);
+
+ Node* ComputeIndex(const ElementAccess& access, Node* index);
+
+ Zone* zone() { return jsgraph_->zone(); }
+ JSGraph* jsgraph() { return jsgraph_; }
+ Graph* graph() { return jsgraph()->graph(); }
+ CommonOperatorBuilder* common() { return jsgraph()->common(); }
+ MachineOperatorBuilder* machine() { return &machine_; }
+};
+
+} // namespace compiler
+} // namespace internal
+} // namespace v8
+
+#endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_
« no previous file with comments | « src/compiler/scheduler.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698