Searched refs:functionBody (Results 1 - 3 of 3) sorted by relevance

/macosx-10.10.1/JavaScriptCore-7600.1.17/runtime/
H A DFunctionPrototype.cpp85 static inline void insertSemicolonIfNeeded(String& functionBody, bool bodyIncludesBraces) argument
88 functionBody = makeString("{ ", functionBody, "}");
90 ASSERT(functionBody[0] == '{');
91 ASSERT(functionBody[functionBody.length() - 1] == '}');
93 for (size_t i = functionBody.length() - 2; i > 0; --i) {
94 UChar ch = functionBody[i];
97 functionBody = makeString(functionBody
[all...]
/macosx-10.10.1/JavaScriptCore-7600.1.17/API/tests/
H A Dtestapi.c1630 JSStringRef functionBody; local
1634 functionBody = JSStringCreateWithUTF8CString("rreturn Array;");
1636 ASSERT(!JSObjectMakeFunction(context, NULL, 0, NULL, functionBody, NULL, 1, &exception));
1640 JSStringRelease(functionBody);
1644 functionBody = JSStringCreateWithUTF8CString("rreturn Array;");
1646 ASSERT(!JSObjectMakeFunction(context, NULL, 0, NULL, functionBody, NULL, -42, &exception));
1650 JSStringRelease(functionBody);
1654 functionBody = JSStringCreateWithUTF8CString("// Line one.\nrreturn Array;");
1656 ASSERT(!JSObjectMakeFunction(context, NULL, 0, NULL, functionBody, NULL, 1, &exception));
1660 JSStringRelease(functionBody);
[all...]
/macosx-10.10.1/JavaScriptCore-7600.1.17/bytecompiler/
H A DBytecodeGenerator.cpp205 BytecodeGenerator::BytecodeGenerator(VM& vm, FunctionBodyNode* functionBody, UnlinkedFunctionCodeBlock* codeBlock, DebuggerMode debuggerMode, ProfilerMode profilerMode) argument
209 , m_scopeNode(functionBody)
236 FunctionParameters& parameters = *functionBody->parameters();
244 m_symbolTable->setParameterCountIncludingThis(functionBody->parameters()->size() + 1);
255 if (functionBody->usesArguments() || codeBlock->usesEval()) { // May reify arguments object.
278 if (functionBody->hasCapturedVariables() || shouldCaptureAllTheThings) {
279 FunctionParameters& parameters = *functionBody->parameters();
287 if (!functionBody->captures(ident) && !shouldCaptureAllTheThings)
309 RegisterID* calleeRegister = resolveCallee(functionBody); // May push to the scope chain and/or add a captured var.
311 const DeclarationStacks::FunctionStack& functionStack = functionBody
[all...]

Completed in 95 milliseconds