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

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

Issue 2435023002: Use a different map to distinguish eval contexts (Closed)
Patch Set: Changes from review 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/heap/heap.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/base/compiler-specific.h" 9 #include "src/base/compiler-specific.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 // Create a new context for a catch block with |exception|, |name|, 171 // Create a new context for a catch block with |exception|, |name|,
172 // |scope_info|, and the closure in the accumulator. 172 // |scope_info|, and the closure in the accumulator.
173 BytecodeArrayBuilder& CreateCatchContext(Register exception, 173 BytecodeArrayBuilder& CreateCatchContext(Register exception,
174 Handle<String> name, 174 Handle<String> name,
175 Handle<ScopeInfo> scope_info); 175 Handle<ScopeInfo> scope_info);
176 176
177 // Create a new context with size |slots|. 177 // Create a new context with size |slots|.
178 BytecodeArrayBuilder& CreateFunctionContext(int slots); 178 BytecodeArrayBuilder& CreateFunctionContext(int slots);
179 179
180 // Create a new eval context with size |slots|.
181 BytecodeArrayBuilder& CreateEvalContext(int slots);
182
180 // Creates a new context with the given |scope_info| for a with-statement 183 // Creates a new context with the given |scope_info| for a with-statement
181 // with the |object| in a register and the closure in the accumulator. 184 // with the |object| in a register and the closure in the accumulator.
182 BytecodeArrayBuilder& CreateWithContext(Register object, 185 BytecodeArrayBuilder& CreateWithContext(Register object,
183 Handle<ScopeInfo> scope_info); 186 Handle<ScopeInfo> scope_info);
184 187
185 // Create a new arguments object in the accumulator. 188 // Create a new arguments object in the accumulator.
186 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type); 189 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type);
187 190
188 // Literals creation. Constant elements should be in the accumulator. 191 // Literals creation. Constant elements should be in the accumulator.
189 BytecodeArrayBuilder& CreateRegExpLiteral(Handle<String> pattern, 192 BytecodeArrayBuilder& CreateRegExpLiteral(Handle<String> pattern,
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 static int const kNoFeedbackSlot = 0; 434 static int const kNoFeedbackSlot = 0;
432 435
433 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); 436 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder);
434 }; 437 };
435 438
436 } // namespace interpreter 439 } // namespace interpreter
437 } // namespace internal 440 } // namespace internal
438 } // namespace v8 441 } // namespace v8
439 442
440 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 443 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698