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

Side by Side Diff: src/top.h

Issue 27133: - Pass the knowledge whether the old GC is compacting to the GC prologue and ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 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
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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // Generated code scratch locations. 182 // Generated code scratch locations.
183 static void* formal_count_address() { return &thread_local_.formal_count_; } 183 static void* formal_count_address() { return &thread_local_.formal_count_; }
184 184
185 static void new_break(StackFrame::Id break_frame_id); 185 static void new_break(StackFrame::Id break_frame_id);
186 static void set_break(StackFrame::Id break_frame_id, int break_id); 186 static void set_break(StackFrame::Id break_frame_id, int break_id);
187 static bool check_break(int break_id); 187 static bool check_break(int break_id);
188 static bool is_break(); 188 static bool is_break();
189 static StackFrame::Id break_frame_id(); 189 static StackFrame::Id break_frame_id();
190 static int break_id(); 190 static int break_id();
191 191
192 static void MarkCompactPrologue(); 192 static void MarkCompactPrologue(bool is_compacting);
193 static void MarkCompactEpilogue(); 193 static void MarkCompactEpilogue(bool is_compacting);
194 static void MarkCompactPrologue(char* archived_thread_data); 194 static void MarkCompactPrologue(bool is_compacting,
195 static void MarkCompactEpilogue(char* archived_thread_data); 195 char* archived_thread_data);
196 static void MarkCompactEpilogue(bool is_compacting,
197 char* archived_thread_data);
196 static void PrintCurrentStackTrace(FILE* out); 198 static void PrintCurrentStackTrace(FILE* out);
197 static void PrintStackTrace(FILE* out, char* thread_data); 199 static void PrintStackTrace(FILE* out, char* thread_data);
198 static void PrintStack(StringStream* accumulator); 200 static void PrintStack(StringStream* accumulator);
199 static void PrintStack(); 201 static void PrintStack();
200 static Handle<String> StackTrace(); 202 static Handle<String> StackTrace();
201 203
202 // Returns if the top context may access the given global object. If 204 // Returns if the top context may access the given global object. If
203 // the result is false, the pending exception is guaranteed to be 205 // the result is false, the pending exception is guaranteed to be
204 // set. 206 // set.
205 static bool MayNamedAccess(JSObject* receiver, 207 static bool MayNamedAccess(JSObject* receiver,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 static char* ArchiveThread(char* to); 288 static char* ArchiveThread(char* to);
287 static char* RestoreThread(char* from); 289 static char* RestoreThread(char* from);
288 290
289 static const char* kStackOverflowMessage; 291 static const char* kStackOverflowMessage;
290 292
291 private: 293 private:
292 // The context that initiated this JS execution. 294 // The context that initiated this JS execution.
293 static ThreadLocalTop thread_local_; 295 static ThreadLocalTop thread_local_;
294 static void InitializeThreadLocal(); 296 static void InitializeThreadLocal();
295 static void PrintStackTrace(FILE* out, ThreadLocalTop* thread); 297 static void PrintStackTrace(FILE* out, ThreadLocalTop* thread);
296 static void MarkCompactPrologue(ThreadLocalTop* archived_thread_data); 298 static void MarkCompactPrologue(bool is_compacting,
297 static void MarkCompactEpilogue(ThreadLocalTop* archived_thread_data); 299 ThreadLocalTop* archived_thread_data);
300 static void MarkCompactEpilogue(bool is_compacting,
301 ThreadLocalTop* archived_thread_data);
298 302
299 // Debug. 303 // Debug.
300 // Mutex for serializing access to break control structures. 304 // Mutex for serializing access to break control structures.
301 static Mutex* break_access_; 305 static Mutex* break_access_;
302 306
303 // ID of the frame where execution is stopped by debugger. 307 // ID of the frame where execution is stopped by debugger.
304 static StackFrame::Id break_frame_id_; 308 static StackFrame::Id break_frame_id_;
305 309
306 // Counter to create unique id for each debug break. 310 // Counter to create unique id for each debug break.
307 static int break_count_; 311 static int break_count_;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 385
382 class ExecutionAccess BASE_EMBEDDED { 386 class ExecutionAccess BASE_EMBEDDED {
383 public: 387 public:
384 ExecutionAccess(); 388 ExecutionAccess();
385 ~ExecutionAccess(); 389 ~ExecutionAccess();
386 }; 390 };
387 391
388 } } // namespace v8::internal 392 } } // namespace v8::internal
389 393
390 #endif // V8_TOP_H_ 394 #endif // V8_TOP_H_
OLDNEW
« src/stub-cache.h ('K') | « src/stub-cache.cc ('k') | src/top.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698