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_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! |
| 11 #include "src/base/macros.h" | 11 #include "src/base/macros.h" |
| 12 #include "src/builtins.h" | 12 #include "src/builtins.h" |
| 13 #include "src/interpreter/bytecodes.h" | 13 #include "src/interpreter/bytecodes.h" |
| 14 #include "src/runtime/runtime.h" | 14 #include "src/runtime/runtime.h" |
| 15 #include "src/token.h" | |
| 15 | 16 |
| 16 namespace v8 { | 17 namespace v8 { |
| 17 namespace internal { | 18 namespace internal { |
| 18 | 19 |
| 19 class Isolate; | 20 class Isolate; |
| 20 class Callable; | 21 class Callable; |
| 21 class CompilationInfo; | 22 class CompilationInfo; |
| 22 | 23 |
| 23 namespace compiler { | 24 namespace compiler { |
| 24 class InterpreterAssembler; | 25 class InterpreterAssembler; |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 46 // Bytecode handler generator functions. | 47 // Bytecode handler generator functions. |
| 47 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \ | 48 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \ |
| 48 void Do##Name(compiler::InterpreterAssembler* assembler); | 49 void Do##Name(compiler::InterpreterAssembler* assembler); |
| 49 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR) | 50 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR) |
| 50 #undef DECLARE_BYTECODE_HANDLER_GENERATOR | 51 #undef DECLARE_BYTECODE_HANDLER_GENERATOR |
| 51 | 52 |
| 52 // Generates code to perform the binary operations via |function_id|. | 53 // Generates code to perform the binary operations via |function_id|. |
| 53 void DoBinaryOp(Runtime::FunctionId function_id, | 54 void DoBinaryOp(Runtime::FunctionId function_id, |
| 54 compiler::InterpreterAssembler* assembler); | 55 compiler::InterpreterAssembler* assembler); |
| 55 | 56 |
| 57 // Generates code to perform the comparison operation associated with . | |
|
rmcilroy
2015/09/18 10:42:24
finish comment :).
oth
2015/09/23 10:46:56
Done.
| |
| 58 void DoCompareOp(Token::Value compare_op, | |
| 59 compiler::InterpreterAssembler* assembler); | |
| 60 | |
| 56 // Generates code to perform a property load via |ic|. | 61 // Generates code to perform a property load via |ic|. |
| 57 void DoPropertyLoadIC(Callable ic, compiler::InterpreterAssembler* assembler); | 62 void DoPropertyLoadIC(Callable ic, compiler::InterpreterAssembler* assembler); |
| 58 | 63 |
| 59 // Generates code to perform a property store via |ic|. | 64 // Generates code to perform a property store via |ic|. |
| 60 void DoPropertyStoreIC(Callable ic, | 65 void DoPropertyStoreIC(Callable ic, |
| 61 compiler::InterpreterAssembler* assembler); | 66 compiler::InterpreterAssembler* assembler); |
| 62 | 67 |
| 63 bool IsInterpreterTableInitialized(Handle<FixedArray> handler_table); | 68 bool IsInterpreterTableInitialized(Handle<FixedArray> handler_table); |
| 64 | 69 |
| 65 Isolate* isolate_; | 70 Isolate* isolate_; |
| 66 | 71 |
| 67 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 72 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
| 68 }; | 73 }; |
| 69 | 74 |
| 70 } // namespace interpreter | 75 } // namespace interpreter |
| 71 } // namespace internal | 76 } // namespace internal |
| 72 } // namespace v8 | 77 } // namespace v8 |
| 73 | 78 |
| 74 #endif // V8_INTERPRETER_INTERPRETER_H_ | 79 #endif // V8_INTERPRETER_INTERPRETER_H_ |
| OLD | NEW |