| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_BOOTSTRAPPER_H_ | 5 #ifndef V8_BOOTSTRAPPER_H_ |
| 6 #define V8_BOOTSTRAPPER_H_ | 6 #define V8_BOOTSTRAPPER_H_ |
| 7 | 7 |
| 8 #include "src/factory.h" | 8 #include "src/factory.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 DISALLOW_COPY_AND_ASSIGN(BootstrapperActive); | 151 DISALLOW_COPY_AND_ASSIGN(BootstrapperActive); |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 | 154 |
| 155 class NativesExternalStringResource FINAL | 155 class NativesExternalStringResource FINAL |
| 156 : public v8::String::ExternalOneByteStringResource { | 156 : public v8::String::ExternalOneByteStringResource { |
| 157 public: | 157 public: |
| 158 NativesExternalStringResource(Bootstrapper* bootstrapper, | 158 NativesExternalStringResource(Bootstrapper* bootstrapper, |
| 159 const char* source, | 159 const char* source, |
| 160 size_t length); | 160 size_t length); |
| 161 virtual const char* data() const OVERRIDE { return data_; } | 161 const char* data() const OVERRIDE { return data_; } |
| 162 virtual size_t length() const OVERRIDE { return length_; } | 162 size_t length() const OVERRIDE { return length_; } |
| 163 | 163 |
| 164 private: | 164 private: |
| 165 const char* data_; | 165 const char* data_; |
| 166 size_t length_; | 166 size_t length_; |
| 167 }; | 167 }; |
| 168 | 168 |
| 169 }} // namespace v8::internal | 169 }} // namespace v8::internal |
| 170 | 170 |
| 171 #endif // V8_BOOTSTRAPPER_H_ | 171 #endif // V8_BOOTSTRAPPER_H_ |
| OLD | NEW |