OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_COMPILER_H_ | 28 #ifndef V8_COMPILER_H_ |
29 #define V8_COMPILER_H_ | 29 #define V8_COMPILER_H_ |
30 | 30 |
31 #include "allocation.h" | 31 #include "allocation.h" |
32 #include "ast.h" | 32 #include "ast.h" |
33 #include "zone.h" | 33 #include "zone.h" |
34 | 34 |
35 namespace v8 { | 35 namespace v8 { |
36 namespace internal { | 36 namespace internal { |
37 | 37 |
38 static const int kPrologueOffsetNotSet = -1; | |
39 | |
40 class ScriptDataImpl; | 38 class ScriptDataImpl; |
41 class HydrogenCodeStub; | 39 class HydrogenCodeStub; |
42 | 40 |
43 // ParseRestriction is used to restrict the set of valid statements in a | 41 // ParseRestriction is used to restrict the set of valid statements in a |
44 // unit of compilation. Restriction violations cause a syntax error. | 42 // unit of compilation. Restriction violations cause a syntax error. |
45 enum ParseRestriction { | 43 enum ParseRestriction { |
46 NO_PARSE_RESTRICTION, // All expressions are allowed. | 44 NO_PARSE_RESTRICTION, // All expressions are allowed. |
47 ONLY_SINGLE_FUNCTION_LITERAL // Only a single FunctionLiteral expression. | 45 ONLY_SINGLE_FUNCTION_LITERAL // Only a single FunctionLiteral expression. |
48 }; | 46 }; |
49 | 47 |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 unsigned info_zone_start_allocation_size_; | 663 unsigned info_zone_start_allocation_size_; |
666 ElapsedTimer timer_; | 664 ElapsedTimer timer_; |
667 | 665 |
668 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 666 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
669 }; | 667 }; |
670 | 668 |
671 | 669 |
672 } } // namespace v8::internal | 670 } } // namespace v8::internal |
673 | 671 |
674 #endif // V8_COMPILER_H_ | 672 #endif // V8_COMPILER_H_ |
OLD | NEW |