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

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

Issue 1697473002: [interpreter] Add bytecodes for JumpIfNotHole with constant (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 10 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.h" 8 #include "src/compiler.h"
9 #include "src/compiler/bytecode-branch-analysis.h" 9 #include "src/compiler/bytecode-branch-analysis.h"
10 #include "src/compiler/js-graph.h" 10 #include "src/compiler/js-graph.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 void BuildDelete(LanguageMode language_mode); 134 void BuildDelete(LanguageMode language_mode);
135 void BuildCastOperator(const Operator* op); 135 void BuildCastOperator(const Operator* op);
136 void BuildForInPrepare(); 136 void BuildForInPrepare();
137 void BuildForInNext(); 137 void BuildForInNext();
138 138
139 // Control flow plumbing. 139 // Control flow plumbing.
140 void BuildJump(); 140 void BuildJump();
141 void BuildConditionalJump(Node* condition); 141 void BuildConditionalJump(Node* condition);
142 void BuildJumpIfEqual(Node* comperand); 142 void BuildJumpIfEqual(Node* comperand);
143 void BuildJumpIfToBooleanEqual(Node* boolean_comperand); 143 void BuildJumpIfToBooleanEqual(Node* boolean_comperand);
144 void BuildJumpIfNotHole();
144 145
145 // Simulates control flow by forward-propagating environments. 146 // Simulates control flow by forward-propagating environments.
146 void MergeIntoSuccessorEnvironment(int target_offset); 147 void MergeIntoSuccessorEnvironment(int target_offset);
147 void BuildLoopHeaderEnvironment(int current_offset); 148 void BuildLoopHeaderEnvironment(int current_offset);
148 void SwitchToMergeEnvironment(int current_offset); 149 void SwitchToMergeEnvironment(int current_offset);
149 150
150 // Simulates control flow that exits the function body. 151 // Simulates control flow that exits the function body.
151 void MergeControlToLeaveFunction(Node* exit); 152 void MergeControlToLeaveFunction(Node* exit);
152 153
153 // Simulates entry and exit of exception handlers. 154 // Simulates entry and exit of exception handlers.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 ZoneVector<Node*> exit_controls_; 252 ZoneVector<Node*> exit_controls_;
252 253
253 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); 254 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder);
254 }; 255 };
255 256
256 } // namespace compiler 257 } // namespace compiler
257 } // namespace internal 258 } // namespace internal
258 } // namespace v8 259 } // namespace v8
259 260
260 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ 261 #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