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

Side by Side Diff: src/v8.cc

Issue 77035: Add ENABLE_DEBUGGER_SUPPORT macro.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 8 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // Initialize other runtime facilities 65 // Initialize other runtime facilities
66 Bootstrapper::Initialize(create_heap_objects); 66 Bootstrapper::Initialize(create_heap_objects);
67 Builtins::Setup(create_heap_objects); 67 Builtins::Setup(create_heap_objects);
68 Top::Initialize(); 68 Top::Initialize();
69 69
70 if (FLAG_preemption) { 70 if (FLAG_preemption) {
71 v8::Locker locker; 71 v8::Locker locker;
72 v8::Locker::StartPreemption(100); 72 v8::Locker::StartPreemption(100);
73 } 73 }
74 74
75 #ifdef ENABLE_DEBUGGER_SUPPORT
75 Debug::Setup(create_heap_objects); 76 Debug::Setup(create_heap_objects);
77 #endif
76 StubCache::Initialize(create_heap_objects); 78 StubCache::Initialize(create_heap_objects);
77 79
78 // If we are deserializing, read the state into the now-empty heap. 80 // If we are deserializing, read the state into the now-empty heap.
79 if (des != NULL) { 81 if (des != NULL) {
80 des->Deserialize(); 82 des->Deserialize();
81 StubCache::Clear(); 83 StubCache::Clear();
82 } 84 }
83 85
84 // Setup the CPU support. Must be done after heap setup and after 86 // Setup the CPU support. Must be done after heap setup and after
85 // any deserialization because we have to have the initial heap 87 // any deserialization because we have to have the initial heap
(...skipping 18 matching lines...) Expand all
104 } 106 }
105 107
106 Builtins::TearDown(); 108 Builtins::TearDown();
107 Bootstrapper::TearDown(); 109 Bootstrapper::TearDown();
108 110
109 Top::TearDown(); 111 Top::TearDown();
110 112
111 Heap::TearDown(); 113 Heap::TearDown();
112 Logger::TearDown(); 114 Logger::TearDown();
113 115
116 #ifdef ENABLE_DEBUGGER_SUPPORT
114 Debugger::TearDown(); 117 Debugger::TearDown();
118 #endif
115 119
116 has_been_setup_ = false; 120 has_been_setup_ = false;
117 has_been_disposed_ = true; 121 has_been_disposed_ = true;
118 } 122 }
119 123
120 } } // namespace v8::internal 124 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698