| 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 4002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4013 | 4013 |
| 4014 bool Debug::EnableAgent(const char* name, int port, bool wait_for_connection) { | 4014 bool Debug::EnableAgent(const char* name, int port, bool wait_for_connection) { |
| 4015 return i::Debugger::StartAgent(name, port, wait_for_connection); | 4015 return i::Debugger::StartAgent(name, port, wait_for_connection); |
| 4016 } | 4016 } |
| 4017 | 4017 |
| 4018 void Debug::ProcessDebugMessages() { | 4018 void Debug::ProcessDebugMessages() { |
| 4019 i::Execution::ProcessDebugMesssages(true); | 4019 i::Execution::ProcessDebugMesssages(true); |
| 4020 } | 4020 } |
| 4021 | 4021 |
| 4022 Local<Context> Debug::GetDebugContext() { | 4022 Local<Context> Debug::GetDebugContext() { |
| 4023 i::EnterDebugger debugger; | 4023 ENTER_V8; |
| 4024 return Utils::ToLocal(i::Debug::debug_context()); | 4024 return Utils::ToLocal(i::Debugger::GetDebugContext()); |
| 4025 } | 4025 } |
| 4026 | 4026 |
| 4027 #endif // ENABLE_DEBUGGER_SUPPORT | 4027 #endif // ENABLE_DEBUGGER_SUPPORT |
| 4028 | 4028 |
| 4029 | 4029 |
| 4030 #ifdef ENABLE_LOGGING_AND_PROFILING | 4030 #ifdef ENABLE_LOGGING_AND_PROFILING |
| 4031 | 4031 |
| 4032 Handle<String> CpuProfileNode::GetFunctionName() const { | 4032 Handle<String> CpuProfileNode::GetFunctionName() const { |
| 4033 IsDeadCheck("v8::CpuProfileNode::GetFunctionName"); | 4033 IsDeadCheck("v8::CpuProfileNode::GetFunctionName"); |
| 4034 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); | 4034 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4239 | 4239 |
| 4240 | 4240 |
| 4241 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 4241 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
| 4242 HandleScopeImplementer* thread_local = | 4242 HandleScopeImplementer* thread_local = |
| 4243 reinterpret_cast<HandleScopeImplementer*>(storage); | 4243 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 4244 thread_local->IterateThis(v); | 4244 thread_local->IterateThis(v); |
| 4245 return storage + ArchiveSpacePerThread(); | 4245 return storage + ArchiveSpacePerThread(); |
| 4246 } | 4246 } |
| 4247 | 4247 |
| 4248 } } // namespace v8::internal | 4248 } } // namespace v8::internal |
| OLD | NEW |