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_COMPILER_INTERPRETER_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
6 #define V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 6 #define V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
7 | 7 |
8 // Clients of this interface shouldn't depend on lots of compiler internals. | 8 // Clients of this interface shouldn't depend on lots of compiler internals. |
9 // Do not include anything from src/compiler here! | 9 // Do not include anything from src/compiler here! |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 Node* HeapConstant(Handle<HeapObject> object); | 81 Node* HeapConstant(Handle<HeapObject> object); |
82 Node* BooleanConstant(bool value); | 82 Node* BooleanConstant(bool value); |
83 | 83 |
84 // Tag and untag Smi values. | 84 // Tag and untag Smi values. |
85 Node* SmiTag(Node* value); | 85 Node* SmiTag(Node* value); |
86 Node* SmiUntag(Node* value); | 86 Node* SmiUntag(Node* value); |
87 | 87 |
88 // Basic arithmetic operations. | 88 // Basic arithmetic operations. |
89 Node* IntPtrAdd(Node* a, Node* b); | 89 Node* IntPtrAdd(Node* a, Node* b); |
90 Node* IntPtrSub(Node* a, Node* b); | 90 Node* IntPtrSub(Node* a, Node* b); |
| 91 Node* Int32Sub(Node* a, Node* b); |
91 Node* WordShl(Node* value, int shift); | 92 Node* WordShl(Node* value, int shift); |
92 | 93 |
93 // Load constant at |index| in the constant pool. | 94 // Load constant at |index| in the constant pool. |
94 Node* LoadConstantPoolEntry(Node* index); | 95 Node* LoadConstantPoolEntry(Node* index); |
95 | 96 |
96 // Load an element from a fixed array on the heap. | 97 // Load an element from a fixed array on the heap. |
97 Node* LoadFixedArrayElement(Node* fixed_array, int index); | 98 Node* LoadFixedArrayElement(Node* fixed_array, int index); |
98 | 99 |
99 // Load a field from an object on the heap. | 100 // Load a field from an object on the heap. |
100 Node* LoadObjectField(Node* object, int offset); | 101 Node* LoadObjectField(Node* object, int offset); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 bool code_generated_; | 219 bool code_generated_; |
219 | 220 |
220 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 221 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
221 }; | 222 }; |
222 | 223 |
223 } // namespace compiler | 224 } // namespace compiler |
224 } // namespace internal | 225 } // namespace internal |
225 } // namespace v8 | 226 } // namespace v8 |
226 | 227 |
227 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 228 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
OLD | NEW |