| /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/FunctionObjects/ |
| 15.3.2.1-2.js | 24 ECMA Section: 15.3.2.1 The Function Constructor 25 new Function(p1, p2, ..., pn, body ) 35 var TITLE = "The Function Constructor"; 43 function getTestCases() { 47 var myfunc1 = new Function("a","b","c", "return a+b+c" ); 48 var myfunc2 = new Function("a, b, c", "return a+b+c" ); 49 var myfunc3 = new Function("a,b", "c", "return a+b+c" ); 55 array[item++] = new TestCase( SECTION, "myfunc1 = new Function('a','b','c'); myfunc.toString = Object.prototype.toString; myfunc.toString()", 56 "[object Function]", 69 array[item++] = new TestCase( SECTION, "myfunc2 = new Function('a','b','c'); myfunc.toString = Object.prototype.toString; myfunc.toString()" [all...] |
| /external/webkit/Source/WebCore/bindings/v8/ |
| V8LazyEventListener.cpp | 61 v8::Local<v8::Function> handlerFunction = v8::Local<v8::Function>::Cast(listenerObject); 101 // FIXME: cache the wrapper function. 111 String code = "(function (evt) {" \ 115 "return (function(evt){"; 126 v8::Local<v8::Function> wrappedFunction = v8::Local<v8::Function>::Cast(value); 128 // Change the toString function on the wrapper function to avoid it 129 // returning the source for the actual wrapper function. Instead i [all...] |
| DateExtension.cpp | 43 "(function () {" 46 " function getTimeOverride() {" 51 " function enableSleepDetection(enable) {" 60 " native function Setup();" 61 " native function OnSleepDetected();" 92 v8::Handle<v8::Function>::Cast(sleepFunctionHandle)->Call(v8::Object::New(), 1, argv); 111 v8::Handle<v8::Function> enableSleepDetectionFunction = v8::Handle<v8::Function>::Cast(args[1]);
|
| ScheduledAction.cpp | 46 ScheduledAction::ScheduledAction(v8::Handle<v8::Context> context, v8::Handle<v8::Function> func, int argc, v8::Handle<v8::Value> argv[]) 50 m_function = v8::Persistent<v8::Function>::New(func); 119 proxy->callFunction(v8::Persistent<v8::Function>::Cast(m_function), v8Context->Global(), m_argc, m_argv);
|
| /external/llvm/lib/Transforms/Utils/ |
| BuildLibCalls.cpp | 18 #include "llvm/IR/Function.h" 33 /// EmitStrLen - Emit a call to the strlen function to the builder, for the 55 if (const Function *F = dyn_cast<Function>(StrLen->stripPointerCasts())) 61 /// EmitStrNLen - Emit a call to the strnlen function to the builder, for the 85 if (const Function *F = dyn_cast<Function>(StrNLen->stripPointerCasts())) 91 /// EmitStrChr - Emit a call to the strchr function to the builder, for the 113 if (const Function *F = dyn_cast<Function>(StrChr->stripPointerCasts()) [all...] |
| MetaRenamer.cpp | 20 #include "llvm/IR/Function.h" 63 // simply avoid always having the same function names, and we need to 118 bool runOnFunction(Function &F) { 119 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end(); 124 for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB) {
|
| /external/llvm/examples/ExceptionDemo/ |
| ExceptionDemo.cpp | 20 // regardless of whether or not that test function ignores or catches the 33 // thrown and caught by an inner generated test function. 35 // thrown and caught by an outer generated test function. 37 // thrown and NOT be caught by any generated function. 39 // caught by any generated function 201 /// Utility used to create a function, both declarations and definitions 203 /// @param retType function return type 204 /// @param theArgTypes function's ordered argument types 205 /// @param theArgNames function's ordered arguments needed if use of this 206 /// function corresponds to a function definition. Use empt [all...] |
| /external/llvm/lib/Transforms/Scalar/ |
| SimplifyCFGPass.cpp | 50 virtual bool runOnFunction(Function &F); 82 Function *TrapFn = 132 // If we found a call to a no-return function, insert an unreachable 193 static bool removeUnreachableBlocksFromFn(Function &F) { 206 for (Function::iterator BB = ++F.begin(), E = F.end(); BB != E; ++BB) { 216 for (Function::iterator I = ++F.begin(); I != F.end();) 227 static bool mergeEmptyReturnBlocks(Function &F) { 232 // Scan all the blocks in the function, looking for empty return blocks. 233 for (Function::iterator BBI = F.begin(), E = F.end(); BBI != E; ) { 301 /// iterativelySimplifyCFG - Call SimplifyCFG on all the blocks in the function, [all...] |
| /external/webkit/Source/JavaScriptCore/runtime/ |
| Lookup.h | 51 // FIXME: There is no reason this get function can't be simpler. 70 m_u.function.generator = generator; 81 ThunkGenerator generator() const { ASSERT(m_attributes & Function); return m_u.function.generator; } 83 NativeFunction function() const { ASSERT(m_attributes & Function); return m_u.function.functionValue; } function in class:JSC::HashEntry 84 unsigned char functionLength() const { ASSERT(m_attributes & Function); return static_cast<unsigned char>(m_u.function.length); } 86 GetFunction propertyGetter() const { ASSERT(!(m_attributes & Function)); return m_u.property.get; 109 } function; member in union:JSC::HashEntry::__anon17574 [all...] |
| /external/llvm/lib/Analysis/ |
| ProfileInfo.cpp | 28 template<> char ProfileInfoT<Function,BasicBlock>::ID = 0; 42 ProfileInfoT<Function, BasicBlock>::ProfileInfoT() { 46 ProfileInfoT<Function, BasicBlock>::~ProfileInfoT() { 54 const double ProfileInfoT<Function,BasicBlock>::MissingValue = -1; 60 ProfileInfoT<Function,BasicBlock>::getExecutionCount(const BasicBlock *BB) { 61 std::map<const Function*, BlockCounts>::iterator J = 138 double ProfileInfoT<Function,BasicBlock>::getExecutionCount(const Function *F) { 139 std::map<const Function*, double>::iterator J = 144 // isDeclaration() is checked here and not at start of function to allo [all...] |
| /external/llvm/examples/Kaleidoscope/Chapter4/ |
| toy.cpp | 123 /// CallExprAST - Expression class for function calls. 133 /// PrototypeAST - This class represents the "prototype" for a function, 135 /// of arguments the function takes). 143 Function *Codegen(); 146 /// FunctionAST - This class represents a function definition itself. 154 Function *Codegen(); 304 return ErrorP("Expected function name in prototype"); 367 // Look this variable up in the function. 392 Function *CalleeF = TheModule->getFunction(Callee); 394 return ErrorV("Unknown function referenced") [all...] |
| /external/llvm/unittests/IR/ |
| PassManagerTest.cpp | 22 #include "llvm/IR/Function.h" 180 virtual bool runOnFunction(Function &F) { 243 virtual bool doInitialization(Function &F) { 252 virtual bool doFinalization(Function &F) { 275 Function &F = *I; 277 SCOPED_TRACE("Running on the fly function pass"); 331 // module/function was run in between 373 SCOPED_TRACE("Function pass"); 379 MemoryTestHelper<LPass>(2, 1); //2 loops, 1 function 426 // Function Declaration [all...] |
| /external/guava/guava-tests/test/com/google/common/cache/ |
| CacheBuilderFactory.java | 17 import com.google.common.base.Function; 97 new Function<List<Object>, CacheBuilder<Object, Object>>() { 112 private static final Function<Object, Optional<?>> NULLABLE_TO_OPTIONAL = 113 new Function<Object, Optional<?>>() { 119 private static final Function<Optional<?>, Object> OPTIONAL_TO_NULLABLE = 120 new Function<Optional<?>, Object>() { 142 new Function<List<Optional<?>>, List<Object>>() {
|
| /external/llvm/lib/Transforms/IPO/ |
| IPConstantPropagation.cpp | 44 bool PropagateConstantsIntoArguments(Function &F); 45 bool PropagateConstantReturn(Function &F); 77 /// function. If all uses are direct call sites, and all pass a particular 80 bool IPCP::PropagateConstantsIntoArguments(Function &F) { 94 // Used by a non-instruction, or not the callee of a function, do not 106 Function::arg_iterator Arg = F.arg_begin(); 123 // give up on this function. 134 Function::arg_iterator AI = F.arg_begin(); 151 // Check to see if this function returns one or more constants. If so, replace 156 // Additionally if a function always returns one of its arguments directly [all...] |
| /external/llvm/unittests/ExecutionEngine/JIT/ |
| JITEventListenerTestCommon.h | 87 llvm::Function *buildFunction(const SourceLocations& DebugLocations) { 102 Function *Result = Function::Create( 122 llvm::Function* f = buildFunction(DebugLocations); 137 llvm::Function* f = buildFunction(DebugLocations); 159 llvm::Function* f = buildFunction(DebugLocations); 188 llvm::Function* f = buildFunction(DebugLocations);
|
| /external/clang/tools/libclang/ |
| CIndexCXX.cpp | 110 } else if (const FunctionDecl *Function = dyn_cast<FunctionDecl>(D)) { 111 Template = Function->getPrimaryTemplate(); 113 Template = Function->getInstantiatedFromMemberFunction();
|
| /external/guava/guava/src/com/google/common/collect/ |
| Interners.java | 22 import com.google.common.base.Function; 107 * Returns a function that delegates to the {@link Interner#intern} method of the given interner. 111 public static <E> Function<E, E> asFunction(Interner<E> interner) { 115 private static class InternerFunction<E> implements Function<E, E> {
|
| /external/guava/guava-tests/test/com/google/common/collect/ |
| ComputingConcurrentHashMapTest.java | 27 import com.google.common.base.Function; 54 MapMaker maker, Function<? super K, ? extends V> computingFunction) { 60 MapMaker maker, Function<? super K, ? extends V> computingFunction) { 74 Function<Object, Object> computingFunction = new Function<Object, Object>() { 101 Function<Object, Object> computingFunction = new ConstantLoader<Object, Object>(null); 248 Function<Object, Object> computingFunction = new Function<Object, Object>() { 306 private static class CountingFunction implements Function<Object, Object> { 322 Function<Object, Object> computingFunction = new IdentityLoader<Object>() [all...] |
| MapsSortedTransformValuesTest.java | 23 import com.google.common.base.Function; 27 * Tests for {@link Maps#transformValues(SortedMap, Function)}.
|
| /external/llvm/include/llvm/Analysis/ |
| SparsePropagation.h | 11 // modeled after SCCP, but with a customizable lattice function. 31 class Function; 64 /// this function can return true to avoid pointless work. 113 /// Propagation with a programmable lattice function. 145 void Solve(Function &F); 147 void Print(Function &F, raw_ostream &OS) const; 159 /// map yet. This function is necessary because not all values should start 182 /// this function notices and adds I to the worklist if needed.
|
| TargetTransformInfo.h | 116 /// The contract for this function is the same as \c getOperationCost except 122 /// \brief Estimate the cost of a function call when lowered. 129 /// function type and (potentially) the number of arguments at the call site. 130 /// The latter is only interesting for varargs function types. 133 /// \brief Estimate the cost of calling a specific function when lowered. 135 /// This overload adds the ability to reason about the particular function 137 virtual unsigned getCallCost(const Function *F, int NumArgs = -1) const; 139 /// \brief Estimate the cost of calling a specific function when lowered. 142 virtual unsigned getCallCost(const Function *F, 174 /// \brief Test whether calls to a function lower to actual program functio [all...] |
| IntervalPartition.h | 11 // calculates and represents the interval partition of a function, or a 35 // a function. This partition divides the control flow graph into a set of 55 // run - Calculate the interval partition for this function 56 virtual bool runOnFunction(Function &F); 68 // block of the function. 91 // releaseMemory - Reset state back to before function was analyzed
|
| /external/llvm/include/llvm/CodeGen/ |
| FunctionLoweringInfo.h | 36 class Function; 49 /// function that is used when lowering a region of the function. 54 const Function *Fn; 58 /// CanLowerReturn - true iff the function's return value can be lowered to 69 /// ValueMap - Since we emit code for the function a basic block at a time, 76 /// anywhere in the function. 83 /// function arguments that are inserted after scheduling is completed. 114 /// TODO: This isn't per-function state, it's per-basic-block state. But 120 /// set - Initialize this FunctionLoweringInfo with the given Function [all...] |
| /external/llvm/lib/IR/ |
| AutoUpgrade.cpp | 16 #include "llvm/IR/Function.h" 30 static bool UpgradeSSE41Function(Function* F, Intrinsic::ID IID, 31 Function *&NewFn) { 32 // Check whether this is an old version of the function, which received 44 static bool UpgradeIntrinsicFunction1(Function *F, Function *&NewFn) { 45 assert(F && "Illegal to upgrade a non-existent Function."); 65 NewFn = Function::Create(fType, F->getLinkage(), 136 // This may not belong here. This function is effectively being overloaded 143 bool llvm::UpgradeIntrinsicFunction(Function *F, Function *&NewFn) [all...] |
| /external/llvm/examples/Kaleidoscope/Chapter6/ |
| toy.cpp | 147 /// CallExprAST - Expression class for function calls. 177 /// PrototypeAST - This class represents the "prototype" for a function, 179 /// of arguments the function takes), as well as if it is an operator. 200 Function *Codegen(); 203 /// FunctionAST - This class represents a function definition itself. 211 Function *Codegen(); 457 return ErrorP("Expected function name in prototype"); 553 // Look this variable up in the function. 562 Function *F = TheModule->getFunction(std::string("unary")+Opcode); 588 Function *F = TheModule->getFunction(std::string("binary")+Op) [all...] |