deepak1556
|
894c96f39f
|
Remove usage of MarkIndependent api
https://bugs.chromium.org/p/chromium/issues/detail?id=780749
Use Active/Not Active as indicator whether the Scavenger can drop wrappers
|
2018-03-31 15:08:17 +05:30 |
|
Cheng Zhao
|
91ee99ab8a
|
GetWrapper should be const
|
2018-02-20 09:29:02 +09:00 |
|
Zhuo Lu
|
e0b77db46f
|
Remove WrappableBase::GetWrapper() DCHECK
|
2017-12-13 13:26:51 -08:00 |
|
Heilig Benedek
|
40bd3336a5
|
only mark handle as independent when it's a high memory user
|
2017-11-27 00:50:51 +01:00 |
|
Matt Crocker
|
6ea2755095
|
Upstream Muon changes to avoid crashing
|
2017-10-23 23:19:23 -07:00 |
|
Heilig Benedek
|
ff8f439afd
|
add ability to set high memory usage, skipping the second round of GC callbacks
|
2017-04-12 15:51:28 +02:00 |
|
Cheng Zhao
|
0df2d882ea
|
Make Wrappable a template class
|
2016-04-25 10:17:39 +09:00 |
|
Cheng Zhao
|
e719eab878
|
Clear internal field when Wrapper is destroyed
|
2016-02-02 19:50:27 +08:00 |
|
Cheng Zhao
|
e859228db1
|
Do not manually destroy native resources
|
2015-12-03 15:38:14 +08:00 |
|
Cheng Zhao
|
8ca005eb41
|
Use the new SetWeak in Wrappable
|
2015-08-27 15:55:48 +08:00 |
|
Cheng Zhao
|
7b9926807d
|
Add IsDestroyed method for Wrappable
|
2015-07-06 18:16:57 +08:00 |
|
Cheng Zhao
|
0586822808
|
Remember isolate in Wrappable
|
2015-06-23 17:09:20 +08:00 |
|
Cheng Zhao
|
269be86998
|
Use Local instead of Handle
|
2015-05-22 19:11:02 +08:00 |
|
Cheng Zhao
|
40da835cbb
|
Don't reset handle before Wrappable is destroyed
It is possible that the user wants to use the V8 object in the destructor.
Fixes atom/atom-shell#1112.
|
2015-03-23 16:20:59 +08:00 |
|
Cheng Zhao
|
d0db7bfb58
|
Add AfterInit method for Wrappable
|
2015-02-13 11:37:55 +08:00 |
|
Cheng Zhao
|
3387f33a8e
|
Check internal field before converting
|
2015-02-11 22:09:42 +08:00 |
|
Cheng Zhao
|
9145a08395
|
Fix compilation error with node 0.10.
|
2014-08-10 11:20:41 +08:00 |
|
Cheng Zhao
|
14c851e9f8
|
Reset handle in weak callback.
This doesn't seem to be neccesary, but we had better follow what upstream does.
|
2014-07-18 09:37:07 +08:00 |
|
Cheng Zhao
|
c79aecf64d
|
Call object._init if we have one.
|
2014-05-27 08:47:06 +08:00 |
|
Cheng Zhao
|
f033e23ea3
|
No need to reset wrapper_ when we would run destructor.
|
2014-04-23 12:29:22 +08:00 |
|
Cheng Zhao
|
3d219b4be6
|
Do not wrap an object when it's already wrapped.
|
2014-04-22 15:57:23 +08:00 |
|
Cheng Zhao
|
ace550d6b2
|
Simplify Wrappable API.
|
2014-04-16 11:58:17 +08:00 |
|
Cheng Zhao
|
ac5be7dad7
|
Constructor should wrap the this pointer.
|
2014-04-16 10:36:54 +08:00 |
|
Cheng Zhao
|
e2e1faa225
|
Make the Constructor accept arbitrary callback.
|
2014-04-16 09:50:51 +08:00 |
|
Cheng Zhao
|
ff65b7dae1
|
Initial commit.
|
2014-04-15 11:04:36 +08:00 |
|