equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
401 // native function (used for native methods only) |
401 // native function (used for native methods only) |
402 enum { |
402 enum { |
403 native_bind_event_is_interesting = true |
403 native_bind_event_is_interesting = true |
404 }; |
404 }; |
405 address native_function() const { return *(native_function_addr()); } |
405 address native_function() const { return *(native_function_addr()); } |
|
406 address critical_native_function(); |
|
407 |
406 // Must specify a real function (not NULL). |
408 // Must specify a real function (not NULL). |
407 // Use clear_native_function() to unregister. |
409 // Use clear_native_function() to unregister. |
408 void set_native_function(address function, bool post_event_flag); |
410 void set_native_function(address function, bool post_event_flag); |
409 bool has_native_function() const; |
411 bool has_native_function() const; |
410 void clear_native_function(); |
412 void clear_native_function(); |