mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
Adapt uniform[fv] and similar to accept typed array args
This commit is contained in:
parent
c1c74ed96c
commit
20f21cb5f8
4 changed files with 414 additions and 379 deletions
|
@ -418,11 +418,15 @@ class CGMethodCall(CGThing):
|
|||
template = info.template
|
||||
declType = info.declType
|
||||
|
||||
argName = "arg%d" % distinguishingIndex
|
||||
|
||||
testCode = instantiateJSToNativeConversionTemplate(
|
||||
template,
|
||||
{"val": distinguishingArg},
|
||||
declType,
|
||||
"arg%d" % distinguishingIndex)
|
||||
argName)
|
||||
if type_needs_auto_root(type):
|
||||
testCode.append(CGGeneric("auto_root!(in(cx) let %s = %s);" % (argName, argName)))
|
||||
|
||||
# Indent by 4, since we need to indent further than our "do" statement
|
||||
caseBody.append(CGIndenter(testCode, 4))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue