• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/JavaScriptCore-7600.1.17/dfg/

Lines Matching refs:Array

37 ArrayMode ArrayMode::fromObserved(const ConcurrentJITLocker& locker, ArrayProfile* profile, Array::Action action, bool makeSafe)
39 Array::Class nonArray;
41 nonArray = Array::OriginalNonArray;
43 nonArray = Array::NonArray;
48 return ArrayMode(Array::Unprofiled);
50 if (action == Array::Write && !profile->mayInterceptIndexedAccesses(locker))
51 return ArrayMode(Array::Undecided, nonArray, Array::OutOfBounds, Array::Convert);
52 return ArrayMode(Array::SelectUsingPredictions, nonArray).withSpeculationFromProfile(locker, profile, makeSafe);
55 if (action == Array::Write)
56 return ArrayMode(Array::Undecided, Array::Array, Array::OutOfBounds, Array::Convert);
57 return ArrayMode(Array::Generic);
60 if (action == Array::Write && !profile->mayInterceptIndexedAccesses(locker))
61 return ArrayMode(Array::Undecided, Array::PossiblyArray, Array::OutOfBounds, Array::Convert);
62 return ArrayMode(Array::SelectUsingPredictions).withSpeculationFromProfile(locker, profile, makeSafe);
65 return ArrayMode(Array::Int32, nonArray, Array::AsIs).withProfile(locker, profile, makeSafe);
67 return ArrayMode(Array::Int32, Array::Array, Array::AsIs).withProfile(locker, profile, makeSafe);
69 return ArrayMode(Array::Int32, Array::PossiblyArray, Array::AsIs).withProfile(locker, profile, makeSafe);
72 return ArrayMode(Array::Double, nonArray, Array::AsIs).withProfile(locker, profile, makeSafe);
74 return ArrayMode(Array::Double, Array::Array, Array::AsIs).withProfile(locker, profile, makeSafe);
76 return ArrayMode(Array::Double, Array::PossiblyArray, Array::AsIs).withProfile(locker, profile, makeSafe);
79 return ArrayMode(Array::Contiguous, nonArray, Array::AsIs).withProfile(locker, profile, makeSafe);
81 return ArrayMode(Array::Contiguous, Array::Array, Array::AsIs).withProfile(locker, profile, makeSafe);
83 return ArrayMode(Array::Contiguous, Array::PossiblyArray, Array::AsIs).withProfile(locker, profile, makeSafe);
86 return ArrayMode(Array::ArrayStorage, nonArray, Array::AsIs).withProfile(locker, profile, makeSafe);
89 return ArrayMode(Array::SlowPutArrayStorage, nonArray, Array::AsIs).withProfile(locker, profile, makeSafe);
91 return ArrayMode(Array::ArrayStorage, Array::Array, Array::AsIs).withProfile(locker, profile, makeSafe);
94 return ArrayMode(Array::SlowPutArrayStorage, Array::Array, Array::AsIs).withProfile(locker, profile, makeSafe);
96 return ArrayMode(Array::ArrayStorage, Array::PossiblyArray, Array::AsIs).withProfile(locker, profile, makeSafe);
99 return ArrayMode(Array::SlowPutArrayStorage, Array::PossiblyArray, Array::AsIs).withProfile(locker, profile, makeSafe);
103 return ArrayMode(Array::SelectUsingPredictions).withSpeculationFromProfile(locker, profile, makeSafe);
105 Array::Type type;
106 Array::Class arrayClass;
109 type = Array::SlowPutArrayStorage;
111 type = Array::ArrayStorage;
113 type = Array::Contiguous;
115 type = Array::Double;
117 type = Array::Int32;
119 type = Array::Undecided;
122 arrayClass = Array::PossiblyArray;
124 arrayClass = Array::Array;
128 arrayClass = Array::PossiblyArray;
130 return ArrayMode(type, arrayClass, Array::Convert).withProfile(locker, profile, makeSafe);
144 return ArrayMode(Array::ForceExit);
148 return ArrayMode(Array::Generic);
161 case Array::Unprofiled:
162 return ArrayMode(Array::ForceExit);
164 case Array::Undecided:
166 return withType(Array::ForceExit);
168 return withTypeAndConversion(Array::Int32, Array::Convert);
170 return withTypeAndConversion(Array::Double, Array::Convert);
171 return withTypeAndConversion(Array::Contiguous, Array::Convert);
173 case Array::Int32:
177 return withTypeAndConversion(Array::Double, Array::Convert);
178 return withTypeAndConversion(Array::Contiguous, Array::Convert);
180 case Array::Double:
182 return withTypeAndConversion(Array::Contiguous, Array::RageConvert);
185 return withTypeAndConversion(Array::Contiguous, Array::Convert);
187 case Array::Contiguous:
189 return withConversion(Array::RageConvert);
192 case Array::SelectUsingPredictions: {
196 return withType(Array::String);
199 return withType(Array::Arguments);
205 result = withSpeculation(Array::OutOfBounds);
207 result = withSpeculation(Array::InBounds);
211 result = withSpeculation(Array::InBounds);
216 return result.withType(Array::Int8Array);
219 return result.withType(Array::Int16Array);
222 return result.withType(Array::Int32Array);
225 return result.withType(Array::Uint8Array);
228 return result.withType(Array::Uint8ClampedArray);
231 return result.withType(Array::Uint16Array);
234 return result.withType(Array::Uint32Array);
237 return result.withType(Array::Float32Array);
240 return result.withType(Array::Float64Array);
242 return ArrayMode(Array::Generic);
255 case Array::OriginalArray: {
257 case Array::Int32:
259 case Array::Double:
261 case Array::Contiguous:
263 case Array::ArrayStorage:
271 case Array::OriginalNonArray: {
292 case Array::OriginalArray:
298 case Array::Array:
316 case Array::Generic:
319 case Array::ForceExit:
322 case Array::String:
325 case Array::Int32:
328 case Array::Double:
331 case Array::Contiguous:
334 case Array::ArrayStorage:
337 case Array::SlowPutArrayStorage:
339 case Array::OriginalArray:
343 case Array::Array:
357 case Array::Arguments:
360 case Array::Int8Array:
363 case Array::Int16Array:
366 case Array::Int32Array:
369 case Array::Uint8Array:
372 case Array::Uint8ClampedArray:
375 case Array::Uint16Array:
378 case Array::Uint32Array:
381 case Array::Float32Array:
384 case Array::Float64Array:
387 case Array::SelectUsingPredictions:
388 case Array::Unprofiled:
389 case Array::Undecided:
397 const char* arrayTypeToString(Array::Type type)
400 case Array::SelectUsingPredictions:
402 case Array::Unprofiled:
404 case Array::Generic:
406 case Array::ForceExit:
408 case Array::String:
410 case Array::Undecided:
412 case Array::Int32:
414 case Array::Double:
416 case Array::Contiguous:
418 case Array::ArrayStorage:
420 case Array::SlowPutArrayStorage:
422 case Array::Arguments:
424 case Array::Int8Array:
426 case Array::Int16Array:
428 case Array::Int32Array:
430 case Array::Uint8Array:
432 case Array::Uint8ClampedArray:
434 case Array::Uint16Array:
436 case Array::Uint32Array:
438 case Array::Float32Array:
440 case Array::Float64Array:
451 const char* arrayClassToString(Array::Class arrayClass)
454 case Array::Array:
455 return "Array";
456 case Array::OriginalArray:
458 case Array::NonArray:
460 case Array::OriginalNonArray:
462 case Array::PossiblyArray:
469 const char* arraySpeculationToString(Array::Speculation speculation)
472 case Array::SaneChain:
474 case Array::InBounds:
476 case Array::ToHole:
478 case Array::OutOfBounds:
485 const char* arrayConversionToString(Array::Conversion conversion)
488 case Array::AsIs:
490 case Array::Convert:
492 case Array::RageConvert:
499 IndexingType toIndexingShape(Array::Type type)
502 case Array::Int32:
504 case Array::Double:
506 case Array::Contiguous:
508 case Array::ArrayStorage:
510 case Array::SlowPutArrayStorage:
517 TypedArrayType toTypedArrayType(Array::Type type)
520 case Array::Int8Array:
522 case Array::Int16Array:
524 case Array::Int32Array:
526 case Array::Uint8Array:
528 case Array::Uint8ClampedArray:
530 case Array::Uint16Array:
532 case Array::Uint32Array:
534 case Array::Float32Array:
536 case Array::Float64Array:
543 Array::Type toArrayType(TypedArrayType type)
547 return Array::Int8Array;
549 return Array::Int16Array;
551 return Array::Int32Array;
553 return Array::Uint8Array;
555 return Array::Uint8ClampedArray;
557 return Array::Uint16Array;
559 return Array::Uint32Array;
561 return Array::Float32Array;
563 return Array::Float64Array;
565 return Array::Generic;
569 bool permitsBoundsCheckLowering(Array::Type type)
572 case Array::Int32:
573 case Array::Double:
574 case Array::Contiguous:
575 case Array::Int8Array:
576 case Array::Int16Array:
577 case Array::Int32Array:
578 case Array::Uint8Array:
579 case Array::Uint8ClampedArray:
580 case Array::Uint16Array:
581 case Array::Uint32Array:
582 case Array::Float32Array:
583 case Array::Float64Array:
608 void printInternal(PrintStream& out, JSC::DFG::Array::Type type)
613 void printInternal(PrintStream& out, JSC::DFG::Array::Class arrayClass)
618 void printInternal(PrintStream& out, JSC::DFG::Array::Speculation speculation)
623 void printInternal(PrintStream& out, JSC::DFG::Array::Conversion conversion)