| 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 30 matching lines...) Expand all Loading... |
| 41 static bool MakeBytecode(CompilationInfo* info); | 41 static bool MakeBytecode(CompilationInfo* info); |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 // Bytecode handler generator functions. | 44 // Bytecode handler generator functions. |
| 45 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \ | 45 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \ |
| 46 void Do##Name(compiler::InterpreterAssembler* assembler); | 46 void Do##Name(compiler::InterpreterAssembler* assembler); |
| 47 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR) | 47 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR) |
| 48 #undef DECLARE_BYTECODE_HANDLER_GENERATOR | 48 #undef DECLARE_BYTECODE_HANDLER_GENERATOR |
| 49 | 49 |
| 50 // Generates code to perform the binary operations via |binop_builtin|. | 50 // Generates code to perform the binary operations via |binop_builtin|. |
| 51 void DoBinaryOp(Builtins::JavaScript binop_builtin, | 51 void DoBinaryOp(int builtin_context_index, |
| 52 compiler::InterpreterAssembler* assembler); | 52 compiler::InterpreterAssembler* assembler); |
| 53 | 53 |
| 54 bool IsInterpreterTableInitialized(Handle<FixedArray> handler_table); | 54 bool IsInterpreterTableInitialized(Handle<FixedArray> handler_table); |
| 55 | 55 |
| 56 Isolate* isolate_; | 56 Isolate* isolate_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 58 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace interpreter | 61 } // namespace interpreter |
| 62 } // namespace internal | 62 } // namespace internal |
| 63 } // namespace v8 | 63 } // namespace v8 |
| 64 | 64 |
| 65 #endif // V8_INTERPRETER_INTERPRETER_H_ | 65 #endif // V8_INTERPRETER_INTERPRETER_H_ |
| OLD | NEW |