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

Side by Side Diff: src/compiler/bytecode-graph-builder.h

Issue 2329933003: [turbofan] Decouple OSR entry from {OsrPoll} bytecode. (Closed)
Patch Set: Add safety check. Created 4 years, 3 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 | « no previous file | src/compiler/bytecode-graph-builder.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_BYTECODE_GRAPH_BUILDER_H_ 5 #ifndef V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_
6 #define V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ 6 #define V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_
7 7
8 #include "src/compiler/bytecode-branch-analysis.h" 8 #include "src/compiler/bytecode-branch-analysis.h"
9 #include "src/compiler/bytecode-loop-analysis.h" 9 #include "src/compiler/bytecode-loop-analysis.h"
10 #include "src/compiler/js-graph.h" 10 #include "src/compiler/js-graph.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 void BuildJumpIfNotHole(); 163 void BuildJumpIfNotHole();
164 164
165 // Simulates control flow by forward-propagating environments. 165 // Simulates control flow by forward-propagating environments.
166 void MergeIntoSuccessorEnvironment(int target_offset); 166 void MergeIntoSuccessorEnvironment(int target_offset);
167 void BuildLoopHeaderEnvironment(int current_offset); 167 void BuildLoopHeaderEnvironment(int current_offset);
168 void SwitchToMergeEnvironment(int current_offset); 168 void SwitchToMergeEnvironment(int current_offset);
169 169
170 // Simulates control flow that exits the function body. 170 // Simulates control flow that exits the function body.
171 void MergeControlToLeaveFunction(Node* exit); 171 void MergeControlToLeaveFunction(Node* exit);
172 172
173 // Builds entry points that are used by OSR deconstruction.
174 void BuildOSRLoopEntryPoint(int current_offset);
175 void BuildOSRNormalEntryPoint();
176
173 // Builds loop exit nodes for every exited loop between the current bytecode 177 // Builds loop exit nodes for every exited loop between the current bytecode
174 // offset and {target_offset}. 178 // offset and {target_offset}.
175 void BuildLoopExitsForBranch(int target_offset); 179 void BuildLoopExitsForBranch(int target_offset);
176 void BuildLoopExitsForFunctionExit(); 180 void BuildLoopExitsForFunctionExit();
177 void BuildLoopExitsUntilLoop(int loop_offset); 181 void BuildLoopExitsUntilLoop(int loop_offset);
178 182
179 // Simulates entry and exit of exception handlers. 183 // Simulates entry and exit of exception handlers.
180 void EnterAndExitExceptionHandlers(int current_offset); 184 void EnterAndExitExceptionHandlers(int current_offset);
181 185
182 // Growth increment for the temporary buffer used to construct input lists to 186 // Growth increment for the temporary buffer used to construct input lists to
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 static int const kBinaryOperationSmiHintIndex = 2; 296 static int const kBinaryOperationSmiHintIndex = 2;
293 297
294 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); 298 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder);
295 }; 299 };
296 300
297 } // namespace compiler 301 } // namespace compiler
298 } // namespace internal 302 } // namespace internal
299 } // namespace v8 303 } // namespace v8
300 304
301 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ 305 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698