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

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

Issue 2793923002: [Interpreter] Optimize code of the form 'if (x === undefined)'. (Closed)
Patch Set: Rebase Created 3 years, 8 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-analysis.h" 8 #include "src/compiler/bytecode-analysis.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/js-type-hint-lowering.h" 10 #include "src/compiler/js-type-hint-lowering.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 // Helper function to compute call frequency from the recorded type 206 // Helper function to compute call frequency from the recorded type
207 // feedback. 207 // feedback.
208 float ComputeCallFrequency(int slot_id) const; 208 float ComputeCallFrequency(int slot_id) const;
209 209
210 // Control flow plumbing. 210 // Control flow plumbing.
211 void BuildJump(); 211 void BuildJump();
212 void BuildJumpIf(Node* condition); 212 void BuildJumpIf(Node* condition);
213 void BuildJumpIfNot(Node* condition); 213 void BuildJumpIfNot(Node* condition);
214 void BuildJumpIfEqual(Node* comperand); 214 void BuildJumpIfEqual(Node* comperand);
215 void BuildJumpIfNotEqual(Node* comperand);
215 void BuildJumpIfTrue(); 216 void BuildJumpIfTrue();
216 void BuildJumpIfFalse(); 217 void BuildJumpIfFalse();
217 void BuildJumpIfToBooleanTrue(); 218 void BuildJumpIfToBooleanTrue();
218 void BuildJumpIfToBooleanFalse(); 219 void BuildJumpIfToBooleanFalse();
219 void BuildJumpIfNotHole(); 220 void BuildJumpIfNotHole();
220 void BuildJumpIfJSReceiver(); 221 void BuildJumpIfJSReceiver();
221 222
222 // Simulates control flow by forward-propagating environments. 223 // Simulates control flow by forward-propagating environments.
223 void MergeIntoSuccessorEnvironment(int target_offset); 224 void MergeIntoSuccessorEnvironment(int target_offset);
224 void BuildLoopHeaderEnvironment(int current_offset); 225 void BuildLoopHeaderEnvironment(int current_offset);
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 static int const kBinaryOperationSmiHintIndex = 2; 364 static int const kBinaryOperationSmiHintIndex = 2;
364 365
365 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); 366 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder);
366 }; 367 };
367 368
368 } // namespace compiler 369 } // namespace compiler
369 } // namespace internal 370 } // namespace internal
370 } // namespace v8 371 } // namespace v8
371 372
372 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ 373 #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