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 4839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4850 bool V8::IsProfilerPaused() { | 4850 bool V8::IsProfilerPaused() { |
4851 #ifdef ENABLE_LOGGING_AND_PROFILING | 4851 #ifdef ENABLE_LOGGING_AND_PROFILING |
4852 i::Isolate* isolate = i::Isolate::Current(); | 4852 i::Isolate* isolate = i::Isolate::Current(); |
4853 return isolate->logger()->IsProfilerPaused(); | 4853 return isolate->logger()->IsProfilerPaused(); |
4854 #else | 4854 #else |
4855 return true; | 4855 return true; |
4856 #endif | 4856 #endif |
4857 } | 4857 } |
4858 | 4858 |
4859 | 4859 |
4860 int V8::GetLogLines(int from_pos, char* dest_buf, int max_size) { | |
4861 #ifdef ENABLE_LOGGING_AND_PROFILING | |
4862 ASSERT(max_size >= kMinimumSizeForLogLinesBuffer); | |
4863 return LOGGER->GetLogLines(from_pos, dest_buf, max_size); | |
4864 #endif | |
4865 return 0; | |
4866 } | |
4867 | |
4868 | |
4869 int V8::GetCurrentThreadId() { | 4860 int V8::GetCurrentThreadId() { |
4870 i::Isolate* isolate = i::Isolate::Current(); | 4861 i::Isolate* isolate = i::Isolate::Current(); |
4871 EnsureInitializedForIsolate(isolate, "V8::GetCurrentThreadId()"); | 4862 EnsureInitializedForIsolate(isolate, "V8::GetCurrentThreadId()"); |
4872 return isolate->thread_id().ToInteger(); | 4863 return isolate->thread_id().ToInteger(); |
4873 } | 4864 } |
4874 | 4865 |
4875 | 4866 |
4876 void V8::TerminateExecution(int thread_id) { | 4867 void V8::TerminateExecution(int thread_id) { |
4877 i::Isolate* isolate = i::Isolate::Current(); | 4868 i::Isolate* isolate = i::Isolate::Current(); |
4878 if (!isolate->IsInitialized()) return; | 4869 if (!isolate->IsInitialized()) return; |
(...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6098 | 6089 |
6099 | 6090 |
6100 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 6091 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
6101 HandleScopeImplementer* scope_implementer = | 6092 HandleScopeImplementer* scope_implementer = |
6102 reinterpret_cast<HandleScopeImplementer*>(storage); | 6093 reinterpret_cast<HandleScopeImplementer*>(storage); |
6103 scope_implementer->IterateThis(v); | 6094 scope_implementer->IterateThis(v); |
6104 return storage + ArchiveSpacePerThread(); | 6095 return storage + ArchiveSpacePerThread(); |
6105 } | 6096 } |
6106 | 6097 |
6107 } } // namespace v8::internal | 6098 } } // namespace v8::internal |
OLD | NEW |