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

Side by Side Diff: src/compiler/js-frame-specialization.h

Issue 1225683004: [turbofan] Add new JSFrameSpecialization reducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Also specialize Parameters as discussed with Jaro. 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.cc ('k') | src/compiler/js-frame-specialization.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 2015 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_FRAME_SPECIALIZATION_H_
6 #define V8_COMPILER_JS_FRAME_SPECIALIZATION_H_
7
8 #include "src/compiler/graph-reducer.h"
9
10 namespace v8 {
11 namespace internal {
12 namespace compiler {
13
14 // Forward declarations.
15 class JSGraph;
16
17
18 class JSFrameSpecialization final : public Reducer {
19 public:
20 JSFrameSpecialization(JavaScriptFrame const* frame, JSGraph* jsgraph)
21 : frame_(frame), jsgraph_(jsgraph) {}
22 ~JSFrameSpecialization() final {}
23
24 Reduction Reduce(Node* node) final;
25
26 private:
27 Reduction ReduceOsrValue(Node* node);
28 Reduction ReduceParameter(Node* node);
29
30 Isolate* isolate() const;
31 JavaScriptFrame const* frame() const { return frame_; }
32 JSGraph* jsgraph() const { return jsgraph_; }
33
34 JavaScriptFrame const* const frame_;
35 JSGraph* const jsgraph_;
36
37 DISALLOW_COPY_AND_ASSIGN(JSFrameSpecialization);
38 };
39
40 } // namespace compiler
41 } // namespace internal
42 } // namespace v8
43
44 #endif // V8_COMPILER_JS_FRAME_SPECIALIZATION_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/compiler/js-frame-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698