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

Side by Side Diff: src/interpreter/bytecode-array-builder.h

Issue 2302013002: Store the scope info in catch contexts (Closed)
Patch Set: updates 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 | « src/full-codegen/full-codegen.cc ('k') | src/interpreter/bytecode-array-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_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/interpreter/bytecode-array-writer.h" 9 #include "src/interpreter/bytecode-array-writer.h"
10 #include "src/interpreter/bytecode-register-allocator.h" 10 #include "src/interpreter/bytecode-register-allocator.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 LanguageMode language_mode); 132 LanguageMode language_mode);
133 133
134 // Create a new closure for a SharedFunctionInfo which will be inserted at 134 // Create a new closure for a SharedFunctionInfo which will be inserted at
135 // constant pool index |entry|. 135 // constant pool index |entry|.
136 BytecodeArrayBuilder& CreateClosure(size_t entry, int flags); 136 BytecodeArrayBuilder& CreateClosure(size_t entry, int flags);
137 137
138 // Create a new local context for a |scope_info| and a closure which should be 138 // Create a new local context for a |scope_info| and a closure which should be
139 // in the accumulator. 139 // in the accumulator.
140 BytecodeArrayBuilder& CreateBlockContext(Handle<ScopeInfo> scope_info); 140 BytecodeArrayBuilder& CreateBlockContext(Handle<ScopeInfo> scope_info);
141 141
142 // Create a new context for a catch block with |exception| and |name| and the 142 // Create a new context for a catch block with |exception|, |name|,
143 // closure in the accumulator. 143 // |scope_info|, and the closure in the accumulator.
144 BytecodeArrayBuilder& CreateCatchContext(Register exception, 144 BytecodeArrayBuilder& CreateCatchContext(Register exception,
145 Handle<String> name); 145 Handle<String> name,
146 Handle<ScopeInfo> scope_info);
146 147
147 // Create a new context with size |slots|. 148 // Create a new context with size |slots|.
148 BytecodeArrayBuilder& CreateFunctionContext(int slots); 149 BytecodeArrayBuilder& CreateFunctionContext(int slots);
149 150
150 // Creates a new context for a with-statement with the |object| in a register 151 // Creates a new context for a with-statement with the |object| in a register
151 // and the closure in the accumulator. 152 // and the closure in the accumulator.
152 BytecodeArrayBuilder& CreateWithContext(Register object); 153 BytecodeArrayBuilder& CreateWithContext(Register object);
153 154
154 // Create a new arguments object in the accumulator. 155 // Create a new arguments object in the accumulator.
155 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type); 156 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type);
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 static int const kNoFeedbackSlot = 0; 402 static int const kNoFeedbackSlot = 0;
402 403
403 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); 404 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder);
404 }; 405 };
405 406
406 } // namespace interpreter 407 } // namespace interpreter
407 } // namespace internal 408 } // namespace internal
408 } // namespace v8 409 } // namespace v8
409 410
410 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 411 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698