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

Side by Side Diff: src/isolate.cc

Issue 10795074: Add a new API V8::SetJitCodeEventHandler to push code name and location to users such as profilers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix instruction address calculation on move events. Fix test use of map, fix compilation on Win64. Created 8 years, 3 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/heap.cc ('k') | src/log.h » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1890 matching lines...) Expand 10 before | Expand all | Expand 10 after
1901 1901
1902 // Quiet the heap NaN if needed on target platform. 1902 // Quiet the heap NaN if needed on target platform.
1903 if (!create_heap_objects) Assembler::QuietNaN(heap_.nan_value()); 1903 if (!create_heap_objects) Assembler::QuietNaN(heap_.nan_value());
1904 1904
1905 deoptimizer_data_ = new DeoptimizerData; 1905 deoptimizer_data_ = new DeoptimizerData;
1906 runtime_profiler_ = new RuntimeProfiler(this); 1906 runtime_profiler_ = new RuntimeProfiler(this);
1907 runtime_profiler_->SetUp(); 1907 runtime_profiler_->SetUp();
1908 1908
1909 // If we are deserializing, log non-function code objects and compiled 1909 // If we are deserializing, log non-function code objects and compiled
1910 // functions found in the snapshot. 1910 // functions found in the snapshot.
1911 if (create_heap_objects && (FLAG_log_code || FLAG_ll_prof)) { 1911 if (create_heap_objects &&
1912 (FLAG_log_code || FLAG_ll_prof || logger_->is_logging_code_events())) {
1912 HandleScope scope; 1913 HandleScope scope;
1913 LOG(this, LogCodeObjects()); 1914 LOG(this, LogCodeObjects());
1914 LOG(this, LogCompiledFunctions()); 1915 LOG(this, LogCompiledFunctions());
1915 } 1916 }
1916 1917
1917 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, state_)), 1918 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, state_)),
1918 Internals::kIsolateStateOffset); 1919 Internals::kIsolateStateOffset);
1919 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)), 1920 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)),
1920 Internals::kIsolateEmbedderDataOffset); 1921 Internals::kIsolateEmbedderDataOffset);
1921 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), 1922 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)),
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
2039 2040
2040 #ifdef DEBUG 2041 #ifdef DEBUG
2041 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2042 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2042 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2043 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2043 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2044 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2044 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2045 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2045 #undef ISOLATE_FIELD_OFFSET 2046 #undef ISOLATE_FIELD_OFFSET
2046 #endif 2047 #endif
2047 2048
2048 } } // namespace v8::internal 2049 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698