OLD | NEW |
1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> | 2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> |
3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> | 4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> |
5 # Copyright (C) 2006 Apple Computer, Inc. | 5 # Copyright (C) 2006 Apple Computer, Inc. |
6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. | 6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. |
7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. | 8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. |
9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 # Copyright (C) 2012 Ericsson AB. All rights reserved. | 10 # Copyright (C) 2012 Ericsson AB. All rights reserved. |
(...skipping 4647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4658 $code .= " v8::Context::Scope scope(v8Context);\n\n"; | 4658 $code .= " v8::Context::Scope scope(v8Context);\n\n"; |
4659 | 4659 |
4660 my $thisObjectHandle = ""; | 4660 my $thisObjectHandle = ""; |
4661 if ($callWithThisValue) { | 4661 if ($callWithThisValue) { |
4662 $code .= " v8::Handle<v8::Value> thisHandle = thisValue.v8Val
ue();\n"; | 4662 $code .= " v8::Handle<v8::Value> thisHandle = thisValue.v8Val
ue();\n"; |
4663 $code .= " if (thisHandle.IsEmpty()) {\n"; | 4663 $code .= " if (thisHandle.IsEmpty()) {\n"; |
4664 $code .= " if (!isScriptControllerTerminating())\n"; | 4664 $code .= " if (!isScriptControllerTerminating())\n"; |
4665 $code .= " CRASH();\n"; | 4665 $code .= " CRASH();\n"; |
4666 $code .= " return true;\n"; | 4666 $code .= " return true;\n"; |
4667 $code .= " }\n"; | 4667 $code .= " }\n"; |
4668 $code .= " ASSERT(thisHandle->isObject());\n"; | 4668 $code .= " ASSERT(thisHandle->IsObject());\n"; |
4669 $thisObjectHandle = "v8::Handle<v8::Object>::Cast(thisHandle), "
; | 4669 $thisObjectHandle = "v8::Handle<v8::Object>::Cast(thisHandle), "
; |
4670 } | 4670 } |
4671 @args = (); | 4671 @args = (); |
4672 foreach my $param (@params) { | 4672 foreach my $param (@params) { |
4673 my $paramName = $param->name; | 4673 my $paramName = $param->name; |
4674 $code .= NativeToJSValue($param->type, $param->extendedAttribute
s, $paramName, " ", "v8::Handle<v8::Value> ${paramName}Handle =", "v8::Handle
<v8::Object>()", "isolate", "") . "\n"; | 4674 $code .= NativeToJSValue($param->type, $param->extendedAttribute
s, $paramName, " ", "v8::Handle<v8::Value> ${paramName}Handle =", "v8::Handle
<v8::Object>()", "isolate", "") . "\n"; |
4675 $code .= " if (${paramName}Handle.IsEmpty()) {\n"; | 4675 $code .= " if (${paramName}Handle.IsEmpty()) {\n"; |
4676 $code .= " if (!isScriptControllerTerminating())\n"; | 4676 $code .= " if (!isScriptControllerTerminating())\n"; |
4677 $code .= " CRASH();\n"; | 4677 $code .= " CRASH();\n"; |
4678 $code .= " return true;\n"; | 4678 $code .= " return true;\n"; |
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6020 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { | 6020 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { |
6021 $found = 1; | 6021 $found = 1; |
6022 } | 6022 } |
6023 return 1 if $found; | 6023 return 1 if $found; |
6024 }, 0); | 6024 }, 0); |
6025 | 6025 |
6026 return $found; | 6026 return $found; |
6027 } | 6027 } |
6028 | 6028 |
6029 1; | 6029 1; |
OLD | NEW |