Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: src/parser.h

Issue 13640007: devirtualize Parser (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: use BASE_EMBEDDED for Parser and also RegExpParser Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.h
diff --git a/src/parser.h b/src/parser.h
index c65a4ca5f3a46b08a91e139849301e736f3bd888..3d91e0784649ec685c1e775b26784fbf3433ce99 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -293,7 +293,7 @@ class RegExpBuilder: public ZoneObject {
};
-class RegExpParser {
+class RegExpParser BASE_EMBEDDED {
public:
RegExpParser(FlatStringReader* in,
Handle<String>* error,
@@ -423,13 +423,13 @@ class RegExpParser {
// Forward declaration.
class SingletonLogger;
-class Parser {
+class Parser BASE_EMBEDDED {
public:
Parser(CompilationInfo* info,
int parsing_flags, // Combination of ParsingFlags
v8::Extension* extension,
ScriptDataImpl* pre_data);
- virtual ~Parser() {
+ ~Parser() {
delete reusable_preparser_;
reusable_preparser_ = NULL;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698