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

Side by Side Diff: src/interpreter/bytecode-generator.h

Issue 2685683002: [async-await] (simpler) fix for Return in try/finally in async functions (Closed)
Patch Set: also shrink the bitfield for ReturnStatement::Type Created 3 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 | « src/ast/scopes.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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 HoleCheckMode hole_check_mode, 98 HoleCheckMode hole_check_mode,
99 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); 99 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF);
100 void BuildVariableLoadForAccumulatorValue( 100 void BuildVariableLoadForAccumulatorValue(
101 Variable* variable, FeedbackSlot slot, HoleCheckMode hole_check_mode, 101 Variable* variable, FeedbackSlot slot, HoleCheckMode hole_check_mode,
102 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); 102 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF);
103 void BuildVariableAssignment(Variable* variable, Token::Value op, 103 void BuildVariableAssignment(Variable* variable, Token::Value op,
104 FeedbackSlot slot, 104 FeedbackSlot slot,
105 HoleCheckMode hole_check_mode); 105 HoleCheckMode hole_check_mode);
106 106
107 void BuildReturn(); 107 void BuildReturn();
108 void BuildAsyncReturn();
108 void BuildReThrow(); 109 void BuildReThrow();
109 void BuildAbort(BailoutReason bailout_reason); 110 void BuildAbort(BailoutReason bailout_reason);
110 void BuildThrowIfHole(Handle<String> name); 111 void BuildThrowIfHole(Handle<String> name);
111 void BuildThrowReferenceError(Handle<String> name); 112 void BuildThrowReferenceError(Handle<String> name);
112 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); 113 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op);
113 114
114 // Build jump to targets[value], where 115 // Build jump to targets[value], where
115 // start_index <= value < start_index + size. 116 // start_index <= value < start_index + size.
116 void BuildIndexedJump(Register value, size_t start_index, size_t size, 117 void BuildIndexedJump(Register value, size_t start_index, size_t size,
117 ZoneVector<BytecodeLabel>& targets); 118 ZoneVector<BytecodeLabel>& targets);
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 Handle<Name> prototype_string_; 226 Handle<Name> prototype_string_;
226 Handle<FixedArray> empty_fixed_array_; 227 Handle<FixedArray> empty_fixed_array_;
227 const AstRawString* undefined_string_; 228 const AstRawString* undefined_string_;
228 }; 229 };
229 230
230 } // namespace interpreter 231 } // namespace interpreter
231 } // namespace internal 232 } // namespace internal
232 } // namespace v8 233 } // namespace v8
233 234
234 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 235 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/ast/scopes.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698