| 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_INTERPRETER_H_ | 5 #ifndef V8_INTERPRETER_INTERPRETER_H_ |
| 6 #define V8_INTERPRETER_INTERPRETER_H_ | 6 #define V8_INTERPRETER_INTERPRETER_H_ |
| 7 | 7 |
| 8 // Clients of this interface shouldn't depend on lots of interpreter internals. | 8 // Clients of this interface shouldn't depend on lots of interpreter internals. |
| 9 // Do not include anything from src/interpreter other than | 9 // Do not include anything from src/interpreter other than |
| 10 // src/interpreter/bytecodes.h here! | 10 // src/interpreter/bytecodes.h here! |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // Bytecode handler generator functions. | 47 // Bytecode handler generator functions. |
| 48 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \ | 48 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \ |
| 49 void Do##Name(compiler::InterpreterAssembler* assembler); | 49 void Do##Name(compiler::InterpreterAssembler* assembler); |
| 50 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR) | 50 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR) |
| 51 #undef DECLARE_BYTECODE_HANDLER_GENERATOR | 51 #undef DECLARE_BYTECODE_HANDLER_GENERATOR |
| 52 | 52 |
| 53 // Generates code to perform the binary operations via |function_id|. | 53 // Generates code to perform the binary operations via |function_id|. |
| 54 void DoBinaryOp(Runtime::FunctionId function_id, | 54 void DoBinaryOp(Runtime::FunctionId function_id, |
| 55 compiler::InterpreterAssembler* assembler); | 55 compiler::InterpreterAssembler* assembler); |
| 56 | 56 |
| 57 // Generates code to perform the count operations via |function_id|. |
| 58 void DoCountOp(Runtime::FunctionId function_id, |
| 59 compiler::InterpreterAssembler* assembler); |
| 60 |
| 57 // Generates code to perform the comparison operation associated with | 61 // Generates code to perform the comparison operation associated with |
| 58 // |compare_op|. | 62 // |compare_op|. |
| 59 void DoCompareOp(Token::Value compare_op, | 63 void DoCompareOp(Token::Value compare_op, |
| 60 compiler::InterpreterAssembler* assembler); | 64 compiler::InterpreterAssembler* assembler); |
| 61 | 65 |
| 62 // Generates code to perform a global load via |ic|. | 66 // Generates code to perform a global load via |ic|. |
| 63 void DoLoadGlobal(Callable ic, compiler::InterpreterAssembler* assembler); | 67 void DoLoadGlobal(Callable ic, compiler::InterpreterAssembler* assembler); |
| 64 | 68 |
| 65 // Generates code to perform a global store via |ic|. | 69 // Generates code to perform a global store via |ic|. |
| 66 void DoStoreGlobal(Callable ic, compiler::InterpreterAssembler* assembler); | 70 void DoStoreGlobal(Callable ic, compiler::InterpreterAssembler* assembler); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 86 Isolate* isolate_; | 90 Isolate* isolate_; |
| 87 | 91 |
| 88 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 92 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
| 89 }; | 93 }; |
| 90 | 94 |
| 91 } // namespace interpreter | 95 } // namespace interpreter |
| 92 } // namespace internal | 96 } // namespace internal |
| 93 } // namespace v8 | 97 } // namespace v8 |
| 94 | 98 |
| 95 #endif // V8_INTERPRETER_INTERPRETER_H_ | 99 #endif // V8_INTERPRETER_INTERPRETER_H_ |
| OLD | NEW |