OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 4195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4206 return true; | 4206 return true; |
4207 } | 4207 } |
4208 | 4208 |
4209 | 4209 |
4210 void Debug::DebugBreak() { | 4210 void Debug::DebugBreak() { |
4211 if (!i::V8::IsRunning()) return; | 4211 if (!i::V8::IsRunning()) return; |
4212 i::StackGuard::DebugBreak(); | 4212 i::StackGuard::DebugBreak(); |
4213 } | 4213 } |
4214 | 4214 |
4215 | 4215 |
| 4216 void Debug::DebugBreakForCommand(ClientData* data) { |
| 4217 if (!i::V8::IsRunning()) return; |
| 4218 i::Debugger::EnqueueDebugCommand(data); |
| 4219 } |
| 4220 |
| 4221 |
4216 static v8::Debug::MessageHandler message_handler = NULL; | 4222 static v8::Debug::MessageHandler message_handler = NULL; |
4217 | 4223 |
4218 static void MessageHandlerWrapper(const v8::Debug::Message& message) { | 4224 static void MessageHandlerWrapper(const v8::Debug::Message& message) { |
4219 if (message_handler) { | 4225 if (message_handler) { |
4220 v8::String::Value json(message.GetJSON()); | 4226 v8::String::Value json(message.GetJSON()); |
4221 message_handler(*json, json.length(), message.GetClientData()); | 4227 message_handler(*json, json.length(), message.GetClientData()); |
4222 } | 4228 } |
4223 } | 4229 } |
4224 | 4230 |
4225 | 4231 |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4746 | 4752 |
4747 | 4753 |
4748 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 4754 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
4749 HandleScopeImplementer* thread_local = | 4755 HandleScopeImplementer* thread_local = |
4750 reinterpret_cast<HandleScopeImplementer*>(storage); | 4756 reinterpret_cast<HandleScopeImplementer*>(storage); |
4751 thread_local->IterateThis(v); | 4757 thread_local->IterateThis(v); |
4752 return storage + ArchiveSpacePerThread(); | 4758 return storage + ArchiveSpacePerThread(); |
4753 } | 4759 } |
4754 | 4760 |
4755 } } // namespace v8::internal | 4761 } } // namespace v8::internal |
OLD | NEW |