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 17 matching lines...) Expand all Loading... |
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 | 34 |
35 // Include the declaration of the architecture defined class CodeGenerator. | 35 // Include the declaration of the architecture defined class CodeGenerator. |
36 // The contract to the shared code is that the the CodeGenerator is a subclass | 36 // 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: | 37 // of Visitor and that the following methods are available publicly: |
38 // CodeGenerator::MakeCode | 38 // MakeCode |
39 // CodeGenerator::SetFunctionInfo | 39 // SetFunctionInfo |
40 // CodeGenerator::masm | 40 // masm |
41 // CodeGenerator::frame | 41 // frame |
42 // CodeGenerator::has_valid_frame | 42 // has_valid_frame |
43 // CodeGenerator::SetFrame | 43 // SetFrame |
44 // CodeGenerator::DeleteFrame | 44 // DeleteFrame |
45 // CodeGenerator::allocator | 45 // allocator |
46 // CodeGenerator::AddDeferred | 46 // AddDeferred |
47 // CodeGenerator::in_spilled_code | 47 // in_spilled_code |
48 // CodeGenerator::set_in_spilled_code | 48 // set_in_spilled_code |
49 // | 49 // |
50 // These methods are either used privately by the shared code or implemented as | 50 // These methods are either used privately by the shared code or implemented as |
51 // shared code: | 51 // shared code: |
52 // CodeGenerator::CodeGenerator | 52 // CodeGenerator |
53 // CodeGenerator::~CodeGenerator | 53 // ~CodeGenerator |
54 // CodeGenerator::ProcessDeferred | 54 // ProcessDeferred |
55 // CodeGenerator::ClearDeferred | 55 // ClearDeferred |
56 // CodeGenerator::GenCode | 56 // GenCode |
57 // CodeGenerator::BuildBoilerplate | 57 // BuildBoilerplate |
58 // CodeGenerator::ComputeCallInitialize | 58 // ComputeCallInitialize |
59 // CodeGenerator::ComputeCallInitializeInLoop | 59 // ComputeCallInitializeInLoop |
60 // CodeGenerator::ProcessDeclarations | 60 // ProcessDeclarations |
61 // CodeGenerator::DeclareGlobals | 61 // DeclareGlobals |
62 // CodeGenerator::CheckForInlineRuntimeCall | 62 // CheckForInlineRuntimeCall |
63 // CodeGenerator::GenerateFastCaseSwitchStatement | 63 // GenerateFastCaseSwitchStatement |
64 // CodeGenerator::GenerateFastCaseSwitchCases | 64 // GenerateFastCaseSwitchCases |
65 // CodeGenerator::TryGenerateFastCaseSwitchStatement | 65 // TryGenerateFastCaseSwitchStatement |
66 // CodeGenerator::GenerateFastCaseSwitchJumpTable | 66 // GenerateFastCaseSwitchJumpTable |
67 // CodeGenerator::FastCaseSwitchMinCaseCount | 67 // FastCaseSwitchMinCaseCount |
68 // CodeGenerator::FastCaseSwitchMaxOverheadFactor | 68 // FastCaseSwitchMaxOverheadFactor |
| 69 // CodeForFunctionPosition |
| 70 // CodeForReturnPosition |
| 71 // CodeForStatementPosition |
| 72 // CodeForSourcePosition |
69 | 73 |
70 #ifdef ARM | 74 #ifdef ARM |
71 #include "codegen-arm.h" | 75 #include "codegen-arm.h" |
72 #else | 76 #else |
73 #include "codegen-ia32.h" | 77 #include "codegen-ia32.h" |
74 #endif | 78 #endif |
75 | 79 |
76 namespace v8 { namespace internal { | 80 namespace v8 { namespace internal { |
77 | 81 |
78 | 82 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 PrintF("ArgumentsAccessStub (type %d)\n", type_); | 302 PrintF("ArgumentsAccessStub (type %d)\n", type_); |
299 } | 303 } |
300 #endif | 304 #endif |
301 }; | 305 }; |
302 | 306 |
303 | 307 |
304 } // namespace internal | 308 } // namespace internal |
305 } // namespace v8 | 309 } // namespace v8 |
306 | 310 |
307 #endif // V8_CODEGEN_H_ | 311 #endif // V8_CODEGEN_H_ |
OLD | NEW |