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

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

Issue 1664593003: [Interpreter] Adds support for rest parameters to interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixes comments. Created 4 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/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/bytecodes.h" 9 #include "src/interpreter/bytecodes.h"
10 #include "src/interpreter/constant-array-builder.h" 10 #include "src/interpreter/constant-array-builder.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 BytecodeArrayBuilder& StoreLookupSlot(const Handle<String> name, 138 BytecodeArrayBuilder& StoreLookupSlot(const Handle<String> name,
139 LanguageMode language_mode); 139 LanguageMode language_mode);
140 140
141 // Create a new closure for the SharedFunctionInfo. 141 // Create a new closure for the SharedFunctionInfo.
142 BytecodeArrayBuilder& CreateClosure(Handle<SharedFunctionInfo> shared_info, 142 BytecodeArrayBuilder& CreateClosure(Handle<SharedFunctionInfo> shared_info,
143 PretenureFlag tenured); 143 PretenureFlag tenured);
144 144
145 // Create a new arguments object in the accumulator. 145 // Create a new arguments object in the accumulator.
146 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type); 146 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type);
147 147
148 // Create a new rest arguments object starting at |index| in the accumulator.
149 BytecodeArrayBuilder& CreateRestArguments(int index);
150
148 // Literals creation. Constant elements should be in the accumulator. 151 // Literals creation. Constant elements should be in the accumulator.
149 BytecodeArrayBuilder& CreateRegExpLiteral(Handle<String> pattern, 152 BytecodeArrayBuilder& CreateRegExpLiteral(Handle<String> pattern,
150 int literal_index, int flags); 153 int literal_index, int flags);
151 BytecodeArrayBuilder& CreateArrayLiteral(Handle<FixedArray> constant_elements, 154 BytecodeArrayBuilder& CreateArrayLiteral(Handle<FixedArray> constant_elements,
152 int literal_index, int flags); 155 int literal_index, int flags);
153 BytecodeArrayBuilder& CreateObjectLiteral( 156 BytecodeArrayBuilder& CreateObjectLiteral(
154 Handle<FixedArray> constant_properties, int literal_index, int flags); 157 Handle<FixedArray> constant_properties, int literal_index, int flags);
155 158
156 // Push the context in accumulator as the new context, and store in register 159 // Push the context in accumulator as the new context, and store in register
157 // |context|. 160 // |context|.
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 size_t offset_; 409 size_t offset_;
407 410
408 friend class BytecodeArrayBuilder; 411 friend class BytecodeArrayBuilder;
409 }; 412 };
410 413
411 } // namespace interpreter 414 } // namespace interpreter
412 } // namespace internal 415 } // namespace internal
413 } // namespace v8 416 } // namespace v8
414 417
415 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 418 #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