Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Ericsson AB. All rights reserved. | 3 * Copyright (C) 2012 Ericsson AB. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1004 ~V8RethrowTryCatchScope() | 1004 ~V8RethrowTryCatchScope() |
| 1005 { | 1005 { |
| 1006 // ReThrow() is a no-op if no exception has been caught, so always call. | 1006 // ReThrow() is a no-op if no exception has been caught, so always call. |
| 1007 m_block.ReThrow(); | 1007 m_block.ReThrow(); |
| 1008 } | 1008 } |
| 1009 | 1009 |
| 1010 private: | 1010 private: |
| 1011 v8::TryCatch& m_block; | 1011 v8::TryCatch& m_block; |
| 1012 }; | 1012 }; |
| 1013 | 1013 |
| 1014 // Callback functions used by generated code. | |
| 1015 void v8ConstructorAttributeGetterAsProperty(v8::Local<v8::String> propertyName, const v8::PropertyCallbackInfo<v8::Value>&); | |
|
haraken
2015/02/28 15:19:15
Can we use template to unify these two functions?
Yuki
2015/03/03 07:03:53
Yes, it's possible.
However, as we talked offline,
| |
| 1016 void v8ConstructorAttributeGetterAsAccessor(const v8::FunctionCallbackInfo<v8::V alue>&); | |
| 1017 | |
| 1014 typedef void (*InstallTemplateFunction)(v8::Local<v8::FunctionTemplate>, v8::Iso late*); | 1018 typedef void (*InstallTemplateFunction)(v8::Local<v8::FunctionTemplate>, v8::Iso late*); |
| 1015 | 1019 |
| 1016 } // namespace blink | 1020 } // namespace blink |
| 1017 | 1021 |
| 1018 #endif // V8Binding_h | 1022 #endif // V8Binding_h |
| OLD | NEW |