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

Side by Side Diff: src/parser.cc

Issue 52093007: Remove unused ParserMessage class. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/parser.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 5685 matching lines...) Expand 10 before | Expand all | Expand 10 after
5696 ranges->Add(CharacterRange::Everything(), zone()); 5696 ranges->Add(CharacterRange::Everything(), zone());
5697 is_negated = !is_negated; 5697 is_negated = !is_negated;
5698 } 5698 }
5699 return new(zone()) RegExpCharacterClass(ranges, is_negated); 5699 return new(zone()) RegExpCharacterClass(ranges, is_negated);
5700 } 5700 }
5701 5701
5702 5702
5703 // ---------------------------------------------------------------------------- 5703 // ----------------------------------------------------------------------------
5704 // The Parser interface. 5704 // The Parser interface.
5705 5705
5706 ParserMessage::~ParserMessage() {
5707 for (int i = 0; i < args().length(); i++)
5708 DeleteArray(args()[i]);
5709 DeleteArray(args().start());
5710 }
5711
5712
5713 ScriptDataImpl::~ScriptDataImpl() { 5706 ScriptDataImpl::~ScriptDataImpl() {
5714 if (owns_store_) store_.Dispose(); 5707 if (owns_store_) store_.Dispose();
5715 } 5708 }
5716 5709
5717 5710
5718 int ScriptDataImpl::Length() { 5711 int ScriptDataImpl::Length() {
5719 return store_.length() * sizeof(unsigned); 5712 return store_.length() * sizeof(unsigned);
5720 } 5713 }
5721 5714
5722 5715
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
5850 ASSERT(info()->isolate()->has_pending_exception()); 5843 ASSERT(info()->isolate()->has_pending_exception());
5851 } else { 5844 } else {
5852 result = ParseProgram(); 5845 result = ParseProgram();
5853 } 5846 }
5854 } 5847 }
5855 info()->SetFunction(result); 5848 info()->SetFunction(result);
5856 return (result != NULL); 5849 return (result != NULL);
5857 } 5850 }
5858 5851
5859 } } // namespace v8::internal 5852 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/parser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698