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 3105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3116 i::Heap::SetGlobalGCEpilogueCallback(callback); | 3116 i::Heap::SetGlobalGCEpilogueCallback(callback); |
3117 } | 3117 } |
3118 | 3118 |
3119 | 3119 |
3120 void V8::PauseProfiler() { | 3120 void V8::PauseProfiler() { |
3121 #ifdef ENABLE_LOGGING_AND_PROFILING | 3121 #ifdef ENABLE_LOGGING_AND_PROFILING |
3122 i::Logger::PauseProfiler(); | 3122 i::Logger::PauseProfiler(); |
3123 #endif | 3123 #endif |
3124 } | 3124 } |
3125 | 3125 |
| 3126 |
3126 void V8::ResumeProfiler() { | 3127 void V8::ResumeProfiler() { |
3127 #ifdef ENABLE_LOGGING_AND_PROFILING | 3128 #ifdef ENABLE_LOGGING_AND_PROFILING |
3128 i::Logger::ResumeProfiler(); | 3129 i::Logger::ResumeProfiler(); |
3129 #endif | 3130 #endif |
3130 } | 3131 } |
3131 | 3132 |
| 3133 |
| 3134 bool V8::IsProfilerPaused() { |
| 3135 #ifdef ENABLE_LOGGING_AND_PROFILING |
| 3136 return i::Logger::IsProfilerPaused(); |
| 3137 #else |
| 3138 return true; |
| 3139 #endif |
| 3140 } |
| 3141 |
| 3142 |
3132 int V8::GetLogLines(int from_pos, char* dest_buf, int max_size) { | 3143 int V8::GetLogLines(int from_pos, char* dest_buf, int max_size) { |
3133 #ifdef ENABLE_LOGGING_AND_PROFILING | 3144 #ifdef ENABLE_LOGGING_AND_PROFILING |
3134 return i::Logger::GetLogLines(from_pos, dest_buf, max_size); | 3145 return i::Logger::GetLogLines(from_pos, dest_buf, max_size); |
3135 #endif | 3146 #endif |
3136 return 0; | 3147 return 0; |
3137 } | 3148 } |
3138 | 3149 |
3139 String::Utf8Value::Utf8Value(v8::Handle<v8::Value> obj) { | 3150 String::Utf8Value::Utf8Value(v8::Handle<v8::Value> obj) { |
3140 EnsureInitialized("v8::String::Utf8Value::Utf8Value()"); | 3151 EnsureInitialized("v8::String::Utf8Value::Utf8Value()"); |
3141 if (obj.IsEmpty()) { | 3152 if (obj.IsEmpty()) { |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3476 reinterpret_cast<HandleScopeImplementer*>(storage); | 3487 reinterpret_cast<HandleScopeImplementer*>(storage); |
3477 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); | 3488 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); |
3478 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = | 3489 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = |
3479 &thread_local->handle_scope_data_; | 3490 &thread_local->handle_scope_data_; |
3480 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); | 3491 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); |
3481 | 3492 |
3482 return storage + ArchiveSpacePerThread(); | 3493 return storage + ArchiveSpacePerThread(); |
3483 } | 3494 } |
3484 | 3495 |
3485 } } // namespace v8::internal | 3496 } } // namespace v8::internal |
OLD | NEW |