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 <stdlib.h> | 5 #include <stdlib.h> |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/ast.h" | 9 #include "src/ast.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 1945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1956 // If we are profiling with the Linux perf tool, we need to disable | 1956 // If we are profiling with the Linux perf tool, we need to disable |
1957 // code relocation. | 1957 // code relocation. |
1958 if (FLAG_perf_jit_prof || FLAG_perf_basic_prof) { | 1958 if (FLAG_perf_jit_prof || FLAG_perf_basic_prof) { |
1959 FLAG_compact_code_space = false; | 1959 FLAG_compact_code_space = false; |
1960 } | 1960 } |
1961 | 1961 |
1962 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)), | 1962 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)), |
1963 Internals::kIsolateEmbedderDataOffset); | 1963 Internals::kIsolateEmbedderDataOffset); |
1964 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), | 1964 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), |
1965 Internals::kIsolateRootsOffset); | 1965 Internals::kIsolateRootsOffset); |
| 1966 CHECK_EQ(static_cast<int>( |
| 1967 OFFSET_OF(Isolate, heap_.amount_of_external_allocated_memory_)), |
| 1968 Internals::kAmountOfExternalAllocatedMemoryOffset); |
| 1969 CHECK_EQ(static_cast<int>(OFFSET_OF( |
| 1970 Isolate, |
| 1971 heap_.amount_of_external_allocated_memory_at_last_global_gc_)), |
| 1972 Internals::kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset); |
1966 | 1973 |
1967 state_ = INITIALIZED; | 1974 state_ = INITIALIZED; |
1968 time_millis_at_init_ = OS::TimeCurrentMillis(); | 1975 time_millis_at_init_ = OS::TimeCurrentMillis(); |
1969 | 1976 |
1970 if (!create_heap_objects) { | 1977 if (!create_heap_objects) { |
1971 // Now that the heap is consistent, it's OK to generate the code for the | 1978 // Now that the heap is consistent, it's OK to generate the code for the |
1972 // deopt entry table that might have been referred to by optimized code in | 1979 // deopt entry table that might have been referred to by optimized code in |
1973 // the snapshot. | 1980 // the snapshot. |
1974 HandleScope scope(this); | 1981 HandleScope scope(this); |
1975 Deoptimizer::EnsureCodeForDeoptimizationEntry( | 1982 Deoptimizer::EnsureCodeForDeoptimizationEntry( |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2326 v8::ToCData<v8::MicrotaskCallback>(callback_info->callback()); | 2333 v8::ToCData<v8::MicrotaskCallback>(callback_info->callback()); |
2327 void* data = v8::ToCData<void*>(callback_info->data()); | 2334 void* data = v8::ToCData<void*>(callback_info->data()); |
2328 callback(data); | 2335 callback(data); |
2329 } | 2336 } |
2330 } | 2337 } |
2331 } | 2338 } |
2332 } | 2339 } |
2333 | 2340 |
2334 | 2341 |
2335 } } // namespace v8::internal | 2342 } } // namespace v8::internal |
OLD | NEW |