| 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 3774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3785 i::Handle<i::Proxy> callback_obj(i::Proxy::cast(listener.get(0))); | 3785 i::Handle<i::Proxy> callback_obj(i::Proxy::cast(listener.get(0))); |
| 3786 if (callback_obj->proxy() == FUNCTION_ADDR(that)) { | 3786 if (callback_obj->proxy() == FUNCTION_ADDR(that)) { |
| 3787 listeners.set(i, HEAP->undefined_value()); | 3787 listeners.set(i, HEAP->undefined_value()); |
| 3788 } | 3788 } |
| 3789 } | 3789 } |
| 3790 } | 3790 } |
| 3791 | 3791 |
| 3792 | 3792 |
| 3793 void V8::SetCounterFunction(CounterLookupCallback callback) { | 3793 void V8::SetCounterFunction(CounterLookupCallback callback) { |
| 3794 if (IsDeadCheck("v8::V8::SetCounterFunction()")) return; | 3794 if (IsDeadCheck("v8::V8::SetCounterFunction()")) return; |
| 3795 i::StatsTable::SetCounterFunction(callback); | 3795 i::Isolate::Current()->stats_table()->SetCounterFunction(callback); |
| 3796 } | 3796 } |
| 3797 | 3797 |
| 3798 void V8::SetCreateHistogramFunction(CreateHistogramCallback callback) { | 3798 void V8::SetCreateHistogramFunction(CreateHistogramCallback callback) { |
| 3799 if (IsDeadCheck("v8::V8::SetCreateHistogramFunction()")) return; | 3799 if (IsDeadCheck("v8::V8::SetCreateHistogramFunction()")) return; |
| 3800 i::StatsTable::SetCreateHistogramFunction(callback); | 3800 i::Isolate::Current()->stats_table()->SetCreateHistogramFunction(callback); |
| 3801 } | 3801 } |
| 3802 | 3802 |
| 3803 void V8::SetAddHistogramSampleFunction(AddHistogramSampleCallback callback) { | 3803 void V8::SetAddHistogramSampleFunction(AddHistogramSampleCallback callback) { |
| 3804 if (IsDeadCheck("v8::V8::SetAddHistogramSampleFunction()")) return; | 3804 if (IsDeadCheck("v8::V8::SetAddHistogramSampleFunction()")) return; |
| 3805 i::StatsTable::SetAddHistogramSampleFunction(callback); | 3805 i::Isolate::Current()->stats_table()-> |
| 3806 SetAddHistogramSampleFunction(callback); |
| 3806 } | 3807 } |
| 3807 | 3808 |
| 3808 void V8::EnableSlidingStateWindow() { | 3809 void V8::EnableSlidingStateWindow() { |
| 3809 if (IsDeadCheck("v8::V8::EnableSlidingStateWindow()")) return; | 3810 if (IsDeadCheck("v8::V8::EnableSlidingStateWindow()")) return; |
| 3810 i::Logger::EnableSlidingStateWindow(); | 3811 i::Logger::EnableSlidingStateWindow(); |
| 3811 } | 3812 } |
| 3812 | 3813 |
| 3813 | 3814 |
| 3814 void V8::SetFailedAccessCheckCallbackFunction( | 3815 void V8::SetFailedAccessCheckCallbackFunction( |
| 3815 FailedAccessCheckCallback callback) { | 3816 FailedAccessCheckCallback callback) { |
| (...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4711 | 4712 |
| 4712 | 4713 |
| 4713 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 4714 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
| 4714 HandleScopeImplementer* thread_local = | 4715 HandleScopeImplementer* thread_local = |
| 4715 reinterpret_cast<HandleScopeImplementer*>(storage); | 4716 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 4716 thread_local->IterateThis(v); | 4717 thread_local->IterateThis(v); |
| 4717 return storage + ArchiveSpacePerThread(); | 4718 return storage + ArchiveSpacePerThread(); |
| 4718 } | 4719 } |
| 4719 | 4720 |
| 4720 } } // namespace v8::internal | 4721 } } // namespace v8::internal |
| OLD | NEW |