| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 LanguageMode language_mode); | 65 LanguageMode language_mode); |
| 66 | 66 |
| 67 // Store properties. The value to be stored should be in the accumulator. | 67 // Store properties. The value to be stored should be in the accumulator. |
| 68 BytecodeArrayBuilder& StoreNamedProperty(Register object, Register name, | 68 BytecodeArrayBuilder& StoreNamedProperty(Register object, Register name, |
| 69 int feedback_slot, | 69 int feedback_slot, |
| 70 LanguageMode language_mode); | 70 LanguageMode language_mode); |
| 71 BytecodeArrayBuilder& StoreKeyedProperty(Register object, Register key, | 71 BytecodeArrayBuilder& StoreKeyedProperty(Register object, Register key, |
| 72 int feedback_slot, | 72 int feedback_slot, |
| 73 LanguageMode language_mode); | 73 LanguageMode language_mode); |
| 74 | 74 |
| 75 // Create a new closure for the SharedFunctionInfo in the accumulator. |
| 76 BytecodeArrayBuilder& CreateClosure(PretenureFlag tenured); |
| 77 |
| 75 // Call a JS function. The JSFunction or Callable to be called should be in | 78 // Call a JS function. The JSFunction or Callable to be called should be in |
| 76 // |callable|, the receiver should be in |receiver| and all subsequent | 79 // |callable|, the receiver should be in |receiver| and all subsequent |
| 77 // arguments should be in registers <receiver + 1> to | 80 // arguments should be in registers <receiver + 1> to |
| 78 // <receiver + 1 + arg_count>. | 81 // <receiver + 1 + arg_count>. |
| 79 BytecodeArrayBuilder& Call(Register callable, Register receiver, | 82 BytecodeArrayBuilder& Call(Register callable, Register receiver, |
| 80 size_t arg_count); | 83 size_t arg_count); |
| 81 | 84 |
| 82 // Call the runtime function with |function_id|. The first argument should be | 85 // Call the runtime function with |function_id|. The first argument should be |
| 83 // in |first_arg| and all subsequent arguments should be in registers | 86 // in |first_arg| and all subsequent arguments should be in registers |
| 84 // <first_arg + 1> to <first_arg + 1 + arg_count>. | 87 // <first_arg + 1> to <first_arg + 1 + arg_count>. |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 239 |
| 237 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); | 240 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); |
| 238 }; | 241 }; |
| 239 | 242 |
| 240 | 243 |
| 241 } // namespace interpreter | 244 } // namespace interpreter |
| 242 } // namespace internal | 245 } // namespace internal |
| 243 } // namespace v8 | 246 } // namespace v8 |
| 244 | 247 |
| 245 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 248 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
| OLD | NEW |