OLD | NEW |
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 BytecodeArrayBuilder& LoadLookupGlobalSlot(const Handle<String> name, | 155 BytecodeArrayBuilder& LoadLookupGlobalSlot(const Handle<String> name, |
156 TypeofMode typeof_mode, | 156 TypeofMode typeof_mode, |
157 int feedback_slot, int depth); | 157 int feedback_slot, int depth); |
158 | 158 |
159 // Store value in the accumulator into the variable with |name|. | 159 // Store value in the accumulator into the variable with |name|. |
160 BytecodeArrayBuilder& StoreLookupSlot(const Handle<String> name, | 160 BytecodeArrayBuilder& StoreLookupSlot(const Handle<String> name, |
161 LanguageMode language_mode); | 161 LanguageMode language_mode); |
162 | 162 |
163 // Create a new closure for a SharedFunctionInfo which will be inserted at | 163 // Create a new closure for a SharedFunctionInfo which will be inserted at |
164 // constant pool index |entry|. | 164 // constant pool index |entry|. |
165 BytecodeArrayBuilder& CreateClosure(size_t entry, int flags); | 165 BytecodeArrayBuilder& CreateClosure(size_t entry, int slot, int flags); |
166 | 166 |
167 // Create a new local context for a |scope_info| and a closure which should be | 167 // Create a new local context for a |scope_info| and a closure which should be |
168 // in the accumulator. | 168 // in the accumulator. |
169 BytecodeArrayBuilder& CreateBlockContext(Handle<ScopeInfo> scope_info); | 169 BytecodeArrayBuilder& CreateBlockContext(Handle<ScopeInfo> scope_info); |
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); |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 static int const kNoFeedbackSlot = 0; | 429 static int const kNoFeedbackSlot = 0; |
430 | 430 |
431 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); | 431 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); |
432 }; | 432 }; |
433 | 433 |
434 } // namespace interpreter | 434 } // namespace interpreter |
435 } // namespace internal | 435 } // namespace internal |
436 } // namespace v8 | 436 } // namespace v8 |
437 | 437 |
438 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 438 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
OLD | NEW |