OLD | NEW |
---|---|
(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/code-factory.h" | |
Michael Starzinger
2015/07/20 08:09:49
nit: The code-factory include shouldn't be necessa
danno
2015/07/20 15:27:33
Done
| |
9 #include "src/compiler/graph-reducer.h" | |
10 | |
11 namespace v8 { | |
12 namespace internal { | |
13 namespace compiler { | |
14 | |
15 // Ensures that operations that only need to access the native context use the | |
16 // outer-most context rather than the specific context given by the AST graph | |
17 // builder. This makes it possible to use they operations with context | |
Michael Starzinger
2015/07/20 08:09:49
nit: s/they/these/
danno
2015/07/20 15:27:33
Done
| |
18 // specialization (e.g. for generating stubs) without forcing inner contexts to | |
19 // be embedded in generated code thus causing leaks. | |
Michael Starzinger
2015/07/20 08:09:49
nit: ... and potentially using the wrong native co
danno
2015/07/20 15:27:33
Done
| |
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_ | |
OLD | NEW |