| 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_CODE_STUB_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_CODE_STUB_ASSEMBLER_H_ |
| 6 #define V8_COMPILER_CODE_STUB_ASSEMBLER_H_ | 6 #define V8_COMPILER_CODE_STUB_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 12 matching lines...) Expand all Loading... |
| 23 class CallDescriptor; | 23 class CallDescriptor; |
| 24 class Graph; | 24 class Graph; |
| 25 class Node; | 25 class Node; |
| 26 class Operator; | 26 class Operator; |
| 27 class RawMachineAssembler; | 27 class RawMachineAssembler; |
| 28 class Schedule; | 28 class Schedule; |
| 29 | 29 |
| 30 class CodeStubAssembler { | 30 class CodeStubAssembler { |
| 31 public: | 31 public: |
| 32 CodeStubAssembler(Isolate* isolate, Zone* zone, | 32 CodeStubAssembler(Isolate* isolate, Zone* zone, |
| 33 const CallInterfaceDescriptor& descriptor, Code::Kind kind, | 33 const CallInterfaceDescriptor& descriptor, |
| 34 const char* name); | 34 Code::Flags flags, const char* name); |
| 35 virtual ~CodeStubAssembler(); | 35 virtual ~CodeStubAssembler(); |
| 36 | 36 |
| 37 Handle<Code> GenerateCode(); | 37 Handle<Code> GenerateCode(); |
| 38 | 38 |
| 39 // Constants. | 39 // Constants. |
| 40 Node* Int32Constant(int value); | 40 Node* Int32Constant(int value); |
| 41 Node* IntPtrConstant(intptr_t value); | 41 Node* IntPtrConstant(intptr_t value); |
| 42 Node* NumberConstant(double value); | 42 Node* NumberConstant(double value); |
| 43 Node* HeapConstant(Handle<HeapObject> object); | 43 Node* HeapConstant(Handle<HeapObject> object); |
| 44 Node* BooleanConstant(bool value); | 44 Node* BooleanConstant(bool value); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 75 Node* TailCallN(CallDescriptor* descriptor, Node* code_target, Node** args); | 75 Node* TailCallN(CallDescriptor* descriptor, Node* code_target, Node** args); |
| 76 | 76 |
| 77 Node* SmiShiftBitsConstant(); | 77 Node* SmiShiftBitsConstant(); |
| 78 | 78 |
| 79 // Private helpers which delegate to RawMachineAssembler. | 79 // Private helpers which delegate to RawMachineAssembler. |
| 80 Graph* graph(); | 80 Graph* graph(); |
| 81 Isolate* isolate(); | 81 Isolate* isolate(); |
| 82 Zone* zone(); | 82 Zone* zone(); |
| 83 | 83 |
| 84 base::SmartPointer<RawMachineAssembler> raw_assembler_; | 84 base::SmartPointer<RawMachineAssembler> raw_assembler_; |
| 85 Code::Kind kind_; | 85 Code::Flags flags_; |
| 86 const char* name_; | 86 const char* name_; |
| 87 bool code_generated_; | 87 bool code_generated_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(CodeStubAssembler); | 89 DISALLOW_COPY_AND_ASSIGN(CodeStubAssembler); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace compiler | 92 } // namespace compiler |
| 93 } // namespace internal | 93 } // namespace internal |
| 94 } // namespace v8 | 94 } // namespace v8 |
| 95 | 95 |
| 96 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_ | 96 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |