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

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

Issue 2248633002: [interpreter] Add CreateBlockContext bytecode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comments 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
« no previous file with comments | « src/compiler/bytecode-graph-builder.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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 TypeofMode typeof_mode); 128 TypeofMode typeof_mode);
129 129
130 // Store value in the accumulator into the variable with |name|. 130 // Store value in the accumulator into the variable with |name|.
131 BytecodeArrayBuilder& StoreLookupSlot(const Handle<String> name, 131 BytecodeArrayBuilder& StoreLookupSlot(const Handle<String> name,
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
139 // in the accumulator.
140 BytecodeArrayBuilder& CreateBlockContext(Handle<ScopeInfo> scope_info);
141
138 // Create a new context with size |slots|. 142 // Create a new context with size |slots|.
139 BytecodeArrayBuilder& CreateFunctionContext(int slots); 143 BytecodeArrayBuilder& CreateFunctionContext(int slots);
140 144
141 // Create a new arguments object in the accumulator. 145 // Create a new arguments object in the accumulator.
142 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type); 146 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type);
143 147
144 // Literals creation. Constant elements should be in the accumulator. 148 // Literals creation. Constant elements should be in the accumulator.
145 BytecodeArrayBuilder& CreateRegExpLiteral(Handle<String> pattern, 149 BytecodeArrayBuilder& CreateRegExpLiteral(Handle<String> pattern,
146 int literal_index, int flags); 150 int literal_index, int flags);
147 BytecodeArrayBuilder& CreateArrayLiteral(Handle<FixedArray> constant_elements, 151 BytecodeArrayBuilder& CreateArrayLiteral(Handle<FixedArray> constant_elements,
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 BytecodeSourceInfo latest_source_info_; 394 BytecodeSourceInfo latest_source_info_;
391 395
392 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); 396 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder);
393 }; 397 };
394 398
395 } // namespace interpreter 399 } // namespace interpreter
396 } // namespace internal 400 } // namespace internal
397 } // namespace v8 401 } // namespace v8
398 402
399 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 403 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698