| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 } | 161 } |
| 162 | 162 |
| 163 private: | 163 private: |
| 164 DISALLOW_COPY_AND_ASSIGN(BootstrapperActive); | 164 DISALLOW_COPY_AND_ASSIGN(BootstrapperActive); |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 | 167 |
| 168 class NativesExternalStringResource | 168 class NativesExternalStringResource |
| 169 : public v8::String::ExternalAsciiStringResource { | 169 : public v8::String::ExternalAsciiStringResource { |
| 170 public: | 170 public: |
| 171 explicit NativesExternalStringResource(Bootstrapper* bootstrapper, | 171 NativesExternalStringResource(Bootstrapper* bootstrapper, |
| 172 const char* source); | 172 const char* source, |
| 173 size_t length); |
| 173 | 174 |
| 174 const char* data() const { | 175 const char* data() const { |
| 175 return data_; | 176 return data_; |
| 176 } | 177 } |
| 177 | 178 |
| 178 size_t length() const { | 179 size_t length() const { |
| 179 return length_; | 180 return length_; |
| 180 } | 181 } |
| 181 private: | 182 private: |
| 182 const char* data_; | 183 const char* data_; |
| 183 size_t length_; | 184 size_t length_; |
| 184 }; | 185 }; |
| 185 | 186 |
| 186 }} // namespace v8::internal | 187 }} // namespace v8::internal |
| 187 | 188 |
| 188 #endif // V8_BOOTSTRAPPER_H_ | 189 #endif // V8_BOOTSTRAPPER_H_ |
| OLD | NEW |