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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 // Generates code to perform the count operations via |function_id|. | 57 // Generates code to perform the count operations via |function_id|. |
58 void DoCountOp(Runtime::FunctionId function_id, | 58 void DoCountOp(Runtime::FunctionId function_id, |
59 compiler::InterpreterAssembler* assembler); | 59 compiler::InterpreterAssembler* assembler); |
60 | 60 |
61 // Generates code to perform the comparison operation associated with | 61 // Generates code to perform the comparison operation associated with |
62 // |compare_op|. | 62 // |compare_op|. |
63 void DoCompareOp(Token::Value compare_op, | 63 void DoCompareOp(Token::Value compare_op, |
64 compiler::InterpreterAssembler* assembler); | 64 compiler::InterpreterAssembler* assembler); |
65 | 65 |
| 66 // Generates code to load a constant from the constant pool. |
| 67 void DoLoadConstant(compiler::InterpreterAssembler* assembler); |
| 68 |
66 // Generates code to perform a global load via |ic|. | 69 // Generates code to perform a global load via |ic|. |
67 void DoLoadGlobal(Callable ic, compiler::InterpreterAssembler* assembler); | 70 void DoLoadGlobal(Callable ic, compiler::InterpreterAssembler* assembler); |
68 | 71 |
69 // Generates code to perform a global store via |ic|. | 72 // Generates code to perform a global store via |ic|. |
70 void DoStoreGlobal(Callable ic, compiler::InterpreterAssembler* assembler); | 73 void DoStoreGlobal(Callable ic, compiler::InterpreterAssembler* assembler); |
71 | 74 |
72 // Generates code to perform a named property load via |ic|. | 75 // Generates code to perform a named property load via |ic|. |
73 void DoLoadIC(Callable ic, compiler::InterpreterAssembler* assembler); | 76 void DoLoadIC(Callable ic, compiler::InterpreterAssembler* assembler); |
74 | 77 |
75 // Generates code to perform a keyed property load via |ic|. | 78 // Generates code to perform a keyed property load via |ic|. |
(...skipping 18 matching lines...) Expand all Loading... |
94 Isolate* isolate_; | 97 Isolate* isolate_; |
95 | 98 |
96 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 99 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
97 }; | 100 }; |
98 | 101 |
99 } // namespace interpreter | 102 } // namespace interpreter |
100 } // namespace internal | 103 } // namespace internal |
101 } // namespace v8 | 104 } // namespace v8 |
102 | 105 |
103 #endif // V8_INTERPRETER_INTERPRETER_H_ | 106 #endif // V8_INTERPRETER_INTERPRETER_H_ |
OLD | NEW |