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

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

Issue 2388303006: Reland of "[turbofan] Osr value typing + dynamic type checks on entry. (patchset #5 id:80001 of htt… (Closed)
Patch Set: Tweaks Created 4 years, 2 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/instruction-selector.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
1 // Copyright 2015 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_JS_FRAME_SPECIALIZATION_H_ 5 #ifndef V8_COMPILER_JS_FRAME_SPECIALIZATION_H_
6 #define V8_COMPILER_JS_FRAME_SPECIALIZATION_H_ 6 #define V8_COMPILER_JS_FRAME_SPECIALIZATION_H_
7 7
8 #include "src/compiler/graph-reducer.h" 8 #include "src/compiler/graph-reducer.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 // Forward declarations. 13 // Forward declarations.
14 class JavaScriptFrame; 14 class JavaScriptFrame;
15 15
16 namespace compiler { 16 namespace compiler {
17 17
18 // Forward declarations. 18 // Forward declarations.
19 class JSGraph; 19 class JSGraph;
20 20
21 21 class JSFrameSpecialization final : public AdvancedReducer {
22 class JSFrameSpecialization final : public Reducer {
23 public: 22 public:
24 JSFrameSpecialization(JavaScriptFrame const* frame, JSGraph* jsgraph) 23 JSFrameSpecialization(Editor* editor, JavaScriptFrame const* frame,
25 : frame_(frame), jsgraph_(jsgraph) {} 24 JSGraph* jsgraph)
25 : AdvancedReducer(editor), frame_(frame), jsgraph_(jsgraph) {}
26 ~JSFrameSpecialization() final {} 26 ~JSFrameSpecialization() final {}
27 27
28 Reduction Reduce(Node* node) final; 28 Reduction Reduce(Node* node) final;
29 29
30 private: 30 private:
31 Reduction ReduceOsrValue(Node* node); 31 Reduction ReduceOsrValue(Node* node);
32 Reduction ReduceOsrGuard(Node* node);
32 Reduction ReduceParameter(Node* node); 33 Reduction ReduceParameter(Node* node);
33 34
34 Isolate* isolate() const; 35 Isolate* isolate() const;
35 JavaScriptFrame const* frame() const { return frame_; } 36 JavaScriptFrame const* frame() const { return frame_; }
36 JSGraph* jsgraph() const { return jsgraph_; } 37 JSGraph* jsgraph() const { return jsgraph_; }
37 38
38 JavaScriptFrame const* const frame_; 39 JavaScriptFrame const* const frame_;
39 JSGraph* const jsgraph_; 40 JSGraph* const jsgraph_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(JSFrameSpecialization); 42 DISALLOW_COPY_AND_ASSIGN(JSFrameSpecialization);
42 }; 43 };
43 44
44 } // namespace compiler 45 } // namespace compiler
45 } // namespace internal 46 } // namespace internal
46 } // namespace v8 47 } // namespace v8
47 48
48 #endif // V8_COMPILER_JS_FRAME_SPECIALIZATION_H_ 49 #endif // V8_COMPILER_JS_FRAME_SPECIALIZATION_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/js-frame-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698