OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 class FullCodeGenerator: public AstVisitor { | 67 class FullCodeGenerator: public AstVisitor { |
68 public: | 68 public: |
69 explicit FullCodeGenerator(MacroAssembler* masm) | 69 explicit FullCodeGenerator(MacroAssembler* masm) |
70 : masm_(masm), | 70 : masm_(masm), |
71 info_(NULL), | 71 info_(NULL), |
72 nesting_stack_(NULL), | 72 nesting_stack_(NULL), |
73 loop_depth_(0), | 73 loop_depth_(0), |
74 context_(NULL) { | 74 context_(NULL) { |
75 } | 75 } |
76 | 76 |
77 static Handle<Code> MakeCode(CompilationInfo* info); | 77 static bool MakeCode(CompilationInfo* info); |
78 | 78 |
79 void Generate(CompilationInfo* info); | 79 void Generate(CompilationInfo* info); |
80 | 80 |
81 private: | 81 private: |
82 class Breakable; | 82 class Breakable; |
83 class Iteration; | 83 class Iteration; |
84 class TryCatch; | 84 class TryCatch; |
85 class TryFinally; | 85 class TryFinally; |
86 class Finally; | 86 class Finally; |
87 class ForIn; | 87 class ForIn; |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 | 656 |
657 friend class NestedStatement; | 657 friend class NestedStatement; |
658 | 658 |
659 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 659 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
660 }; | 660 }; |
661 | 661 |
662 | 662 |
663 } } // namespace v8::internal | 663 } } // namespace v8::internal |
664 | 664 |
665 #endif // V8_FULL_CODEGEN_H_ | 665 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |