| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 25 matching lines...) Expand all Loading... |
| 36 #include "type-info.h" | 36 #include "type-info.h" |
| 37 #include "zone.h" | 37 #include "zone.h" |
| 38 #include "scopes.h" | 38 #include "scopes.h" |
| 39 | 39 |
| 40 namespace v8 { | 40 namespace v8 { |
| 41 namespace internal { | 41 namespace internal { |
| 42 | 42 |
| 43 | 43 |
| 44 class AstTyper: public AstVisitor { | 44 class AstTyper: public AstVisitor { |
| 45 public: | 45 public: |
| 46 static void Type(CompilationInfo* info); | 46 static void Run(CompilationInfo* info); |
| 47 | 47 |
| 48 void* operator new(size_t size, Zone* zone) { | 48 void* operator new(size_t size, Zone* zone) { |
| 49 return zone->New(static_cast<int>(size)); | 49 return zone->New(static_cast<int>(size)); |
| 50 } | 50 } |
| 51 void operator delete(void* pointer, Zone* zone) { } | 51 void operator delete(void* pointer, Zone* zone) { } |
| 52 void operator delete(void* pointer) { } | 52 void operator delete(void* pointer) { } |
| 53 | 53 |
| 54 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); | 54 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); |
| 55 | 55 |
| 56 private: | 56 private: |
| (...skipping 11 matching lines...) Expand all Loading... |
| 68 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); | 68 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); |
| 69 AST_NODE_LIST(DECLARE_VISIT) | 69 AST_NODE_LIST(DECLARE_VISIT) |
| 70 #undef DECLARE_VISIT | 70 #undef DECLARE_VISIT |
| 71 | 71 |
| 72 DISALLOW_COPY_AND_ASSIGN(AstTyper); | 72 DISALLOW_COPY_AND_ASSIGN(AstTyper); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } } // namespace v8::internal | 75 } } // namespace v8::internal |
| 76 | 76 |
| 77 #endif // V8_TYPING_H_ | 77 #endif // V8_TYPING_H_ |
| OLD | NEW |