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

Side by Side Diff: src/isolate.cc

Issue 367033002: Reland "Linux perf tool support update + refactoring." (r22146, attempt #5) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: git cl format 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 1926 matching lines...) Expand 10 before | Expand all | Expand 10 after
1937 (FLAG_log_code || 1937 (FLAG_log_code ||
1938 FLAG_ll_prof || 1938 FLAG_ll_prof ||
1939 FLAG_perf_jit_prof || 1939 FLAG_perf_jit_prof ||
1940 FLAG_perf_basic_prof || 1940 FLAG_perf_basic_prof ||
1941 logger_->is_logging_code_events())) { 1941 logger_->is_logging_code_events())) {
1942 HandleScope scope(this); 1942 HandleScope scope(this);
1943 LOG(this, LogCodeObjects()); 1943 LOG(this, LogCodeObjects());
1944 LOG(this, LogCompiledFunctions()); 1944 LOG(this, LogCompiledFunctions());
1945 } 1945 }
1946 1946
1947 // If we are profiling with the Linux perf tool, we need to disable
1948 // code relocation.
1949 if (FLAG_perf_jit_prof || FLAG_perf_basic_prof) {
1950 FLAG_compact_code_space = false;
1951 }
1952
1953 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)), 1947 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)),
1954 Internals::kIsolateEmbedderDataOffset); 1948 Internals::kIsolateEmbedderDataOffset);
1955 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), 1949 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)),
1956 Internals::kIsolateRootsOffset); 1950 Internals::kIsolateRootsOffset);
1957 CHECK_EQ(static_cast<int>( 1951 CHECK_EQ(static_cast<int>(
1958 OFFSET_OF(Isolate, heap_.amount_of_external_allocated_memory_)), 1952 OFFSET_OF(Isolate, heap_.amount_of_external_allocated_memory_)),
1959 Internals::kAmountOfExternalAllocatedMemoryOffset); 1953 Internals::kAmountOfExternalAllocatedMemoryOffset);
1960 CHECK_EQ(static_cast<int>(OFFSET_OF( 1954 CHECK_EQ(static_cast<int>(OFFSET_OF(
1961 Isolate, 1955 Isolate,
1962 heap_.amount_of_external_allocated_memory_at_last_global_gc_)), 1956 heap_.amount_of_external_allocated_memory_at_last_global_gc_)),
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
2363 if (prev_ && prev_->Intercept(flag)) return true; 2357 if (prev_ && prev_->Intercept(flag)) return true;
2364 // Then check whether this scope intercepts. 2358 // Then check whether this scope intercepts.
2365 if ((flag & intercept_mask_)) { 2359 if ((flag & intercept_mask_)) {
2366 intercepted_flags_ |= flag; 2360 intercepted_flags_ |= flag;
2367 return true; 2361 return true;
2368 } 2362 }
2369 return false; 2363 return false;
2370 } 2364 }
2371 2365
2372 } } // namespace v8::internal 2366 } } // 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