| 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 1954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1965 call_descriptors_ = | 1965 call_descriptors_ = |
| 1966 new CallInterfaceDescriptor[NUMBER_OF_CALL_DESCRIPTORS]; | 1966 new CallInterfaceDescriptor[NUMBER_OF_CALL_DESCRIPTORS]; |
| 1967 cpu_profiler_ = new CpuProfiler(this); | 1967 cpu_profiler_ = new CpuProfiler(this); |
| 1968 heap_profiler_ = new HeapProfiler(heap()); | 1968 heap_profiler_ = new HeapProfiler(heap()); |
| 1969 | 1969 |
| 1970 // Enable logging before setting up the heap | 1970 // Enable logging before setting up the heap |
| 1971 logger_->SetUp(this); | 1971 logger_->SetUp(this); |
| 1972 | 1972 |
| 1973 // Initialize other runtime facilities | 1973 // Initialize other runtime facilities |
| 1974 #if defined(USE_SIMULATOR) | 1974 #if defined(USE_SIMULATOR) |
| 1975 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_A64 || V8_TARGET_ARCH_MIPS | 1975 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS |
| 1976 Simulator::Initialize(this); | 1976 Simulator::Initialize(this); |
| 1977 #endif | 1977 #endif |
| 1978 #endif | 1978 #endif |
| 1979 | 1979 |
| 1980 { // NOLINT | 1980 { // NOLINT |
| 1981 // Ensure that the thread has a valid stack guard. The v8::Locker object | 1981 // Ensure that the thread has a valid stack guard. The v8::Locker object |
| 1982 // will ensure this too, but we don't have to use lockers if we are only | 1982 // will ensure this too, but we don't have to use lockers if we are only |
| 1983 // using one thread. | 1983 // using one thread. |
| 1984 ExecutionAccess lock(this); | 1984 ExecutionAccess lock(this); |
| 1985 stack_guard_.InitThread(lock); | 1985 stack_guard_.InitThread(lock); |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2323 | 2323 |
| 2324 #ifdef DEBUG | 2324 #ifdef DEBUG |
| 2325 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2325 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
| 2326 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2326 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
| 2327 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2327 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
| 2328 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2328 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 2329 #undef ISOLATE_FIELD_OFFSET | 2329 #undef ISOLATE_FIELD_OFFSET |
| 2330 #endif | 2330 #endif |
| 2331 | 2331 |
| 2332 } } // namespace v8::internal | 2332 } } // namespace v8::internal |
| OLD | NEW |