OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 13 matching lines...) Expand all Loading... |
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #ifndef V8_CODEGEN_H_ | 28 #ifndef V8_CODEGEN_H_ |
29 #define V8_CODEGEN_H_ | 29 #define V8_CODEGEN_H_ |
30 | 30 |
31 #include "ast.h" | 31 #include "ast.h" |
32 #include "code-stubs.h" | 32 #include "code-stubs.h" |
33 #include "runtime.h" | 33 #include "runtime.h" |
| 34 #include "number-info.h" |
34 | 35 |
35 // Include the declaration of the architecture defined class CodeGenerator. | 36 // Include the declaration of the architecture defined class CodeGenerator. |
36 // The contract to the shared code is that the the CodeGenerator is a subclass | 37 // The contract to the shared code is that the the CodeGenerator is a subclass |
37 // of Visitor and that the following methods are available publicly: | 38 // of Visitor and that the following methods are available publicly: |
38 // MakeCode | 39 // MakeCode |
39 // MakeCodePrologue | 40 // MakeCodePrologue |
40 // MakeCodeEpilogue | 41 // MakeCodeEpilogue |
41 // masm | 42 // masm |
42 // frame | 43 // frame |
43 // script | 44 // script |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 private: | 552 private: |
552 Major MajorKey() { return ToBoolean; } | 553 Major MajorKey() { return ToBoolean; } |
553 int MinorKey() { return 0; } | 554 int MinorKey() { return 0; } |
554 }; | 555 }; |
555 | 556 |
556 | 557 |
557 } // namespace internal | 558 } // namespace internal |
558 } // namespace v8 | 559 } // namespace v8 |
559 | 560 |
560 #endif // V8_CODEGEN_H_ | 561 #endif // V8_CODEGEN_H_ |
OLD | NEW |