| 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/base/platform/platform.h" | 10 #include "src/base/platform/platform.h" |
| (...skipping 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1947 (FLAG_log_code || | 1947 (FLAG_log_code || |
| 1948 FLAG_ll_prof || | 1948 FLAG_ll_prof || |
| 1949 FLAG_perf_jit_prof || | 1949 FLAG_perf_jit_prof || |
| 1950 FLAG_perf_basic_prof || | 1950 FLAG_perf_basic_prof || |
| 1951 logger_->is_logging_code_events())) { | 1951 logger_->is_logging_code_events())) { |
| 1952 HandleScope scope(this); | 1952 HandleScope scope(this); |
| 1953 LOG(this, LogCodeObjects()); | 1953 LOG(this, LogCodeObjects()); |
| 1954 LOG(this, LogCompiledFunctions()); | 1954 LOG(this, LogCompiledFunctions()); |
| 1955 } | 1955 } |
| 1956 | 1956 |
| 1957 // If we are profiling with the Linux perf tool, we need to disable | |
| 1958 // code relocation. | |
| 1959 if (FLAG_perf_jit_prof || FLAG_perf_basic_prof) { | |
| 1960 FLAG_compact_code_space = false; | |
| 1961 } | |
| 1962 | |
| 1963 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)), | 1957 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)), |
| 1964 Internals::kIsolateEmbedderDataOffset); | 1958 Internals::kIsolateEmbedderDataOffset); |
| 1965 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), | 1959 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), |
| 1966 Internals::kIsolateRootsOffset); | 1960 Internals::kIsolateRootsOffset); |
| 1967 CHECK_EQ(static_cast<int>( | 1961 CHECK_EQ(static_cast<int>( |
| 1968 OFFSET_OF(Isolate, heap_.amount_of_external_allocated_memory_)), | 1962 OFFSET_OF(Isolate, heap_.amount_of_external_allocated_memory_)), |
| 1969 Internals::kAmountOfExternalAllocatedMemoryOffset); | 1963 Internals::kAmountOfExternalAllocatedMemoryOffset); |
| 1970 CHECK_EQ(static_cast<int>(OFFSET_OF( | 1964 CHECK_EQ(static_cast<int>(OFFSET_OF( |
| 1971 Isolate, | 1965 Isolate, |
| 1972 heap_.amount_of_external_allocated_memory_at_last_global_gc_)), | 1966 heap_.amount_of_external_allocated_memory_at_last_global_gc_)), |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2362 // The simulator uses a separate JS stack. | 2356 // The simulator uses a separate JS stack. |
| 2363 Address jssp_address = Simulator::current(isolate_)->get_sp(); | 2357 Address jssp_address = Simulator::current(isolate_)->get_sp(); |
| 2364 uintptr_t jssp = reinterpret_cast<uintptr_t>(jssp_address); | 2358 uintptr_t jssp = reinterpret_cast<uintptr_t>(jssp_address); |
| 2365 if (jssp < stack_guard->real_jslimit()) return true; | 2359 if (jssp < stack_guard->real_jslimit()) return true; |
| 2366 #endif // USE_SIMULATOR | 2360 #endif // USE_SIMULATOR |
| 2367 return reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit(); | 2361 return reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit(); |
| 2368 } | 2362 } |
| 2369 | 2363 |
| 2370 | 2364 |
| 2371 } } // namespace v8::internal | 2365 } } // namespace v8::internal |
| OLD | NEW |