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

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

Issue 1410853002: [Interpreter] Add support for RegExp literals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 <vector> 8 #include <vector>
9 9
10 #include "src/ast.h" 10 #include "src/ast.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 int feedback_slot, 76 int feedback_slot,
77 LanguageMode language_mode); 77 LanguageMode language_mode);
78 BytecodeArrayBuilder& StoreKeyedProperty(Register object, Register key, 78 BytecodeArrayBuilder& StoreKeyedProperty(Register object, Register key,
79 int feedback_slot, 79 int feedback_slot,
80 LanguageMode language_mode); 80 LanguageMode language_mode);
81 81
82 // Create a new closure for the SharedFunctionInfo in the accumulator. 82 // Create a new closure for the SharedFunctionInfo in the accumulator.
83 BytecodeArrayBuilder& CreateClosure(PretenureFlag tenured); 83 BytecodeArrayBuilder& CreateClosure(PretenureFlag tenured);
84 84
85 // Literals creation. Constant elements should be in the accumulator. 85 // Literals creation. Constant elements should be in the accumulator.
86 BytecodeArrayBuilder& CreateRegExpLiteral(int literal_index, Register flags);
86 BytecodeArrayBuilder& CreateArrayLiteral(int literal_index, int flags); 87 BytecodeArrayBuilder& CreateArrayLiteral(int literal_index, int flags);
87 BytecodeArrayBuilder& CreateObjectLiteral(int literal_index, int flags); 88 BytecodeArrayBuilder& CreateObjectLiteral(int literal_index, int flags);
88 89
89 // Push the context in accumulator as the new context, and store in register 90 // Push the context in accumulator as the new context, and store in register
90 // |context|. 91 // |context|.
91 BytecodeArrayBuilder& PushContext(Register context); 92 BytecodeArrayBuilder& PushContext(Register context);
92 93
93 // Pop the current context and replace with |context|. 94 // Pop the current context and replace with |context|.
94 BytecodeArrayBuilder& PopContext(Register context); 95 BytecodeArrayBuilder& PopContext(Register context);
95 96
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 265
265 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); 266 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope);
266 }; 267 };
267 268
268 269
269 } // namespace interpreter 270 } // namespace interpreter
270 } // namespace internal 271 } // namespace internal
271 } // namespace v8 272 } // namespace v8
272 273
273 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 274 #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