/external/chromium_org/v8/test/webkit/fast/js/kde/ |
prototype_length.js | 26 shouldBe("Function.prototype.length","0"); 39 Function.prototype.length = 7; 40 shouldBe("Function.prototype.length","0"); 46 shouldBe("delete Function.prototype.length","false"); 55 for (i in Function.prototype) { if (i == "length") foundFunctionPrototypeLength = true; }
|
/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 | 49 virtual bool runOnFunction(Function &F); 81 Function *TrapFn = 131 // If we found a call to a no-return function, insert an unreachable 192 static bool removeUnreachableBlocksFromFn(Function &F) { 205 for (Function::iterator BB = ++F.begin(), E = F.end(); BB != E; ++BB) { 215 for (Function::iterator I = ++F.begin(); I != F.end();) 226 static bool mergeEmptyReturnBlocks(Function &F) { 231 // Scan all the blocks in the function, looking for empty return blocks. 232 for (Function::iterator BBI = F.begin(), E = F.end(); BBI != E; ) { 300 /// iterativelySimplifyCFG - Call SimplifyCFG on all the blocks in the function, [all...] |
/external/llvm/examples/Kaleidoscope/MCJIT/complete/ |
toy.cpp | 36 cl::desc("Specify the name of an IR file to load for function definitions"), 200 /// CallExprAST - Expression class for function calls. 242 /// PrototypeAST - This class represents the "prototype" for a function, 264 Function *Codegen(); 266 void CreateArgumentAllocas(Function *F); 269 /// FunctionAST - This class represents a function definition itself. 277 Function *Codegen(); 570 return ErrorP("Expected function name in prototype"); 725 // MCJIT will call this function before compiling any module 785 virtual Function *getFunction(const std::string FnName) = 0 [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/chromium_org/v8/test/mjsunit/harmony/ |
generators-runtime.js | 36 function f() { } 37 function* g() { yield 1; } 42 // A generator function should have the same set of properties as any 43 // other function. 44 function TestGeneratorFunctionInstance() { 66 // themselves and Function.prototype. 67 function TestGeneratorFunctionPrototype() { 69 assertSame(Object.getPrototypeOf(f), Function.prototype); 70 assertFalse(GeneratorFunctionPrototype === Function.prototype); 71 assertSame(Function.prototype [all...] |
/frameworks/compile/libbcc/lib/Renderscript/ |
RSForEachExpand.cpp | 23 #include <llvm/IR/Function.h> 31 #include <llvm/IR/Function.h> 47 * ForEach-able function to be invoked over the appropriate data cells of the 49 * support doing this for any ForEach-able compute kernels. The new function 50 * name is the original function name followed by ".expand". Note that we 51 * still generate code for the original function. 65 uint32_t getRootSignature(llvm::Function *F) { 71 for (llvm::Function::arg_iterator B = F->arg_begin(), 91 // hard-coded to look at only the first such function. 140 /// to keep the signature of the expanded function independent of th [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/v8/ |
V8LazyEventListener.cpp | 82 v8::Local<v8::Function> handlerFunction = listenerObject.As<v8::Function>(); 154 // By calling the function with 4 arguments, we create a setter on arguments object 156 String code = "(function() {" 160 "return function(" + m_eventParameterName + ") {" + 171 // Call the outer function to get the inner function. 173 v8::Local<v8::Function> intermediateFunction = result.As<v8::Function>(); 198 v8::Local<v8::Function> wrappedFunction = innerValue.As<v8::Function>() [all...] |
DateExtension.cpp | 44 "(function () {" 47 " function getTimeOverride() {" 52 " function enableSleepDetection(enable) {" 61 " native function Setup();" 62 " native function OnSleepDetected();" 93 V8ScriptRunner::callInternalFunction(v8::Handle<v8::Function>::Cast(sleepFunctionHandle), v8::Object::New(), WTF_ARRAY_LENGTH(argv), argv, isolate); 112 v8::Handle<v8::Function> enableSleepDetectionFunction = v8::Handle<v8::Function>::Cast(args[1]);
|
/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/chromium_org/third_party/mesa/src/src/gallium/state_trackers/clover/llvm/ |
invocation.cpp | 138 find_kernels(llvm::Module *mod, std::vector<llvm::Function *> &kernels) { 142 kernels.push_back(llvm::dyn_cast<llvm::Function>( 149 const std::vector<llvm::Function *> &kernels) { 160 // Add a function internalizer pass. 162 // By default, the function internalizer pass will look for a function 165 // like function inlining and global dead-code elimination. 167 // When there is no "main" function in a module, the internalize pass will 169 // Since there is no "main" function in our kernels, we need to tell 175 for (std::vector<llvm::Function *>::const_iterator I = kernels.begin() [all...] |
/external/mesa3d/src/gallium/state_trackers/clover/llvm/ |
invocation.cpp | 138 find_kernels(llvm::Module *mod, std::vector<llvm::Function *> &kernels) { 142 kernels.push_back(llvm::dyn_cast<llvm::Function>( 149 const std::vector<llvm::Function *> &kernels) { 160 // Add a function internalizer pass. 162 // By default, the function internalizer pass will look for a function 165 // like function inlining and global dead-code elimination. 167 // When there is no "main" function in a module, the internalize pass will 169 // Since there is no "main" function in our kernels, we need to tell 175 for (std::vector<llvm::Function *>::const_iterator I = kernels.begin() [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/ |
V8PromiseCustom.h | 85 // |fulfillCallback| and |rejectCallback| can be an empty function respectively. 86 static void append(v8::Handle<v8::Object> promise, v8::Handle<v8::Function> fulfillCallback, v8::Handle<v8::Function> rejectCallback, v8::Isolate*); 88 // This function can take either Promise or PromiseResolver objects. 89 // This function cannot be called when the internal object is detached from |promiseOrResolver|. 102 // This function clears callbacks in the object. 110 // Call |function| synchronously or asynchronously, depending on |mode|. 111 // If |function| throws an exception, this function catches it and does not rethrow. 112 static void call(v8::Handle<v8::Function> /* function */, v8::Handle<v8::Object> receiver, v8::Handle<v8::Value> result, SynchronousMode /* (…) [all...] |
/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...] |
/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, 180 /// \brief Test whether calls to a function lower to actual program functio [all...] |
/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 125 /// 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/lib/Transforms/Utils/ |
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) {
|