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

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

Issue 1471913004: Revert of [Interpreter] Add CreateClosure to BytecodeGraphBuilder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 LanguageMode language_mode); 109 LanguageMode language_mode);
110 110
111 // Store properties. The value to be stored should be in the accumulator. 111 // Store properties. The value to be stored should be in the accumulator.
112 BytecodeArrayBuilder& StoreNamedProperty(Register object, size_t name_index, 112 BytecodeArrayBuilder& StoreNamedProperty(Register object, size_t name_index,
113 int feedback_slot, 113 int feedback_slot,
114 LanguageMode language_mode); 114 LanguageMode language_mode);
115 BytecodeArrayBuilder& StoreKeyedProperty(Register object, Register key, 115 BytecodeArrayBuilder& StoreKeyedProperty(Register object, Register key,
116 int feedback_slot, 116 int feedback_slot,
117 LanguageMode language_mode); 117 LanguageMode language_mode);
118 118
119 // Create a new closure for the SharedFunctionInfo. 119 // Create a new closure for the SharedFunctionInfo in the accumulator.
120 BytecodeArrayBuilder& CreateClosure(Handle<SharedFunctionInfo> shared_info, 120 BytecodeArrayBuilder& CreateClosure(PretenureFlag tenured);
121 PretenureFlag tenured);
122 121
123 // Create a new arguments object in the accumulator. 122 // Create a new arguments object in the accumulator.
124 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type); 123 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type);
125 124
126 // Literals creation. Constant elements should be in the accumulator. 125 // Literals creation. Constant elements should be in the accumulator.
127 BytecodeArrayBuilder& CreateRegExpLiteral(int literal_index, Register flags); 126 BytecodeArrayBuilder& CreateRegExpLiteral(int literal_index, Register flags);
128 BytecodeArrayBuilder& CreateArrayLiteral(int literal_index, int flags); 127 BytecodeArrayBuilder& CreateArrayLiteral(int literal_index, int flags);
129 BytecodeArrayBuilder& CreateObjectLiteral(int literal_index, int flags); 128 BytecodeArrayBuilder& CreateObjectLiteral(int literal_index, int flags);
130 129
131 // Push the context in accumulator as the new context, and store in register 130 // Push the context in accumulator as the new context, and store in register
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 356
358 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); 357 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope);
359 }; 358 };
360 359
361 360
362 } // namespace interpreter 361 } // namespace interpreter
363 } // namespace internal 362 } // namespace internal
364 } // namespace v8 363 } // namespace v8
365 364
366 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 365 #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