OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #include "v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "accessors.h" | 7 #include "src/accessors.h" |
8 #include "api.h" | 8 #include "src/api.h" |
9 #include "bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "deoptimizer.h" | 10 #include "src/deoptimizer.h" |
11 #include "execution.h" | 11 #include "src/execution.h" |
12 #include "global-handles.h" | 12 #include "src/global-handles.h" |
13 #include "ic-inl.h" | 13 #include "src/ic-inl.h" |
14 #include "natives.h" | 14 #include "src/natives.h" |
15 #include "platform.h" | 15 #include "src/platform.h" |
16 #include "runtime.h" | 16 #include "src/runtime.h" |
17 #include "serialize.h" | 17 #include "src/serialize.h" |
18 #include "snapshot.h" | 18 #include "src/snapshot.h" |
19 #include "stub-cache.h" | 19 #include "src/stub-cache.h" |
20 #include "v8threads.h" | 20 #include "src/v8threads.h" |
21 | 21 |
22 namespace v8 { | 22 namespace v8 { |
23 namespace internal { | 23 namespace internal { |
24 | 24 |
25 | 25 |
26 // ----------------------------------------------------------------------------- | 26 // ----------------------------------------------------------------------------- |
27 // Coding of external references. | 27 // Coding of external references. |
28 | 28 |
29 // The encoding of an external reference. The type is in the high word. | 29 // The encoding of an external reference. The type is in the high word. |
30 // The id is in the low word. | 30 // The id is in the low word. |
(...skipping 1802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1833 | 1833 |
1834 bool SnapshotByteSource::AtEOF() { | 1834 bool SnapshotByteSource::AtEOF() { |
1835 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; | 1835 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; |
1836 for (int x = position_; x < length_; x++) { | 1836 for (int x = position_; x < length_; x++) { |
1837 if (data_[x] != SerializerDeserializer::nop()) return false; | 1837 if (data_[x] != SerializerDeserializer::nop()) return false; |
1838 } | 1838 } |
1839 return true; | 1839 return true; |
1840 } | 1840 } |
1841 | 1841 |
1842 } } // namespace v8::internal | 1842 } } // namespace v8::internal |
OLD | NEW |