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 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1829 ISOLATE_INIT_LIST(ISOLATE_INIT_EXECUTE) | 1829 ISOLATE_INIT_LIST(ISOLATE_INIT_EXECUTE) |
1830 #undef ISOLATE_INIT_EXECUTE | 1830 #undef ISOLATE_INIT_EXECUTE |
1831 | 1831 |
1832 #define ISOLATE_INIT_ARRAY_EXECUTE(type, name, length) \ | 1832 #define ISOLATE_INIT_ARRAY_EXECUTE(type, name, length) \ |
1833 memset(name##_, 0, sizeof(type) * length); | 1833 memset(name##_, 0, sizeof(type) * length); |
1834 ISOLATE_INIT_ARRAY_LIST(ISOLATE_INIT_ARRAY_EXECUTE) | 1834 ISOLATE_INIT_ARRAY_LIST(ISOLATE_INIT_ARRAY_EXECUTE) |
1835 #undef ISOLATE_INIT_ARRAY_EXECUTE | 1835 #undef ISOLATE_INIT_ARRAY_EXECUTE |
1836 | 1836 |
1837 InitializeLoggingAndCounters(); | 1837 InitializeLoggingAndCounters(); |
1838 debug_ = new Debug(this); | 1838 debug_ = new Debug(this); |
| 1839 |
| 1840 init_memcopy_functions(this); |
1839 } | 1841 } |
1840 | 1842 |
1841 | 1843 |
1842 void Isolate::TearDown() { | 1844 void Isolate::TearDown() { |
1843 TRACE_ISOLATE(tear_down); | 1845 TRACE_ISOLATE(tear_down); |
1844 | 1846 |
1845 // Temporarily set this isolate as current so that various parts of | 1847 // Temporarily set this isolate as current so that various parts of |
1846 // the isolate can access it in their destructors without having a | 1848 // the isolate can access it in their destructors without having a |
1847 // direct pointer. We don't use Enter/Exit here to avoid | 1849 // direct pointer. We don't use Enter/Exit here to avoid |
1848 // initializing the thread data. | 1850 // initializing the thread data. |
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2842 // Then check whether this scope intercepts. | 2844 // Then check whether this scope intercepts. |
2843 if ((flag & intercept_mask_)) { | 2845 if ((flag & intercept_mask_)) { |
2844 intercepted_flags_ |= flag; | 2846 intercepted_flags_ |= flag; |
2845 return true; | 2847 return true; |
2846 } | 2848 } |
2847 return false; | 2849 return false; |
2848 } | 2850 } |
2849 | 2851 |
2850 } // namespace internal | 2852 } // namespace internal |
2851 } // namespace v8 | 2853 } // namespace v8 |
OLD | NEW |