Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/isolate.cc

Issue 255803003: Linux perf support update. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/flag-definitions.h ('k') | src/log.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1940 matching lines...) Expand 10 before | Expand all | Expand 10 after
1951 (FLAG_log_code || 1951 (FLAG_log_code ||
1952 FLAG_ll_prof || 1952 FLAG_ll_prof ||
1953 FLAG_perf_jit_prof || 1953 FLAG_perf_jit_prof ||
1954 FLAG_perf_basic_prof || 1954 FLAG_perf_basic_prof ||
1955 logger_->is_logging_code_events())) { 1955 logger_->is_logging_code_events())) {
1956 HandleScope scope(this); 1956 HandleScope scope(this);
1957 LOG(this, LogCodeObjects()); 1957 LOG(this, LogCodeObjects());
1958 LOG(this, LogCompiledFunctions()); 1958 LOG(this, LogCompiledFunctions());
1959 } 1959 }
1960 1960
1961 // If we are profiling with the Linux perf tool, we need to disable
1962 // code relocation.
1963 if (FLAG_perf_jit_prof || FLAG_perf_basic_prof) {
1964 FLAG_compact_code_space = false;
1965 }
1966
1967 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)), 1961 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)),
1968 Internals::kIsolateEmbedderDataOffset); 1962 Internals::kIsolateEmbedderDataOffset);
1969 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), 1963 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)),
1970 Internals::kIsolateRootsOffset); 1964 Internals::kIsolateRootsOffset);
1971 CHECK_EQ(static_cast<int>( 1965 CHECK_EQ(static_cast<int>(
1972 OFFSET_OF(Isolate, heap_.amount_of_external_allocated_memory_)), 1966 OFFSET_OF(Isolate, heap_.amount_of_external_allocated_memory_)),
1973 Internals::kAmountOfExternalAllocatedMemoryOffset); 1967 Internals::kAmountOfExternalAllocatedMemoryOffset);
1974 CHECK_EQ(static_cast<int>(OFFSET_OF( 1968 CHECK_EQ(static_cast<int>(OFFSET_OF(
1975 Isolate, 1969 Isolate,
1976 heap_.amount_of_external_allocated_memory_at_last_global_gc_)), 1970 heap_.amount_of_external_allocated_memory_at_last_global_gc_)),
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
2366 // The simulator uses a separate JS stack. 2360 // The simulator uses a separate JS stack.
2367 Address jssp_address = Simulator::current(isolate_)->get_sp(); 2361 Address jssp_address = Simulator::current(isolate_)->get_sp();
2368 uintptr_t jssp = reinterpret_cast<uintptr_t>(jssp_address); 2362 uintptr_t jssp = reinterpret_cast<uintptr_t>(jssp_address);
2369 if (jssp < stack_guard->real_jslimit()) return true; 2363 if (jssp < stack_guard->real_jslimit()) return true;
2370 #endif // USE_SIMULATOR 2364 #endif // USE_SIMULATOR
2371 return reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit(); 2365 return reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit();
2372 } 2366 }
2373 2367
2374 2368
2375 } } // namespace v8::internal 2369 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698