OLD | NEW |
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 2682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2693 } | 2693 } |
2694 } | 2694 } |
2695 } | 2695 } |
2696 | 2696 |
2697 | 2697 |
2698 void V8::SetCounterFunction(CounterLookupCallback callback) { | 2698 void V8::SetCounterFunction(CounterLookupCallback callback) { |
2699 if (IsDeadCheck("v8::V8::SetCounterFunction()")) return; | 2699 if (IsDeadCheck("v8::V8::SetCounterFunction()")) return; |
2700 i::StatsTable::SetCounterFunction(callback); | 2700 i::StatsTable::SetCounterFunction(callback); |
2701 } | 2701 } |
2702 | 2702 |
| 2703 void V8::SetCreateHistogramFunction(CreateHistogramCallback callback) { |
| 2704 if (IsDeadCheck("v8::V8::SetCreateHistogramFunction()")) return; |
| 2705 i::StatsTable::SetCreateHistogramFunction(callback); |
| 2706 } |
| 2707 |
| 2708 void V8::SetAddHistogramSampleFunction(AddHistogramSampleCallback callback) { |
| 2709 if (IsDeadCheck("v8::V8::SetAddHistogramSampleFunction()")) return; |
| 2710 i::StatsTable::SetAddHistogramSampleFunction(callback); |
| 2711 } |
2703 | 2712 |
2704 void V8::EnableSlidingStateWindow() { | 2713 void V8::EnableSlidingStateWindow() { |
2705 if (IsDeadCheck("v8::V8::EnableSlidingStateWindow()")) return; | 2714 if (IsDeadCheck("v8::V8::EnableSlidingStateWindow()")) return; |
2706 i::Logger::EnableSlidingStateWindow(); | 2715 i::Logger::EnableSlidingStateWindow(); |
2707 } | 2716 } |
2708 | 2717 |
2709 | 2718 |
2710 void V8::SetFailedAccessCheckCallbackFunction( | 2719 void V8::SetFailedAccessCheckCallbackFunction( |
2711 FailedAccessCheckCallback callback) { | 2720 FailedAccessCheckCallback callback) { |
2712 if (IsDeadCheck("v8::V8::SetFailedAccessCheckCallbackFunction()")) return; | 2721 if (IsDeadCheck("v8::V8::SetFailedAccessCheckCallbackFunction()")) return; |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3055 reinterpret_cast<HandleScopeImplementer*>(storage); | 3064 reinterpret_cast<HandleScopeImplementer*>(storage); |
3056 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); | 3065 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); |
3057 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = | 3066 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = |
3058 &thread_local->handle_scope_data_; | 3067 &thread_local->handle_scope_data_; |
3059 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); | 3068 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); |
3060 | 3069 |
3061 return storage + ArchiveSpacePerThread(); | 3070 return storage + ArchiveSpacePerThread(); |
3062 } | 3071 } |
3063 | 3072 |
3064 } } // namespace v8::internal | 3073 } } // namespace v8::internal |
OLD | NEW |