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 "src/isolate.h" | 5 #include "src/isolate.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <fstream> // NOLINT(readability/streams) | 9 #include <fstream> // NOLINT(readability/streams) |
10 #include <sstream> | 10 #include <sstream> |
(...skipping 2813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2824 } | 2824 } |
2825 | 2825 |
2826 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)), | 2826 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)), |
2827 Internals::kIsolateEmbedderDataOffset); | 2827 Internals::kIsolateEmbedderDataOffset); |
2828 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), | 2828 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), |
2829 Internals::kIsolateRootsOffset); | 2829 Internals::kIsolateRootsOffset); |
2830 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.external_memory_)), | 2830 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.external_memory_)), |
2831 Internals::kExternalMemoryOffset); | 2831 Internals::kExternalMemoryOffset); |
2832 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.external_memory_limit_)), | 2832 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.external_memory_limit_)), |
2833 Internals::kExternalMemoryLimitOffset); | 2833 Internals::kExternalMemoryLimitOffset); |
| 2834 CHECK_EQ(static_cast<int>( |
| 2835 OFFSET_OF(Isolate, heap_.external_memory_at_last_mark_compact_)), |
| 2836 Internals::kExternalMemoryAtLastMarkCompactOffset); |
2834 | 2837 |
2835 time_millis_at_init_ = heap_.MonotonicallyIncreasingTimeInMs(); | 2838 time_millis_at_init_ = heap_.MonotonicallyIncreasingTimeInMs(); |
2836 | 2839 |
2837 { | 2840 { |
2838 HandleScope scope(this); | 2841 HandleScope scope(this); |
2839 ast_string_constants_ = new AstStringConstants(this, heap()->HashSeed()); | 2842 ast_string_constants_ = new AstStringConstants(this, heap()->HashSeed()); |
2840 } | 2843 } |
2841 | 2844 |
2842 if (!serializer_enabled()) { | 2845 if (!serializer_enabled()) { |
2843 // Ensure that all stubs which need to be generated ahead of time, but | 2846 // Ensure that all stubs which need to be generated ahead of time, but |
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3784 // Then check whether this scope intercepts. | 3787 // Then check whether this scope intercepts. |
3785 if ((flag & intercept_mask_)) { | 3788 if ((flag & intercept_mask_)) { |
3786 intercepted_flags_ |= flag; | 3789 intercepted_flags_ |= flag; |
3787 return true; | 3790 return true; |
3788 } | 3791 } |
3789 return false; | 3792 return false; |
3790 } | 3793 } |
3791 | 3794 |
3792 } // namespace internal | 3795 } // namespace internal |
3793 } // namespace v8 | 3796 } // namespace v8 |
OLD | NEW |