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

Unified Diff: src/compiler/bounds-check-lowering.h

Issue 768543002: [WIP] TrapHandler 2014/11/27. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 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/access-builder.cc ('k') | src/compiler/bounds-check-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/bounds-check-lowering.h
diff --git a/src/compiler/bounds-check-lowering.h b/src/compiler/bounds-check-lowering.h
new file mode 100644
index 0000000000000000000000000000000000000000..01e1916bdf9ac94a5b8f9b6dfd80ddd63da93c0c
--- /dev/null
+++ b/src/compiler/bounds-check-lowering.h
@@ -0,0 +1,39 @@
+// 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_BOUNDS_CHECK_LOWERING_H_
+#define V8_COMPILER_BOUNDS_CHECK_LOWERING_H_
+
+#include "src/compiler/graph-reducer.h"
+
+namespace v8 {
+namespace internal {
+namespace compiler {
+
+// Forward declarations.
+class CommonOperatorBuilder;
+class JSGraph;
+class MachineOperatorBuilder;
+
+class BoundsCheckLowering FINAL : public Reducer {
+ public:
+ explicit BoundsCheckLowering(JSGraph* jsgraph) : jsgraph_(jsgraph) {}
+ ~BoundsCheckLowering();
+
+ Reduction Reduce(Node* node) OVERRIDE;
+
+ private:
+ Graph* graph() const;
+ JSGraph* jsgraph() const { return jsgraph_; }
+ CommonOperatorBuilder* common() const;
+ MachineOperatorBuilder* machine() const;
+
+ JSGraph* jsgraph_;
+};
+
+} // namespace compiler
+} // namespace internal
+} // namespace v8
+
+#endif // V8_COMPILER_BOUNDS_CHECK_LOWERING_H_
« no previous file with comments | « src/compiler/access-builder.cc ('k') | src/compiler/bounds-check-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698