Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: Source/bindings/scripts/v8_types.py

Issue 1116843002: v8::Isolate* should be the first parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed Mac compilation error for v8::Isolate* should be the first parameter patch Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (C) 2013 Google Inc. All rights reserved. 1 # Copyright (C) 2013 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 'unsigned short': 'toUInt16({isolate}, {arguments})', 492 'unsigned short': 'toUInt16({isolate}, {arguments})',
493 'long': 'toInt32({isolate}, {arguments})', 493 'long': 'toInt32({isolate}, {arguments})',
494 'unsigned long': 'toUInt32({isolate}, {arguments})', 494 'unsigned long': 'toUInt32({isolate}, {arguments})',
495 'long long': 'toInt64({isolate}, {arguments})', 495 'long long': 'toInt64({isolate}, {arguments})',
496 'unsigned long long': 'toUInt64({isolate}, {arguments})', 496 'unsigned long long': 'toUInt64({isolate}, {arguments})',
497 # Interface types 497 # Interface types
498 'Dictionary': 'Dictionary({v8_value}, {isolate}, exceptionState)', 498 'Dictionary': 'Dictionary({v8_value}, {isolate}, exceptionState)',
499 'EventTarget': 'toEventTarget({isolate}, {v8_value})', 499 'EventTarget': 'toEventTarget({isolate}, {v8_value})',
500 'NodeFilter': 'toNodeFilter({v8_value}, info.Holder(), ScriptState::current( {isolate}))', 500 'NodeFilter': 'toNodeFilter({v8_value}, info.Holder(), ScriptState::current( {isolate}))',
501 'Promise': 'ScriptPromise::cast(ScriptState::current({isolate}), {v8_value}) ', 501 'Promise': 'ScriptPromise::cast(ScriptState::current({isolate}), {v8_value}) ',
502 'SerializedScriptValue': 'SerializedScriptValueFactory::instance().create({v 8_value}, 0, 0, exceptionState, {isolate})', 502 'SerializedScriptValue': 'SerializedScriptValueFactory::instance().create({i solate}, {v8_value}, 0, 0, exceptionState)',
503 'ScriptValue': 'ScriptValue(ScriptState::current({isolate}), {v8_value})', 503 'ScriptValue': 'ScriptValue(ScriptState::current({isolate}), {v8_value})',
504 'Window': 'toDOMWindow({isolate}, {v8_value})', 504 'Window': 'toDOMWindow({isolate}, {v8_value})',
505 'XPathNSResolver': 'toXPathNSResolver(ScriptState::current({isolate}), {v8_v alue})', 505 'XPathNSResolver': 'toXPathNSResolver(ScriptState::current({isolate}), {v8_v alue})',
506 } 506 }
507 507
508 508
509 def v8_conversion_needs_exception_state(idl_type): 509 def v8_conversion_needs_exception_state(idl_type):
510 return (idl_type.is_numeric_type or 510 return (idl_type.is_numeric_type or
511 idl_type.is_enum or 511 idl_type.is_enum or
512 idl_type.is_dictionary or 512 idl_type.is_dictionary or
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 number_of_nullable_member_types_union) 978 number_of_nullable_member_types_union)
979 979
980 980
981 def includes_nullable_type_union(idl_type): 981 def includes_nullable_type_union(idl_type):
982 # http://heycam.github.io/webidl/#dfn-includes-a-nullable-type 982 # http://heycam.github.io/webidl/#dfn-includes-a-nullable-type
983 return idl_type.number_of_nullable_member_types == 1 983 return idl_type.number_of_nullable_member_types == 1
984 984
985 IdlTypeBase.includes_nullable_type = False 985 IdlTypeBase.includes_nullable_type = False
986 IdlNullableType.includes_nullable_type = True 986 IdlNullableType.includes_nullable_type = True
987 IdlUnionType.includes_nullable_type = property(includes_nullable_type_union) 987 IdlUnionType.includes_nullable_type = property(includes_nullable_type_union)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698