| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |