Chromium Code Reviews

Unified Diff: src/typing.h

Issue 1303843003: Don't allocate AstTyper with the zone allocator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: revised Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « src/hydrogen.cc ('k') | src/typing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/typing.h
diff --git a/src/typing.h b/src/typing.h
index f3ead18f99646fa79febb4e5de88db5413e02daf..ccfb973437faa6f672ac1f1f0ffb29f895aa7516 100644
--- a/src/typing.h
+++ b/src/typing.h
@@ -19,17 +19,12 @@ namespace internal {
class AstTyper: public AstVisitor {
public:
- static void Run(CompilationInfo* info);
-
- void* operator new(size_t size, Zone* zone) { return zone->New(size); }
- void operator delete(void* pointer, Zone* zone) { }
- void operator delete(void* pointer) { }
+ explicit AstTyper(CompilationInfo* info);
+ void Run();
DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
private:
- explicit AstTyper(CompilationInfo* info);
-
Effect ObservedOnStack(Object* value);
void ObserveTypesAtOsrEntry(IterationStatement* stmt);
« no previous file with comments | « src/hydrogen.cc ('k') | src/typing.cc » ('j') | no next file with comments »

Powered by Google App Engine