/external/chromium_org/v8/test/mjsunit/ |
array-iteration.js | 28 // Tests for non-standard array iteration functions. 32 // <http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array> 37 // Array.prototype.filter 50 // Modify original array. 52 assertArrayEquals([42,42], a.filter(function(n, index, array) { array[index] = 43; return 42 == n; })); 55 // Only loop through initial part of array eventhough elements are 58 assertArrayEquals([], a.filter(function(n, index, array) { array.push(n+1); return n == 2; })); 62 a = new Array(20) [all...] |
array-functions-prototype.js | 28 // This file contains a number of tests of array functions and their 39 // Set elements on the array prototype. 40 Array.prototype[0] = 'zero'; 41 Array.prototype[1] = 'one'; 42 Array.prototype[2] = 'two'; 60 var array = ['zero', , 'two']; 62 assertEquals('zero', array.shift()); 63 assertEquals('zero', Array.prototype.shift.call(nonArray)); 66 assertEquals(2, array.length); 68 assertHasOwnProperties(array, 2) [all...] |
generated-transition-stub.js | 66 // Large array should deopt to runtimea 68 a5 = new Array(); 100 // Large array should deopt to runtime 130 transition3(c3, 0, new Array()); 136 // Large array under the deopt threshold should be able to trigger GC without 145 transition3(c4, 0, new Array(5)); 151 // Large array should deopt to runtime 159 transition3(c5, 0, new Array(5)); 184 transition4(d3, 0, new Array()); 190 // Large array under the deopt threshold should be able to trigger GC withou [all...] |
sparse-array-reverse.js | 39 // Simple test of reverse on sparse array. 44 Array.prototype[30] = 'B'; // Should be hidden by a[30]. 52 delete Array.prototype[30]; 59 // CONG pseudo random number generator. Used for fuzzing the sparse array 70 // Fuzzing test of reverse on sparse array. 78 // Make sure we test both array-backed and hash-table backed 81 a = new Array(size); 83 a = new Array(); 98 Array.prototype[pos] = letter; 114 Array.prototype[pos] = letter [all...] |
array-functions-prototype-misc.js | 61 return new Array(length); 63 the_prototype = Array.prototype; 64 push_function = function(array, elt) { 65 return array.push(elt); 67 concat_function = function(array, other) { 68 return array.concat(other); 70 slice_function = function(array, start, len) { 71 return array.slice(start, len); 73 splice_function = function(array, start, len) { 74 return array.splice(start, len) [all...] |
array-elements-from-array-prototype-chain.js | 29 // Tests below verify that elements set on Array.prototype's proto propagate 30 // for various Array.prototype functions (like unshift, shift, etc.) 32 // array-elements-from-array-prototype.js 33 // array-elements-from-array-prototype-chain.js 34 // array-elements-from-object-prototype.js 46 Array.prototype.__proto__ = {3: at3}; 47 Array.prototype.__proto__.__proto__ = {7: at7}; 49 var a = new Array(13 [all...] |
array-elements-from-array-prototype.js | 29 // Tests below verify that elements set on Array.prototype propagate 30 // for various Array.prototype functions (like unshift, shift, etc.) 32 // array-elements-from-array-prototype.js 33 // array-elements-from-array-prototype-chain.js 34 // array-elements-from-object-prototype.js 46 Array.prototype[3] = at3 47 Array.prototype[7] = at7 49 var a = new Array(13 [all...] |
/external/v8/test/mjsunit/ |
array-iteration.js | 28 // Tests for non-standard array iteration functions. 32 // <http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array> 37 // Array.prototype.filter 50 // Modify original array. 52 assertArrayEquals([42,42], a.filter(function(n, index, array) { array[index] = 43; return 42 == n; })); 55 // Only loop through initial part of array eventhough elements are 58 assertArrayEquals([], a.filter(function(n, index, array) { array.push(n+1); return n == 2; })); 62 a = new Array(20) [all...] |
array-functions-prototype.js | 28 // This file contains a number of tests of array functions and their 39 // Set elements on the array prototype. 40 Array.prototype[0] = 'zero'; 41 Array.prototype[1] = 'one'; 42 Array.prototype[2] = 'two'; 60 var array = ['zero', , 'two']; 62 assertEquals('zero', array.shift()); 63 assertEquals('zero', Array.prototype.shift.call(nonArray)); 66 assertEquals(2, array.length); 68 assertHasOwnProperties(array, 2) [all...] |
sparse-array-reverse.js | 39 // Simple test of reverse on sparse array. 44 Array.prototype[30] = 'B'; // Should be hidden by a[30]. 52 delete Array.prototype[30]; 59 // CONG pseudo random number generator. Used for fuzzing the sparse array 70 // Fuzzing test of reverse on sparse array. 78 // Make sure we test both array-backed and hash-table backed 81 a = new Array(size); 83 a = new Array(); 98 Array.prototype[pos] = letter; 114 Array.prototype[pos] = letter [all...] |
array-functions-prototype-misc.js | 61 return new Array(length); 63 the_prototype = Array.prototype; 64 push_function = function(array, elt) { 65 return array.push(elt); 67 concat_function = function(array, other) { 68 return array.concat(other); 70 slice_function = function(array, start, len) { 71 return array.slice(start, len); 73 splice_function = function(array, start, len) { 74 return array.splice(start, len) [all...] |
array-elements-from-array-prototype-chain.js | 29 // Tests below verify that elements set on Array.prototype's proto propagate 30 // for various Array.prototype functions (like unshift, shift, etc.) 32 // array-elements-from-array-prototype.js 33 // array-elements-from-array-prototype-chain.js 34 // array-elements-from-object-prototype.js 46 Array.prototype.__proto__ = {3: at3}; 47 Array.prototype.__proto__.__proto__ = {7: at7}; 49 var a = new Array(13 [all...] |
array-elements-from-array-prototype.js | 29 // Tests below verify that elements set on Array.prototype propagate 30 // for various Array.prototype functions (like unshift, shift, etc.) 32 // array-elements-from-array-prototype.js 33 // array-elements-from-array-prototype-chain.js 34 // array-elements-from-object-prototype.js 46 Array.prototype[3] = at3 47 Array.prototype[7] = at7 49 var a = new Array(13 [all...] |
/external/chromium_org/chrome/browser/resources/file_manager/foreground/js/ |
file_watcher.js | 60 * @param {Array.<Entry>} entries Array of entries. 73 * @param {Array.<Entry>} entries Arrray of entries. 86 * @param {Array.<Entry>} entries Array of entries. 101 * @param {Array.<Entry>} entries Array of entries.
|
/ndk/sources/host-tools/nawk-20071023/ |
tran.c | 37 Array *symtab; /* main symbol table */ 58 Array *ARGVtab; /* symbol table containing ARGV[...] */ 59 Array *ENVtab; /* symbol table containing ENVIRON[...] */ 142 Array *makesymtab(int n) /* make a new symbol table */ 144 Array *ap; 147 ap = (Array *) malloc(sizeof(Array)); 160 Array *tp; 165 tp = (Array *) ap->sval; 187 Array *tp [all...] |
/external/chromium_org/third_party/WebKit/Source/core/inspector/ |
InspectorDOMAgent.h | 117 virtual void querySelectorAll(ErrorString*, int nodeId, const String& selectors, RefPtr<TypeBuilder::Array<int> >& result); 128 virtual void getEventListenersForNode(ErrorString*, int nodeId, const WTF::String* objectGroup, RefPtr<TypeBuilder::Array<TypeBuilder::DOM::EventListener> >& listenersArray); 130 virtual void getSearchResults(ErrorString*, const String& searchId, int fromIndex, int toIndex, RefPtr<TypeBuilder::Array<int> >&); 133 virtual void getAttributes(ErrorString*, int nodeId, RefPtr<TypeBuilder::Array<String> >& result); 235 PassRefPtr<TypeBuilder::Array<String> > buildArrayForElementAttributes(Element*); 236 PassRefPtr<TypeBuilder::Array<TypeBuilder::DOM::Node> > buildArrayForContainerChildren(Node* container, int depth, NodeToIdMap* nodesMap); 238 PassRefPtr<TypeBuilder::Array<TypeBuilder::DOM::Node> > buildArrayForPseudoElements(Element*, NodeToIdMap* nodesMap);
|
InspectorDebuggerAgent.h | 97 virtual void setBreakpointByUrl(ErrorString*, int lineNumber, const String* optionalURL, const String* optionalURLRegex, const int* optionalColumnNumber, const String* optionalCondition, const bool* isAntiBreakpoint, TypeBuilder::Debugger::BreakpointId*, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::Location> >& locations); 101 virtual void getStepInPositions(ErrorString*, const String& callFrameId, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::Location> >& positions); 102 virtual void getBacktrace(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> >&, RefPtr<TypeBuilder::Debugger::StackTrace>&); 104 virtual void searchInContent(ErrorString*, const String& scriptId, const String& query, const bool* optionalCaseSensitive, const bool* optionalIsRegex, RefPtr<TypeBuilder::Array<TypeBuilder::Page::SearchMatch> >&); 105 virtual void setScriptSource(ErrorString*, RefPtr<TypeBuilder::Debugger::SetScriptSourceError>&, const String& scriptId, const String& newContent, const bool* preview, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> >& newCallFrames, RefPtr<JSONObject>& result, RefPtr<TypeBuilder::Debugger::StackTrace>& asyncStackTrace); 106 virtual void restartFrame(ErrorString*, const String& callFrameId, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> >& newCallFrames, RefPtr<JSONObject>& result, RefPtr<TypeBuilder::Debugger::StackTrace>& asyncStackTrace); 188 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCallFrames();
|
InspectorApplicationCacheAgent.cpp | 98 void InspectorApplicationCacheAgent::getFramesWithManifests(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::ApplicationCache::FrameWithManifest> >& result) 100 result = TypeBuilder::Array<TypeBuilder::ApplicationCache::FrameWithManifest>::create(); 166 PassRefPtr<TypeBuilder::Array<TypeBuilder::ApplicationCache::ApplicationCacheResource> > InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources(const ApplicationCacheHost::ResourceInfoList& applicationCacheResources) 168 RefPtr<TypeBuilder::Array<TypeBuilder::ApplicationCache::ApplicationCacheResource> > resources = TypeBuilder::Array<TypeBuilder::ApplicationCache::ApplicationCacheResource>::create();
|
/external/chromium_org/content/renderer/ |
v8_value_converter_impl_unittest.cc | 94 std::string GetString(v8::Handle<v8::Array> value, uint32 index) { 132 bool IsNull(v8::Handle<v8::Array> value, uint32 index) { 173 v8::Handle<v8::Array> array(v8::Array::New(isolate_)); 174 array->Set(0, val); 176 static_cast<base::ListValue*>(converter.FromV8Value(array, context))); 343 v8::Handle<v8::Array> array = script->Run().As<v8::Array>(); local 471 v8::Handle<v8::Array> array = v8::Array::New(isolate_).As<v8::Array>(); local 535 v8::Handle<v8::Array> array = script->Run().As<v8::Array>(); local 562 v8::Handle<v8::Array> array; local [all...] |
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9/ |
crypto-aes.js | 6 * takes byte-array 'input' (16 bytes) 7 * 2D byte-array key schedule 'w' (Nr+1 x Nb bytes) 11 * returns byte-array encrypted value (16 bytes) 17 var state = [[],[],[],[]]; // initialise 4xNb byte-array 'state' with input [§3.4] 33 var output = new Array(4*Nb); // convert state to 1-d array before returning [§3.4] 48 var t = new Array(4); 59 var a = new Array(4); // 'a' is a copy of the current column from 's' 60 var b = new Array(4); // 'b' is a?{02} in GF(2^8) 83 function KeyExpansion(key) { // generate Key Schedule (byte-array Nr+1 x Nb) from Key [§5.2 [all...] |
crypto-sha1.js | 38 * Calculate the SHA-1 of an array of big-endian words, and a bit length 46 var w = Array(80); 80 return Array(a, b, c, d, e); 113 var ipad = Array(16), opad = Array(16); 144 * Convert an 8-bit or 16-bit string to an array of big-endian words 149 var bin = Array(); 157 * Convert an array of big-endian words to a string 169 * Convert an array of big-endian words to a hex string. 184 * Convert an array of big-endian words to a base-64 strin [all...] |
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/ |
crypto-aes.js | 6 * takes byte-array 'input' (16 bytes) 7 * 2D byte-array key schedule 'w' (Nr+1 x Nb bytes) 11 * returns byte-array encrypted value (16 bytes) 17 var state = [[],[],[],[]]; // initialise 4xNb byte-array 'state' with input [§3.4] 33 var output = new Array(4*Nb); // convert state to 1-d array before returning [§3.4] 48 var t = new Array(4); 59 var a = new Array(4); // 'a' is a copy of the current column from 's' 60 var b = new Array(4); // 'b' is a?{02} in GF(2^8) 83 function KeyExpansion(key) { // generate Key Schedule (byte-array Nr+1 x Nb) from Key [§5.2 [all...] |
crypto-sha1.js | 38 * Calculate the SHA-1 of an array of big-endian words, and a bit length 46 var w = Array(80); 80 return Array(a, b, c, d, e); 113 var ipad = Array(16), opad = Array(16); 144 * Convert an 8-bit or 16-bit string to an array of big-endian words 149 var bin = Array(); 157 * Convert an array of big-endian words to a string 169 * Convert an array of big-endian words to a hex string. 184 * Convert an array of big-endian words to a base-64 strin [all...] |
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-1.0/ |
crypto-aes.js | 6 * takes byte-array 'input' (16 bytes) 7 * 2D byte-array key schedule 'w' (Nr+1 x Nb bytes) 11 * returns byte-array encrypted value (16 bytes) 17 var state = [[],[],[],[]]; // initialise 4xNb byte-array 'state' with input [§3.4] 33 var output = new Array(4*Nb); // convert state to 1-d array before returning [§3.4] 48 var t = new Array(4); 59 var a = new Array(4); // 'a' is a copy of the current column from 's' 60 var b = new Array(4); // 'b' is a?{02} in GF(2^8) 83 function KeyExpansion(key) { // generate Key Schedule (byte-array Nr+1 x Nb) from Key [§5.2 [all...] |
crypto-sha1.js | 38 * Calculate the SHA-1 of an array of big-endian words, and a bit length 46 var w = Array(80); 80 return Array(a, b, c, d, e); 113 var ipad = Array(16), opad = Array(16); 144 * Convert an 8-bit or 16-bit string to an array of big-endian words 149 var bin = Array(); 157 * Convert an array of big-endian words to a string 169 * Convert an array of big-endian words to a hex string. 184 * Convert an array of big-endian words to a base-64 strin [all...] |