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

Side by Side Diff: src/api.cc

Issue 189463019: Implement PersistentValueMap, a map that stores UniquePersistent values. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix test case. Created 6 years, 9 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/global-handles.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 } 553 }
554 554
555 555
556 void V8::MakeWeak(i::Object** object, 556 void V8::MakeWeak(i::Object** object,
557 void* parameters, 557 void* parameters,
558 WeakCallback weak_callback) { 558 WeakCallback weak_callback) {
559 i::GlobalHandles::MakeWeak(object, parameters, weak_callback); 559 i::GlobalHandles::MakeWeak(object, parameters, weak_callback);
560 } 560 }
561 561
562 562
563 void V8::ClearWeak(i::Object** obj) { 563 void* V8::ClearWeak(i::Object** obj) {
564 i::GlobalHandles::ClearWeakness(obj); 564 return i::GlobalHandles::ClearWeakness(obj);
565 } 565 }
566 566
567 567
568 void V8::DisposeGlobal(i::Object** obj) { 568 void V8::DisposeGlobal(i::Object** obj) {
569 i::GlobalHandles::Destroy(obj); 569 i::GlobalHandles::Destroy(obj);
570 } 570 }
571 571
572 572
573 void V8::Eternalize(Isolate* v8_isolate, Value* value, int* index) { 573 void V8::Eternalize(Isolate* v8_isolate, Value* value, int* index) {
574 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate); 574 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate);
(...skipping 6767 matching lines...) Expand 10 before | Expand all | Expand 10 after
7342 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); 7342 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate());
7343 Address callback_address = 7343 Address callback_address =
7344 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 7344 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
7345 VMState<EXTERNAL> state(isolate); 7345 VMState<EXTERNAL> state(isolate);
7346 ExternalCallbackScope call_scope(isolate, callback_address); 7346 ExternalCallbackScope call_scope(isolate, callback_address);
7347 callback(info); 7347 callback(info);
7348 } 7348 }
7349 7349
7350 7350
7351 } } // namespace v8::internal 7351 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/global-handles.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698