| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 5452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5463 EXCEPTION_BAILOUT_CHECK(isolate, Local<Value>()); | 5463 EXCEPTION_BAILOUT_CHECK(isolate, Local<Value>()); |
| 5464 return scope.Close(result); | 5464 return scope.Close(result); |
| 5465 } | 5465 } |
| 5466 | 5466 |
| 5467 | 5467 |
| 5468 bool Debug::EnableAgent(const char* name, int port, bool wait_for_connection) { | 5468 bool Debug::EnableAgent(const char* name, int port, bool wait_for_connection) { |
| 5469 return i::Isolate::Current()->debugger()->StartAgent(name, port, | 5469 return i::Isolate::Current()->debugger()->StartAgent(name, port, |
| 5470 wait_for_connection); | 5470 wait_for_connection); |
| 5471 } | 5471 } |
| 5472 | 5472 |
| 5473 |
| 5474 void Debug::DisableAgent() { |
| 5475 return i::Isolate::Current()->debugger()->StopAgent(); |
| 5476 } |
| 5477 |
| 5478 |
| 5473 void Debug::ProcessDebugMessages() { | 5479 void Debug::ProcessDebugMessages() { |
| 5474 i::Execution::ProcessDebugMesssages(true); | 5480 i::Execution::ProcessDebugMesssages(true); |
| 5475 } | 5481 } |
| 5476 | 5482 |
| 5477 Local<Context> Debug::GetDebugContext() { | 5483 Local<Context> Debug::GetDebugContext() { |
| 5478 i::Isolate* isolate = i::Isolate::Current(); | 5484 i::Isolate* isolate = i::Isolate::Current(); |
| 5479 EnsureInitializedForIsolate(isolate, "v8::Debug::GetDebugContext()"); | 5485 EnsureInitializedForIsolate(isolate, "v8::Debug::GetDebugContext()"); |
| 5480 ENTER_V8(isolate); | 5486 ENTER_V8(isolate); |
| 5481 return Utils::ToLocal(i::Isolate::Current()->debugger()->GetDebugContext()); | 5487 return Utils::ToLocal(i::Isolate::Current()->debugger()->GetDebugContext()); |
| 5482 } | 5488 } |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6066 | 6072 |
| 6067 | 6073 |
| 6068 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 6074 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
| 6069 HandleScopeImplementer* scope_implementer = | 6075 HandleScopeImplementer* scope_implementer = |
| 6070 reinterpret_cast<HandleScopeImplementer*>(storage); | 6076 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 6071 scope_implementer->IterateThis(v); | 6077 scope_implementer->IterateThis(v); |
| 6072 return storage + ArchiveSpacePerThread(); | 6078 return storage + ArchiveSpacePerThread(); |
| 6073 } | 6079 } |
| 6074 | 6080 |
| 6075 } } // namespace v8::internal | 6081 } } // namespace v8::internal |
| OLD | NEW |