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 4631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4642 $code .= " v8::Context::Scope scope(v8Context);\n\n"; | 4642 $code .= " v8::Context::Scope scope(v8Context);\n\n"; |
4643 | 4643 |
4644 my $thisObjectHandle = ""; | 4644 my $thisObjectHandle = ""; |
4645 if ($callWithThisValue) { | 4645 if ($callWithThisValue) { |
4646 $code .= " v8::Handle<v8::Value> thisHandle = thisValue.v8Val
ue();\n"; | 4646 $code .= " v8::Handle<v8::Value> thisHandle = thisValue.v8Val
ue();\n"; |
4647 $code .= " if (thisHandle.IsEmpty()) {\n"; | 4647 $code .= " if (thisHandle.IsEmpty()) {\n"; |
4648 $code .= " if (!isScriptControllerTerminating())\n"; | 4648 $code .= " if (!isScriptControllerTerminating())\n"; |
4649 $code .= " CRASH();\n"; | 4649 $code .= " CRASH();\n"; |
4650 $code .= " return true;\n"; | 4650 $code .= " return true;\n"; |
4651 $code .= " }\n"; | 4651 $code .= " }\n"; |
4652 $code .= " ASSERT(thisHandle->isObject());\n"; | 4652 $code .= " ASSERT(thisHandle->IsObject());\n"; |
4653 $thisObjectHandle = "v8::Handle<v8::Object>::Cast(thisHandle), "
; | 4653 $thisObjectHandle = "v8::Handle<v8::Object>::Cast(thisHandle), "
; |
4654 } | 4654 } |
4655 @args = (); | 4655 @args = (); |
4656 foreach my $param (@params) { | 4656 foreach my $param (@params) { |
4657 my $paramName = $param->name; | 4657 my $paramName = $param->name; |
4658 $code .= NativeToJSValue($param->type, $param->extendedAttribute
s, $paramName, " ", "v8::Handle<v8::Value> ${paramName}Handle =", "v8::Handle
<v8::Object>()", "isolate", "") . "\n"; | 4658 $code .= NativeToJSValue($param->type, $param->extendedAttribute
s, $paramName, " ", "v8::Handle<v8::Value> ${paramName}Handle =", "v8::Handle
<v8::Object>()", "isolate", "") . "\n"; |
4659 $code .= " if (${paramName}Handle.IsEmpty()) {\n"; | 4659 $code .= " if (${paramName}Handle.IsEmpty()) {\n"; |
4660 $code .= " if (!isScriptControllerTerminating())\n"; | 4660 $code .= " if (!isScriptControllerTerminating())\n"; |
4661 $code .= " CRASH();\n"; | 4661 $code .= " CRASH();\n"; |
4662 $code .= " return true;\n"; | 4662 $code .= " return true;\n"; |
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6004 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { | 6004 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { |
6005 $found = 1; | 6005 $found = 1; |
6006 } | 6006 } |
6007 return 1 if $found; | 6007 return 1 if $found; |
6008 }, 0); | 6008 }, 0); |
6009 | 6009 |
6010 return $found; | 6010 return $found; |
6011 } | 6011 } |
6012 | 6012 |
6013 1; | 6013 1; |
OLD | NEW |