Chromium Code Reviews| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "src/ast.h" | 10 #include "src/ast.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 90 BytecodeArrayBuilder& StoreNamedProperty(Register object, Register name, | 90 BytecodeArrayBuilder& StoreNamedProperty(Register object, Register name, |
| 91 int feedback_slot, | 91 int feedback_slot, |
| 92 LanguageMode language_mode); | 92 LanguageMode language_mode); |
| 93 BytecodeArrayBuilder& StoreKeyedProperty(Register object, Register key, | 93 BytecodeArrayBuilder& StoreKeyedProperty(Register object, Register key, |
| 94 int feedback_slot, | 94 int feedback_slot, |
| 95 LanguageMode language_mode); | 95 LanguageMode language_mode); |
| 96 | 96 |
| 97 // Create a new closure for the SharedFunctionInfo in the accumulator. | 97 // Create a new closure for the SharedFunctionInfo in the accumulator. |
| 98 BytecodeArrayBuilder& CreateClosure(PretenureFlag tenured); | 98 BytecodeArrayBuilder& CreateClosure(PretenureFlag tenured); |
| 99 | 99 |
| 100 // Create a new arguments object in the accumulator, calling the |function_id| | |
|
Michael Starzinger
2015/10/21 18:42:17
nit: Comment referring to "function_id" looks outd
rmcilroy
2015/10/22 15:19:52
Done.
| |
| 101 // to do so. | |
| 102 BytecodeArrayBuilder& CreateArguments(bool use_strict); | |
| 103 | |
| 100 // Literals creation. Constant elements should be in the accumulator. | 104 // Literals creation. Constant elements should be in the accumulator. |
| 101 BytecodeArrayBuilder& CreateRegExpLiteral(int literal_index, Register flags); | 105 BytecodeArrayBuilder& CreateRegExpLiteral(int literal_index, Register flags); |
| 102 BytecodeArrayBuilder& CreateArrayLiteral(int literal_index, int flags); | 106 BytecodeArrayBuilder& CreateArrayLiteral(int literal_index, int flags); |
| 103 BytecodeArrayBuilder& CreateObjectLiteral(int literal_index, int flags); | 107 BytecodeArrayBuilder& CreateObjectLiteral(int literal_index, int flags); |
| 104 | 108 |
| 105 // Push the context in accumulator as the new context, and store in register | 109 // Push the context in accumulator as the new context, and store in register |
| 106 // |context|. | 110 // |context|. |
| 107 BytecodeArrayBuilder& PushContext(Register context); | 111 BytecodeArrayBuilder& PushContext(Register context); |
| 108 | 112 |
| 109 // Pop the current context and replace with |context|. | 113 // Pop the current context and replace with |context|. |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 289 | 293 |
| 290 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); | 294 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); |
| 291 }; | 295 }; |
| 292 | 296 |
| 293 | 297 |
| 294 } // namespace interpreter | 298 } // namespace interpreter |
| 295 } // namespace internal | 299 } // namespace internal |
| 296 } // namespace v8 | 300 } // namespace v8 |
| 297 | 301 |
| 298 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 302 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
| OLD | NEW |