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

Side by Side Diff: src/compiler/js-context-relaxation.h

Issue 1244583003: [turbofan]: Add a context relaxer reducer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Really this time Created 5 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/frame-states.h ('k') | src/compiler/js-context-relaxation.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef V8_COMPILER_JS_CONTEXT_RELAXATION_H_
6 #define V8_COMPILER_JS_CONTEXT_RELAXATION_H_
7
8 #include "src/compiler/graph-reducer.h"
9
10 namespace v8 {
11 namespace internal {
12 namespace compiler {
13
14 // Ensures that operations that only need to access the native context use the
15 // outer-most context rather than the specific context given by the AST graph
16 // builder. This makes it possible to use these operations with context
17 // specialization (e.g. for generating stubs) without forcing inner contexts to
18 // be embedded in generated code thus causing leaks and potentially using the
19 // wrong native context (i.e. stubs are shared between native contexts).
20 class JSContextRelaxation final : public Reducer {
21 public:
22 JSContextRelaxation() {}
23 ~JSContextRelaxation() final {}
24
25 Reduction Reduce(Node* node) final;
26 };
27
28 } // namespace compiler
29 } // namespace internal
30 } // namespace v8
31
32 #endif // V8_COMPILER_JS_CONTEXT_RELAXATION_H_
OLDNEW
« no previous file with comments | « src/compiler/frame-states.h ('k') | src/compiler/js-context-relaxation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698