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 3674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3685 | 3685 |
3686 NeanderObject listener(i::JSObject::cast(listeners.get(i))); | 3686 NeanderObject listener(i::JSObject::cast(listeners.get(i))); |
3687 i::Handle<i::Proxy> callback_obj(i::Proxy::cast(listener.get(0))); | 3687 i::Handle<i::Proxy> callback_obj(i::Proxy::cast(listener.get(0))); |
3688 if (callback_obj->proxy() == FUNCTION_ADDR(that)) { | 3688 if (callback_obj->proxy() == FUNCTION_ADDR(that)) { |
3689 listeners.set(i, i::Heap::undefined_value()); | 3689 listeners.set(i, i::Heap::undefined_value()); |
3690 } | 3690 } |
3691 } | 3691 } |
3692 } | 3692 } |
3693 | 3693 |
3694 | 3694 |
| 3695 void V8::SetExternalStringDiposeCallback( |
| 3696 ExternalStringDiposeCallback callback) { |
| 3697 if (IsDeadCheck("v8::V8::SetExternalStringDiposeCallback()")) |
| 3698 return; |
| 3699 i::Heap::SetExternalStringDiposeCallback(callback); |
| 3700 } |
| 3701 |
| 3702 |
3695 void V8::SetCounterFunction(CounterLookupCallback callback) { | 3703 void V8::SetCounterFunction(CounterLookupCallback callback) { |
3696 if (IsDeadCheck("v8::V8::SetCounterFunction()")) return; | 3704 if (IsDeadCheck("v8::V8::SetCounterFunction()")) return; |
3697 i::StatsTable::SetCounterFunction(callback); | 3705 i::StatsTable::SetCounterFunction(callback); |
3698 } | 3706 } |
3699 | 3707 |
3700 void V8::SetCreateHistogramFunction(CreateHistogramCallback callback) { | 3708 void V8::SetCreateHistogramFunction(CreateHistogramCallback callback) { |
3701 if (IsDeadCheck("v8::V8::SetCreateHistogramFunction()")) return; | 3709 if (IsDeadCheck("v8::V8::SetCreateHistogramFunction()")) return; |
3702 i::StatsTable::SetCreateHistogramFunction(callback); | 3710 i::StatsTable::SetCreateHistogramFunction(callback); |
3703 } | 3711 } |
3704 | 3712 |
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4436 | 4444 |
4437 | 4445 |
4438 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 4446 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
4439 HandleScopeImplementer* thread_local = | 4447 HandleScopeImplementer* thread_local = |
4440 reinterpret_cast<HandleScopeImplementer*>(storage); | 4448 reinterpret_cast<HandleScopeImplementer*>(storage); |
4441 thread_local->IterateThis(v); | 4449 thread_local->IterateThis(v); |
4442 return storage + ArchiveSpacePerThread(); | 4450 return storage + ArchiveSpacePerThread(); |
4443 } | 4451 } |
4444 | 4452 |
4445 } } // namespace v8::internal | 4453 } } // namespace v8::internal |
OLD | NEW |