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

Side by Side Diff: src/isolate.h

Issue 19775017: Fix call stack sampling for the case when native callback invokes JS function (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed test failure in debug mode Created 7 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/frames-inl.h ('k') | src/isolate.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 // 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 struct CodeStubInterfaceDescriptor; 58 struct CodeStubInterfaceDescriptor;
59 class CompilationCache; 59 class CompilationCache;
60 class ContextSlotCache; 60 class ContextSlotCache;
61 class ContextSwitcher; 61 class ContextSwitcher;
62 class Counters; 62 class Counters;
63 class CpuFeatures; 63 class CpuFeatures;
64 class CpuProfiler; 64 class CpuProfiler;
65 class DeoptimizerData; 65 class DeoptimizerData;
66 class Deserializer; 66 class Deserializer;
67 class EmptyStatement; 67 class EmptyStatement;
68 class ExternalCallbackScope;
68 class ExternalReferenceTable; 69 class ExternalReferenceTable;
69 class Factory; 70 class Factory;
70 class FunctionInfoListener; 71 class FunctionInfoListener;
71 class HandleScopeImplementer; 72 class HandleScopeImplementer;
72 class HeapProfiler; 73 class HeapProfiler;
73 class HStatistics; 74 class HStatistics;
74 class HTracer; 75 class HTracer;
75 class InlineRuntimeFunctionsTable; 76 class InlineRuntimeFunctionsTable;
76 class NoAllocationStringAllocator; 77 class NoAllocationStringAllocator;
77 class InnerPointerToCodeCache; 78 class InnerPointerToCodeCache;
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 Address c_entry_fp_; // the frame pointer of the top c entry frame 273 Address c_entry_fp_; // the frame pointer of the top c entry frame
273 Address handler_; // try-blocks are chained through the stack 274 Address handler_; // try-blocks are chained through the stack
274 275
275 #ifdef USE_SIMULATOR 276 #ifdef USE_SIMULATOR
276 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_MIPS 277 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_MIPS
277 Simulator* simulator_; 278 Simulator* simulator_;
278 #endif 279 #endif
279 #endif // USE_SIMULATOR 280 #endif // USE_SIMULATOR
280 281
281 Address js_entry_sp_; // the stack pointer of the bottom JS entry frame 282 Address js_entry_sp_; // the stack pointer of the bottom JS entry frame
282 Address external_callback_; // the external callback we're currently in 283 // the external callback we're currently in
284 ExternalCallbackScope* external_callback_scope_;
283 StateTag current_vm_state_; 285 StateTag current_vm_state_;
284 286
285 // Generated code scratch locations. 287 // Generated code scratch locations.
286 int32_t formal_count_; 288 int32_t formal_count_;
287 289
288 // Call back function to report unsafe JS accesses. 290 // Call back function to report unsafe JS accesses.
289 v8::FailedAccessCheckCallback failed_access_check_callback_; 291 v8::FailedAccessCheckCallback failed_access_check_callback_;
290 292
291 // Head of the list of live LookupResults. 293 // Head of the list of live LookupResults.
292 LookupResult* top_lookup_result_; 294 LookupResult* top_lookup_result_;
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
1025 } 1027 }
1026 void set_simulator_redirection(Redirection* redirection) { 1028 void set_simulator_redirection(Redirection* redirection) {
1027 simulator_redirection_ = redirection; 1029 simulator_redirection_ = redirection;
1028 } 1030 }
1029 #endif 1031 #endif
1030 1032
1031 Factory* factory() { return reinterpret_cast<Factory*>(this); } 1033 Factory* factory() { return reinterpret_cast<Factory*>(this); }
1032 1034
1033 static const int kJSRegexpStaticOffsetsVectorSize = 128; 1035 static const int kJSRegexpStaticOffsetsVectorSize = 128;
1034 1036
1035 Address external_callback() { 1037 ExternalCallbackScope* external_callback_scope() {
1036 return thread_local_top_.external_callback_; 1038 return thread_local_top_.external_callback_scope_;
1037 } 1039 }
1038 void set_external_callback(Address callback) { 1040 void set_external_callback_scope(ExternalCallbackScope* scope) {
1039 thread_local_top_.external_callback_ = callback; 1041 thread_local_top_.external_callback_scope_ = scope;
1040 } 1042 }
1041 1043
1042 StateTag current_vm_state() { 1044 StateTag current_vm_state() {
1043 return thread_local_top_.current_vm_state_; 1045 return thread_local_top_.current_vm_state_;
1044 } 1046 }
1045 1047
1046 void set_current_vm_state(StateTag state) { 1048 void set_current_vm_state(StateTag state) {
1047 thread_local_top_.current_vm_state_ = state; 1049 thread_local_top_.current_vm_state_ = state;
1048 } 1050 }
1049 1051
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 1523
1522 // Mark the native context with out of memory. 1524 // Mark the native context with out of memory.
1523 inline void Context::mark_out_of_memory() { 1525 inline void Context::mark_out_of_memory() {
1524 native_context()->set_out_of_memory(HEAP->true_value()); 1526 native_context()->set_out_of_memory(HEAP->true_value());
1525 } 1527 }
1526 1528
1527 1529
1528 } } // namespace v8::internal 1530 } } // namespace v8::internal
1529 1531
1530 #endif // V8_ISOLATE_H_ 1532 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/frames-inl.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698