| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_PREPARSE_DATA_H_ | 5 #ifndef V8_PREPARSE_DATA_H_ |
| 6 #define V8_PREPARSE_DATA_H_ | 6 #define V8_PREPARSE_DATA_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/hashmap.h" | 9 #include "src/hashmap.h" |
| 10 #include "src/preparse-data-format.h" | 10 #include "src/preparse-data-format.h" |
| 11 #include "src/utils-inl.h" | |
| 12 | 11 |
| 13 namespace v8 { | 12 namespace v8 { |
| 14 namespace internal { | 13 namespace internal { |
| 15 | 14 |
| 16 class ScriptData { | 15 class ScriptData { |
| 17 public: | 16 public: |
| 18 ScriptData(const byte* data, int length); | 17 ScriptData(const byte* data, int length); |
| 19 ~ScriptData() { | 18 ~ScriptData() { |
| 20 if (owns_data_) DeleteArray(data_); | 19 if (owns_data_) DeleteArray(data_); |
| 21 } | 20 } |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 197 |
| 199 #ifdef DEBUG | 198 #ifdef DEBUG |
| 200 int prev_start_; | 199 int prev_start_; |
| 201 #endif | 200 #endif |
| 202 }; | 201 }; |
| 203 | 202 |
| 204 | 203 |
| 205 } } // namespace v8::internal. | 204 } } // namespace v8::internal. |
| 206 | 205 |
| 207 #endif // V8_PREPARSE_DATA_H_ | 206 #endif // V8_PREPARSE_DATA_H_ |
| OLD | NEW |