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

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

Issue 2504153002: [TypeFeedbackVector] Root literal arrays in function literals slots (Closed)
Patch Set: REBASE. Created 4 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/interface-descriptors.h ('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/base/compiler-specific.h" 9 #include "src/base/compiler-specific.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 BytecodeArrayBuilder& LoadLookupGlobalSlot(const Handle<String> name, 154 BytecodeArrayBuilder& LoadLookupGlobalSlot(const Handle<String> name,
155 TypeofMode typeof_mode, 155 TypeofMode typeof_mode,
156 int feedback_slot, int depth); 156 int feedback_slot, int depth);
157 157
158 // Store value in the accumulator into the variable with |name|. 158 // Store value in the accumulator into the variable with |name|.
159 BytecodeArrayBuilder& StoreLookupSlot(const Handle<String> name, 159 BytecodeArrayBuilder& StoreLookupSlot(const Handle<String> name,
160 LanguageMode language_mode); 160 LanguageMode language_mode);
161 161
162 // Create a new closure for a SharedFunctionInfo which will be inserted at 162 // Create a new closure for a SharedFunctionInfo which will be inserted at
163 // constant pool index |entry|. 163 // constant pool index |entry|.
164 BytecodeArrayBuilder& CreateClosure(size_t entry, int flags); 164 BytecodeArrayBuilder& CreateClosure(size_t entry, int slot, int flags);
165 165
166 // Create a new local context for a |scope_info| and a closure which should be 166 // Create a new local context for a |scope_info| and a closure which should be
167 // in the accumulator. 167 // in the accumulator.
168 BytecodeArrayBuilder& CreateBlockContext(Handle<ScopeInfo> scope_info); 168 BytecodeArrayBuilder& CreateBlockContext(Handle<ScopeInfo> scope_info);
169 169
170 // Create a new context for a catch block with |exception|, |name|, 170 // Create a new context for a catch block with |exception|, |name|,
171 // |scope_info|, and the closure in the accumulator. 171 // |scope_info|, and the closure in the accumulator.
172 BytecodeArrayBuilder& CreateCatchContext(Register exception, 172 BytecodeArrayBuilder& CreateCatchContext(Register exception,
173 Handle<String> name, 173 Handle<String> name,
174 Handle<ScopeInfo> scope_info); 174 Handle<ScopeInfo> scope_info);
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 static int const kNoFeedbackSlot = 0; 439 static int const kNoFeedbackSlot = 0;
440 440
441 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); 441 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder);
442 }; 442 };
443 443
444 } // namespace interpreter 444 } // namespace interpreter
445 } // namespace internal 445 } // namespace internal
446 } // namespace v8 446 } // namespace v8
447 447
448 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 448 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698