| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 89     ASSERT(backing_[kLanguageModeIndex] == CLASSIC_MODE || | 89     ASSERT(backing_[kLanguageModeIndex] == CLASSIC_MODE || | 
| 90            backing_[kLanguageModeIndex] == STRICT_MODE || | 90            backing_[kLanguageModeIndex] == STRICT_MODE || | 
| 91            backing_[kLanguageModeIndex] == EXTENDED_MODE); | 91            backing_[kLanguageModeIndex] == EXTENDED_MODE); | 
| 92     return static_cast<LanguageMode>(backing_[kLanguageModeIndex]); | 92     return static_cast<LanguageMode>(backing_[kLanguageModeIndex]); | 
| 93   } | 93   } | 
| 94 | 94 | 
| 95   bool is_valid() { return !backing_.is_empty(); } | 95   bool is_valid() { return !backing_.is_empty(); } | 
| 96 | 96 | 
| 97  private: | 97  private: | 
| 98   Vector<unsigned> backing_; | 98   Vector<unsigned> backing_; | 
| 99   bool owns_data_; |  | 
| 100 }; | 99 }; | 
| 101 | 100 | 
| 102 | 101 | 
| 103 class ScriptDataImpl : public ScriptData { | 102 class ScriptDataImpl : public ScriptData { | 
| 104  public: | 103  public: | 
| 105   explicit ScriptDataImpl(Vector<unsigned> store) | 104   explicit ScriptDataImpl(Vector<unsigned> store) | 
| 106       : store_(store), | 105       : store_(store), | 
| 107         owns_store_(true) { } | 106         owns_store_(true) { } | 
| 108 | 107 | 
| 109   // Create an empty ScriptDataImpl that is guaranteed to not satisfy | 108   // Create an empty ScriptDataImpl that is guaranteed to not satisfy | 
| (...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 878  private: | 877  private: | 
| 879   static const int kTypeSlot = 0; | 878   static const int kTypeSlot = 0; | 
| 880   static const int kElementsSlot = 1; | 879   static const int kElementsSlot = 1; | 
| 881 | 880 | 
| 882   DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 881   DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 
| 883 }; | 882 }; | 
| 884 | 883 | 
| 885 } }  // namespace v8::internal | 884 } }  // namespace v8::internal | 
| 886 | 885 | 
| 887 #endif  // V8_PARSER_H_ | 886 #endif  // V8_PARSER_H_ | 
| OLD | NEW | 
|---|