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

Side by Side Diff: src/debug.h

Issue 99193002: Remove all stuff marked as V8_DEPRECATED. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Created 7 years 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/api.cc ('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() { }
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 1064
1067 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); 1065 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread);
1068 }; 1066 };
1069 1067
1070 1068
1071 } } // namespace v8::internal 1069 } } // namespace v8::internal
1072 1070
1073 #endif // ENABLE_DEBUGGER_SUPPORT 1071 #endif // ENABLE_DEBUGGER_SUPPORT
1074 1072
1075 #endif // V8_DEBUG_H_ 1073 #endif // V8_DEBUG_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698