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

Side by Side Diff: src/isolate.cc

Issue 366883004: Revert "Reland "Linux perf tool support update + refactoring." (r22118)" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
1957 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)), 1963 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)),
1958 Internals::kIsolateEmbedderDataOffset); 1964 Internals::kIsolateEmbedderDataOffset);
1959 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), 1965 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)),
1960 Internals::kIsolateRootsOffset); 1966 Internals::kIsolateRootsOffset);
1961 CHECK_EQ(static_cast<int>( 1967 CHECK_EQ(static_cast<int>(
1962 OFFSET_OF(Isolate, heap_.amount_of_external_allocated_memory_)), 1968 OFFSET_OF(Isolate, heap_.amount_of_external_allocated_memory_)),
1963 Internals::kAmountOfExternalAllocatedMemoryOffset); 1969 Internals::kAmountOfExternalAllocatedMemoryOffset);
1964 CHECK_EQ(static_cast<int>(OFFSET_OF( 1970 CHECK_EQ(static_cast<int>(OFFSET_OF(
1965 Isolate, 1971 Isolate,
1966 heap_.amount_of_external_allocated_memory_at_last_global_gc_)), 1972 heap_.amount_of_external_allocated_memory_at_last_global_gc_)),
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
2367 if (prev_ && prev_->Intercept(flag)) return true; 2373 if (prev_ && prev_->Intercept(flag)) return true;
2368 // Then check whether this scope intercepts. 2374 // Then check whether this scope intercepts.
2369 if ((flag & intercept_mask_)) { 2375 if ((flag & intercept_mask_)) {
2370 intercepted_flags_ |= flag; 2376 intercepted_flags_ |= flag;
2371 return true; 2377 return true;
2372 } 2378 }
2373 return false; 2379 return false;
2374 } 2380 }
2375 2381
2376 } } // namespace v8::internal 2382 } } // 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