OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1911 | 1911 |
1912 if (function_entry_hook() != NULL) { | 1912 if (function_entry_hook() != NULL) { |
1913 // When function entry hooking is in effect, we have to create the code | 1913 // When function entry hooking is in effect, we have to create the code |
1914 // stubs from scratch to get entry hooks, rather than loading the previously | 1914 // stubs from scratch to get entry hooks, rather than loading the previously |
1915 // generated stubs from disk. | 1915 // generated stubs from disk. |
1916 // If this assert fires, the initialization path has regressed. | 1916 // If this assert fires, the initialization path has regressed. |
1917 ASSERT(des == NULL); | 1917 ASSERT(des == NULL); |
1918 } | 1918 } |
1919 | 1919 |
1920 // The initialization process does not handle memory exhaustion. | 1920 // The initialization process does not handle memory exhaustion. |
1921 DisallowAllocationFailure disallow_allocation_failure; | 1921 DisallowAllocationFailure disallow_allocation_failure(this); |
1922 | 1922 |
1923 InitializeLoggingAndCounters(); | 1923 InitializeLoggingAndCounters(); |
1924 | 1924 |
1925 InitializeDebugger(); | 1925 InitializeDebugger(); |
1926 | 1926 |
1927 memory_allocator_ = new MemoryAllocator(this); | 1927 memory_allocator_ = new MemoryAllocator(this); |
1928 code_range_ = new CodeRange(this); | 1928 code_range_ = new CodeRange(this); |
1929 | 1929 |
1930 // Safe after setting Heap::isolate_, and initializing StackGuard | 1930 // Safe after setting Heap::isolate_, and initializing StackGuard |
1931 heap_.SetStackLimits(); | 1931 heap_.SetStackLimits(); |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2317 | 2317 |
2318 #ifdef DEBUG | 2318 #ifdef DEBUG |
2319 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2319 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
2320 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2320 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
2321 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2321 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
2322 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2322 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
2323 #undef ISOLATE_FIELD_OFFSET | 2323 #undef ISOLATE_FIELD_OFFSET |
2324 #endif | 2324 #endif |
2325 | 2325 |
2326 } } // namespace v8::internal | 2326 } } // namespace v8::internal |
OLD | NEW |