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

Side by Side Diff: src/debug.h

Issue 157503002: A64: Synchronize with r18444. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/date.js ('k') | src/debug.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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 return ComputeIntegerHash(key, v8::internal::kZeroHashSeed); 194 return ComputeIntegerHash(key, v8::internal::kZeroHashSeed);
195 } 195 }
196 196
197 // Scripts match if their keys (script id) match. 197 // Scripts match if their keys (script id) match.
198 static bool ScriptMatch(void* key1, void* key2) { return key1 == key2; } 198 static bool ScriptMatch(void* key1, void* key2) { return key1 == key2; }
199 199
200 // Clear the cache releasing all the weak handles. 200 // Clear the cache releasing all the weak handles.
201 void Clear(); 201 void Clear();
202 202
203 // Weak handle callback for scripts in the cache. 203 // Weak handle callback for scripts in the cache.
204 static void HandleWeakScript(v8::Isolate* isolate, 204 static void HandleWeakScript(
205 v8::Persistent<v8::Value>* obj, 205 const v8::WeakCallbackData<v8::Value, void>& data);
206 void* data);
207 206
208 Isolate* isolate_; 207 Isolate* isolate_;
209 // List used during GC to temporarily store id's of collected scripts. 208 // List used during GC to temporarily store id's of collected scripts.
210 List<int> collected_scripts_; 209 List<int> collected_scripts_;
211 }; 210 };
212 211
213 212
214 // Linked list holding debug info objects. The debug info objects are kept as 213 // Linked list holding debug info objects. The debug info objects are kept as
215 // weak handles to avoid a debug info object to keep a function alive. 214 // weak handles to avoid a debug info object to keep a function alive.
216 class DebugInfoListNode { 215 class DebugInfoListNode {
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 // Access to the debug break in debug break slot code. 395 // Access to the debug break in debug break slot code.
397 Code* debug_break_slot() { return debug_break_slot_; } 396 Code* debug_break_slot() { return debug_break_slot_; }
398 Code** debug_break_slot_address() { 397 Code** debug_break_slot_address() {
399 return &debug_break_slot_; 398 return &debug_break_slot_;
400 } 399 }
401 400
402 static const int kEstimatedNofDebugInfoEntries = 16; 401 static const int kEstimatedNofDebugInfoEntries = 16;
403 static const int kEstimatedNofBreakPointsInFunction = 16; 402 static const int kEstimatedNofBreakPointsInFunction = 16;
404 403
405 // Passed to MakeWeak. 404 // Passed to MakeWeak.
406 static void HandleWeakDebugInfo(v8::Isolate* isolate, 405 static void HandleWeakDebugInfo(
407 v8::Persistent<v8::Value>* obj, 406 const v8::WeakCallbackData<v8::Value, void>& data);
408 void* data);
409 407
410 friend class Debugger; 408 friend class Debugger;
411 friend Handle<FixedArray> GetDebuggedFunctions(); // In test-debug.cc 409 friend Handle<FixedArray> GetDebuggedFunctions(); // In test-debug.cc
412 friend void CheckDebuggerUnloaded(bool check_functions); // In test-debug.cc 410 friend void CheckDebuggerUnloaded(bool check_functions); // In test-debug.cc
413 411
414 // Threading support. 412 // Threading support.
415 char* ArchiveDebug(char* to); 413 char* ArchiveDebug(char* to);
416 char* RestoreDebug(char* from); 414 char* RestoreDebug(char* from);
417 static int ArchiveSpacePerThread(); 415 static int ArchiveSpacePerThread();
418 void FreeThreadResources() { } 416 void FreeThreadResources() { }
419 417
420 // Mirror cache handling. 418 // Mirror cache handling.
421 void ClearMirrorCache(); 419 void ClearMirrorCache();
422 420
423 // Script cache handling. 421 // Script cache handling.
424 void CreateScriptCache(); 422 void CreateScriptCache();
425 void DestroyScriptCache(); 423 void DestroyScriptCache();
426 void AddScriptToScriptCache(Handle<Script> script); 424 void AddScriptToScriptCache(Handle<Script> script);
427 Handle<FixedArray> GetLoadedScripts(); 425 Handle<FixedArray> GetLoadedScripts();
428 426
427 // Record function from which eval was called.
428 static void RecordEvalCaller(Handle<Script> script);
429
429 // Garbage collection notifications. 430 // Garbage collection notifications.
430 void AfterGarbageCollection(); 431 void AfterGarbageCollection();
431 432
432 // Code generator routines. 433 // Code generator routines.
433 static void GenerateSlot(MacroAssembler* masm); 434 static void GenerateSlot(MacroAssembler* masm);
434 static void GenerateLoadICDebugBreak(MacroAssembler* masm); 435 static void GenerateLoadICDebugBreak(MacroAssembler* masm);
435 static void GenerateStoreICDebugBreak(MacroAssembler* masm); 436 static void GenerateStoreICDebugBreak(MacroAssembler* masm);
436 static void GenerateKeyedLoadICDebugBreak(MacroAssembler* masm); 437 static void GenerateKeyedLoadICDebugBreak(MacroAssembler* masm);
437 static void GenerateKeyedStoreICDebugBreak(MacroAssembler* masm); 438 static void GenerateKeyedStoreICDebugBreak(MacroAssembler* masm);
438 static void GenerateCompareNilICDebugBreak(MacroAssembler* masm); 439 static void GenerateCompareNilICDebugBreak(MacroAssembler* masm);
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 1067
1067 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); 1068 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread);
1068 }; 1069 };
1069 1070
1070 1071
1071 } } // namespace v8::internal 1072 } } // namespace v8::internal
1072 1073
1073 #endif // ENABLE_DEBUGGER_SUPPORT 1074 #endif // ENABLE_DEBUGGER_SUPPORT
1074 1075
1075 #endif // V8_DEBUG_H_ 1076 #endif // V8_DEBUG_H_
OLDNEW
« no previous file with comments | « src/date.js ('k') | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698