Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Side by Side Diff: src/api.cc

Issue 2658008: Remove the SetExternalStringDiposeCallback API... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/v8.h ('k') | src/heap.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
3703 void V8::SetCounterFunction(CounterLookupCallback callback) { 3695 void V8::SetCounterFunction(CounterLookupCallback callback) {
3704 if (IsDeadCheck("v8::V8::SetCounterFunction()")) return; 3696 if (IsDeadCheck("v8::V8::SetCounterFunction()")) return;
3705 i::StatsTable::SetCounterFunction(callback); 3697 i::StatsTable::SetCounterFunction(callback);
3706 } 3698 }
3707 3699
3708 void V8::SetCreateHistogramFunction(CreateHistogramCallback callback) { 3700 void V8::SetCreateHistogramFunction(CreateHistogramCallback callback) {
3709 if (IsDeadCheck("v8::V8::SetCreateHistogramFunction()")) return; 3701 if (IsDeadCheck("v8::V8::SetCreateHistogramFunction()")) return;
3710 i::StatsTable::SetCreateHistogramFunction(callback); 3702 i::StatsTable::SetCreateHistogramFunction(callback);
3711 } 3703 }
3712 3704
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
4444 4436
4445 4437
4446 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 4438 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
4447 HandleScopeImplementer* thread_local = 4439 HandleScopeImplementer* thread_local =
4448 reinterpret_cast<HandleScopeImplementer*>(storage); 4440 reinterpret_cast<HandleScopeImplementer*>(storage);
4449 thread_local->IterateThis(v); 4441 thread_local->IterateThis(v);
4450 return storage + ArchiveSpacePerThread(); 4442 return storage + ArchiveSpacePerThread();
4451 } 4443 }
4452 4444
4453 } } // namespace v8::internal 4445 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698