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

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

Issue 2113613002: [Interpereter] Inline FastNewClosure into CreateClosure bytecode handler (Closed) Base URL: ssh://rmcilroy.lon.corp.google.com///usr/local/google/code/v8_full/v8@int_context
Patch Set: Rebaseline bytecode expectations Created 4 years, 5 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 | « no previous file | 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Lookup the variable with |name|. 122 // Lookup the variable with |name|.
123 BytecodeArrayBuilder& LoadLookupSlot(const Handle<String> name, 123 BytecodeArrayBuilder& LoadLookupSlot(const Handle<String> name,
124 TypeofMode typeof_mode); 124 TypeofMode typeof_mode);
125 125
126 // Store value in the accumulator into the variable with |name|. 126 // Store value in the accumulator into the variable with |name|.
127 BytecodeArrayBuilder& StoreLookupSlot(const Handle<String> name, 127 BytecodeArrayBuilder& StoreLookupSlot(const Handle<String> name,
128 LanguageMode language_mode); 128 LanguageMode language_mode);
129 129
130 // Create a new closure for the SharedFunctionInfo. 130 // Create a new closure for the SharedFunctionInfo.
131 BytecodeArrayBuilder& CreateClosure(Handle<SharedFunctionInfo> shared_info, 131 BytecodeArrayBuilder& CreateClosure(Handle<SharedFunctionInfo> shared_info,
132 PretenureFlag tenured); 132 int flags);
133 133
134 // Create a new arguments object in the accumulator. 134 // Create a new arguments object in the accumulator.
135 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type); 135 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type);
136 136
137 // Literals creation. Constant elements should be in the accumulator. 137 // Literals creation. Constant elements should be in the accumulator.
138 BytecodeArrayBuilder& CreateRegExpLiteral(Handle<String> pattern, 138 BytecodeArrayBuilder& CreateRegExpLiteral(Handle<String> pattern,
139 int literal_index, int flags); 139 int literal_index, int flags);
140 BytecodeArrayBuilder& CreateArrayLiteral(Handle<FixedArray> constant_elements, 140 BytecodeArrayBuilder& CreateArrayLiteral(Handle<FixedArray> constant_elements,
141 int literal_index, int flags); 141 int literal_index, int flags);
142 BytecodeArrayBuilder& CreateObjectLiteral( 142 BytecodeArrayBuilder& CreateObjectLiteral(
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 BytecodeSourceInfo latest_source_info_; 367 BytecodeSourceInfo latest_source_info_;
368 368
369 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); 369 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder);
370 }; 370 };
371 371
372 } // namespace interpreter 372 } // namespace interpreter
373 } // namespace internal 373 } // namespace internal
374 } // namespace v8 374 } // namespace v8
375 375
376 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 376 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698