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

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

Issue 2260473003: [interpreter] Add CreateCatchContext bytecode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 4 years, 4 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
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 with size |slots|. 142 // Create a new context with size |slots|.
143 BytecodeArrayBuilder& CreateFunctionContext(int slots); 143 BytecodeArrayBuilder& CreateFunctionContext(int slots);
144 144
145 // Create a new context for a catch block with |exception| and |name| and the
146 // closure in the accumulator.
147 BytecodeArrayBuilder& CreateCatchContext(Register exception,
148 Handle<String> name);
149
145 // Create a new arguments object in the accumulator. 150 // Create a new arguments object in the accumulator.
146 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type); 151 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type);
147 152
148 // Literals creation. Constant elements should be in the accumulator. 153 // Literals creation. Constant elements should be in the accumulator.
149 BytecodeArrayBuilder& CreateRegExpLiteral(Handle<String> pattern, 154 BytecodeArrayBuilder& CreateRegExpLiteral(Handle<String> pattern,
150 int literal_index, int flags); 155 int literal_index, int flags);
151 BytecodeArrayBuilder& CreateArrayLiteral(Handle<FixedArray> constant_elements, 156 BytecodeArrayBuilder& CreateArrayLiteral(Handle<FixedArray> constant_elements,
152 int literal_index, int flags); 157 int literal_index, int flags);
153 BytecodeArrayBuilder& CreateObjectLiteral( 158 BytecodeArrayBuilder& CreateObjectLiteral(
154 Handle<FixedArray> constant_properties, int literal_index, int flags, 159 Handle<FixedArray> constant_properties, int literal_index, int flags,
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 BytecodeSourceInfo latest_source_info_; 397 BytecodeSourceInfo latest_source_info_;
393 398
394 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); 399 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder);
395 }; 400 };
396 401
397 } // namespace interpreter 402 } // namespace interpreter
398 } // namespace internal 403 } // namespace internal
399 } // namespace v8 404 } // namespace v8
400 405
401 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 406 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698