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

Side by Side Diff: src/interpreter/bytecode-generator.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 | « src/interpreter/bytecode-array-writer.cc ('k') | src/interpreter/bytecode-generator.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_INTERPRETER_BYTECODE_GENERATOR_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_GENERATOR_H_
6 #define V8_INTERPRETER_BYTECODE_GENERATOR_H_ 6 #define V8_INTERPRETER_BYTECODE_GENERATOR_H_
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/interpreter/bytecode-array-builder.h" 9 #include "src/interpreter/bytecode-array-builder.h"
10 #include "src/interpreter/bytecode-label.h" 10 #include "src/interpreter/bytecode-label.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 void BuildVariableLoad(Variable* variable, FeedbackSlot slot, 103 void BuildVariableLoad(Variable* variable, FeedbackSlot slot,
104 HoleCheckMode hole_check_mode, 104 HoleCheckMode hole_check_mode,
105 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); 105 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF);
106 void BuildVariableLoadForAccumulatorValue( 106 void BuildVariableLoadForAccumulatorValue(
107 Variable* variable, FeedbackSlot slot, HoleCheckMode hole_check_mode, 107 Variable* variable, FeedbackSlot slot, HoleCheckMode hole_check_mode,
108 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); 108 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF);
109 void BuildVariableAssignment(Variable* variable, Token::Value op, 109 void BuildVariableAssignment(Variable* variable, Token::Value op,
110 FeedbackSlot slot, 110 FeedbackSlot slot,
111 HoleCheckMode hole_check_mode); 111 HoleCheckMode hole_check_mode);
112 112 void BuildLiteralCompareNil(Token::Value compare_op, NilValue nil);
113 void BuildReturn(); 113 void BuildReturn();
114 void BuildAsyncReturn(); 114 void BuildAsyncReturn();
115 void BuildAsyncGeneratorReturn(); 115 void BuildAsyncGeneratorReturn();
116 void BuildReThrow(); 116 void BuildReThrow();
117 void BuildAbort(BailoutReason bailout_reason); 117 void BuildAbort(BailoutReason bailout_reason);
118 void BuildThrowIfHole(Variable* variable); 118 void BuildThrowIfHole(Variable* variable);
119 void BuildThrowReferenceError(const AstRawString* name); 119 void BuildThrowReferenceError(const AstRawString* name);
120 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); 120 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op);
121 121
122 // Build jump to targets[value], where 122 // Build jump to targets[value], where
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 ZoneVector<BytecodeLabel> generator_resume_points_; 232 ZoneVector<BytecodeLabel> generator_resume_points_;
233 Register generator_state_; 233 Register generator_state_;
234 int loop_depth_; 234 int loop_depth_;
235 }; 235 };
236 236
237 } // namespace interpreter 237 } // namespace interpreter
238 } // namespace internal 238 } // namespace internal
239 } // namespace v8 239 } // namespace v8
240 240
241 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 241 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-writer.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698