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

Side by Side Diff: src/top.h

Issue 3226014: Add functionality for finding code objects from a pc that points into... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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/spaces.cc ('k') | src/top.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 bool external_caught_exception_; 97 bool external_caught_exception_;
98 SaveContext* save_context_; 98 SaveContext* save_context_;
99 v8::TryCatch* catcher_; 99 v8::TryCatch* catcher_;
100 100
101 // Stack. 101 // Stack.
102 Address c_entry_fp_; // the frame pointer of the top c entry frame 102 Address c_entry_fp_; // the frame pointer of the top c entry frame
103 Address handler_; // try-blocks are chained through the stack 103 Address handler_; // try-blocks are chained through the stack
104 #ifdef ENABLE_LOGGING_AND_PROFILING 104 #ifdef ENABLE_LOGGING_AND_PROFILING
105 Address js_entry_sp_; // the stack pointer of the bottom js entry frame 105 Address js_entry_sp_; // the stack pointer of the bottom js entry frame
106 #endif 106 #endif
107 bool stack_is_cooked_;
108 inline bool stack_is_cooked() { return stack_is_cooked_; }
109 inline void set_stack_is_cooked(bool value) { stack_is_cooked_ = value; }
110 107
111 // Generated code scratch locations. 108 // Generated code scratch locations.
112 int32_t formal_count_; 109 int32_t formal_count_;
113 110
114 // Call back function to report unsafe JS accesses. 111 // Call back function to report unsafe JS accesses.
115 v8::FailedAccessCheckCallback failed_access_check_callback_; 112 v8::FailedAccessCheckCallback failed_access_check_callback_;
116 113
117 private: 114 private:
118 Address try_catch_handler_address_; 115 Address try_catch_handler_address_;
119 }; 116 };
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 return thread->js_entry_sp_; 250 return thread->js_entry_sp_;
254 } 251 }
255 static inline Address* js_entry_sp_address() { 252 static inline Address* js_entry_sp_address() {
256 return &thread_local_.js_entry_sp_; 253 return &thread_local_.js_entry_sp_;
257 } 254 }
258 #endif 255 #endif
259 256
260 // Generated code scratch locations. 257 // Generated code scratch locations.
261 static void* formal_count_address() { return &thread_local_.formal_count_; } 258 static void* formal_count_address() { return &thread_local_.formal_count_; }
262 259
263 static void MarkCompactPrologue(bool is_compacting);
264 static void MarkCompactEpilogue(bool is_compacting);
265 static void MarkCompactPrologue(bool is_compacting,
266 char* archived_thread_data);
267 static void MarkCompactEpilogue(bool is_compacting,
268 char* archived_thread_data);
269 static void PrintCurrentStackTrace(FILE* out); 260 static void PrintCurrentStackTrace(FILE* out);
270 static void PrintStackTrace(FILE* out, char* thread_data); 261 static void PrintStackTrace(FILE* out, char* thread_data);
271 static void PrintStack(StringStream* accumulator); 262 static void PrintStack(StringStream* accumulator);
272 static void PrintStack(); 263 static void PrintStack();
273 static Handle<String> StackTraceString(); 264 static Handle<String> StackTraceString();
274 static Handle<JSArray> CaptureCurrentStackTrace( 265 static Handle<JSArray> CaptureCurrentStackTrace(
275 int frame_limit, 266 int frame_limit,
276 StackTrace::StackTraceOptions options); 267 StackTrace::StackTraceOptions options);
277 268
278 // Returns if the top context may access the given global object. If 269 // Returns if the top context may access the given global object. If
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 445
455 class ExecutionAccess BASE_EMBEDDED { 446 class ExecutionAccess BASE_EMBEDDED {
456 public: 447 public:
457 ExecutionAccess(); 448 ExecutionAccess();
458 ~ExecutionAccess(); 449 ~ExecutionAccess();
459 }; 450 };
460 451
461 } } // namespace v8::internal 452 } } // namespace v8::internal
462 453
463 #endif // V8_TOP_H_ 454 #endif // V8_TOP_H_
OLDNEW
« no previous file with comments | « src/spaces.cc ('k') | src/top.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698