Home
last modified time | relevance | path

Searched refs:JSArray (Results 1 – 25 of 113) sorted by relevance

12345

/external/v8/src/
Dliveedit.h87 static JSArray* GatherCompileInfo(Handle<Script> script,
90 static void WrapSharedFunctionInfos(Handle<JSArray> array);
93 Handle<JSArray> new_compile_info_array,
94 Handle<JSArray> shared_info_array);
96 static MaybeObject* FunctionSourceUpdated(Handle<JSArray> shared_info_array);
103 Handle<JSArray> shared_info_array, Handle<JSArray> position_change_array);
123 static Handle<JSArray> CheckAndDropActivations(
124 Handle<JSArray> shared_info_array, bool do_drop);
138 static Handle<JSArray> CompareStrings(Handle<String> s1,
Dliveedit.cc353 Handle<JSArray> GetResult() { in GetResult()
371 Handle<JSArray> array_;
562 Handle<JSArray> GetResult() { in GetResult()
579 Handle<JSArray> LiveEdit::CompareStrings(Handle<String> s1, in CompareStrings()
644 Handle<JSArray> array = FACTORY->NewJSArray(S::kSize_); in Create()
648 JSArray* array = JSArray::cast(object); in cast()
649 Handle<JSArray> array_handle(array); in cast()
652 explicit JSArrayBasedStruct(Handle<JSArray> array) : array_(array) { in JSArrayBasedStruct()
654 Handle<JSArray> GetJSArray() { in GetJSArray()
676 Handle<JSArray> array_;
[all …]
Dmessages.h48 v8::internal::Handle<v8::internal::JSArray> args, in V8Message()
52 v8::internal::Handle<v8::internal::JSArray> args() const { return args_; } in args()
56 v8::internal::Handle<v8::internal::JSArray> const args_;
98 Handle<JSArray> stack_frames);
Dbuiltins.cc194 JSArray* array; in ArrayCodeGenericCommon()
196 array = JSArray::cast((*args)[0]); in ArrayCodeGenericCommon()
240 return array->Initialize(JSArray::kPreallocatedArrayElements); in ArrayCodeGenericCommon()
411 JSArray* array = JSArray::cast(receiver); in EnsureJSArrayWithWritableFastElements()
449 JSArray* receiver) { in IsJSArrayFastElementMovingAllowed()
497 JSArray* array = JSArray::cast(receiver); in BUILTIN()
553 JSArray* array = JSArray::cast(receiver); in BUILTIN()
586 if (!IsJSArrayFastElementMovingAllowed(heap, JSArray::cast(receiver))) { in BUILTIN()
590 JSArray* array = JSArray::cast(receiver); in BUILTIN()
628 if (!IsJSArrayFastElementMovingAllowed(heap, JSArray::cast(receiver))) { in BUILTIN()
[all …]
Dfactory.h266 Handle<JSArray> NewJSArray(int capacity,
270 Handle<JSArray> NewJSArrayWithElements(
275 void SetElementsCapacityAndLength(Handle<JSArray> array,
279 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements);
281 void EnsureCanContainHeapObjectElements(Handle<JSArray> array);
282 void EnsureCanContainElements(Handle<JSArray> array,
331 Handle<JSArray> args);
348 Handle<Object> NewSyntaxError(const char* type, Handle<JSArray> args);
436 Handle<JSArray> arguments,
Dapi.h181 v8::internal::Handle<v8::internal::JSArray> obj);
187 v8::internal::Handle<v8::internal::JSArray> obj);
217 static inline v8::internal::Handle<v8::internal::JSArray>
227 static inline v8::internal::Handle<v8::internal::JSArray>
273 MAKE_TO_LOCAL(ToLocal, JSArray, Array) in MAKE_TO_LOCAL()
280 MAKE_TO_LOCAL(StackTraceToLocal, JSArray, StackTrace) in MAKE_TO_LOCAL()
306 MAKE_OPEN_HANDLE(Array, JSArray)
313 MAKE_OPEN_HANDLE(StackTrace, JSArray)
Delements.h73 virtual MaybeObject* SetLength(JSArray* holder,
82 virtual MaybeObject* SetCapacityAndLength(JSArray* array,
Dfactory.cc624 Handle<Object> Factory::NewSyntaxError(const char* type, Handle<JSArray> args) { in NewSyntaxError()
652 Handle<JSArray> object = NewJSArrayWithElements(array); in NewError()
672 Handle<JSArray> args) { in NewError()
948 Handle<JSArray> Factory::NewJSArray(int capacity, in NewJSArray()
958 JSArray); in NewJSArray()
962 Handle<JSArray> Factory::NewJSArrayWithElements(Handle<FixedArrayBase> elements, in NewJSArrayWithElements()
970 JSArray); in NewJSArrayWithElements()
974 void Factory::SetElementsCapacityAndLength(Handle<JSArray> array, in SetElementsCapacityAndLength()
984 void Factory::SetContent(Handle<JSArray> array, in SetContent()
992 void Factory::EnsureCanContainHeapObjectElements(Handle<JSArray> array) { in EnsureCanContainHeapObjectElements()
[all …]
Dmessages.cc63 Handle<JSArray> stack_frames) { in MakeMessageObject()
70 Handle<JSArray> arguments_handle = in MakeMessageObject()
/external/webkit/Source/JavaScriptCore/runtime/
DRegExpMatchesArray.h27 class RegExpMatchesArray : public JSArray {
37 return JSArray::getOwnPropertySlot(exec, propertyName, slot); in getOwnPropertySlot()
44 return JSArray::getOwnPropertySlot(exec, propertyName, slot); in getOwnPropertySlot()
51 return JSArray::getOwnPropertyDescriptor(exec, propertyName, descriptor); in getOwnPropertyDescriptor()
58 JSArray::put(exec, propertyName, v, slot); in put()
65 JSArray::put(exec, propertyName, v); in put()
72 return JSArray::deleteProperty(exec, propertyName); in deleteProperty()
79 return JSArray::deleteProperty(exec, propertyName); in deleteProperty()
86 JSArray::getOwnPropertyNames(exec, arr, mode);
DJSArray.h60 class JSArray : public JSNonFinalObject {
64 JSArray(VPtrStealingHackType);
66 explicit JSArray(JSGlobalData&, Structure*);
67 JSArray(JSGlobalData&, Structure*, unsigned initialLength, ArrayCreationMode);
68 JSArray(JSGlobalData&, Structure*, const ArgList& initialValues);
69 virtual ~JSArray();
135 return OBJECT_OFFSETOF(JSArray, m_storage); in storageOffset()
140 return OBJECT_OFFSETOF(JSArray, m_vectorLength); in vectorLengthOffset()
172 JSArray* asArray(JSValue);
174 inline JSArray* asArray(JSCell* cell) in asArray()
[all …]
DJSArray.cpp41 ASSERT_CLASS_FITS_IN_CELL(JSArray);
95 const ClassInfo JSArray::s_info = {"Array", &JSNonFinalObject::s_info, 0, 0};
123 inline void JSArray::checkConsistency(ConsistencyCheckType) in checkConsistency()
129 JSArray::JSArray(VPtrStealingHackType) in JSArray() function in JSC::JSArray
134 JSArray::JSArray(JSGlobalData& globalData, Structure* structure) in JSArray() function in JSC::JSArray
151 JSArray::JSArray(JSGlobalData& globalData, Structure* structure, unsigned initialLength, ArrayCreat… in JSArray() function in JSC::JSArray
193 JSArray::JSArray(JSGlobalData& globalData, Structure* structure, const ArgList& list) in JSArray() function in JSC::JSArray
234 JSArray::~JSArray() in ~JSArray()
243 bool JSArray::getOwnPropertySlot(ExecState* exec, unsigned i, PropertySlot& slot) in getOwnPropertySlot()
272 bool JSArray::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slo… in getOwnPropertySlot()
[all …]
DArrayPrototype.cpp88 const ClassInfo ArrayPrototype::s_info = {"Array", &JSArray::s_info, 0, ExecState::arrayTable};
118 : JSArray(globalObject->globalData(), structure) in ArrayPrototype()
126 …return getStaticFunctionSlot<JSArray>(exec, ExecState::arrayTable(exec), this, propertyName, slot); in getOwnPropertySlot()
131 …return getStaticFunctionDescriptor<JSArray>(exec, ExecState::arrayTable(exec), this, propertyName,… in getOwnPropertyDescriptor()
170 if (!isRealArray && !thisValue.inherits(&JSArray::s_info)) in arrayProtoFuncToString()
172 JSArray* thisObj = asArray(thisValue); in arrayProtoFuncToString()
233 if (!thisValue.inherits(&JSArray::s_info)) in arrayProtoFuncToLocaleString()
287 JSArray* array = asArray(thisObj); in arrayProtoFuncJoin()
338 JSArray* arr = constructEmptyArray(exec); in arrayProtoFuncConcat()
344 if (curArg.inherits(&JSArray::s_info)) { in arrayProtoFuncConcat()
[all …]
DJSGlobalObject.h408 inline JSArray* constructEmptyArray(ExecState* exec) in constructEmptyArray()
410 … return new (exec) JSArray(exec->globalData(), exec->lexicalGlobalObject()->arrayStructure()); in constructEmptyArray()
413 inline JSArray* constructEmptyArray(ExecState* exec, JSGlobalObject* globalObject) in constructEmptyArray()
415 return new (exec) JSArray(exec->globalData(), globalObject->arrayStructure()); in constructEmptyArray()
418 inline JSArray* constructEmptyArray(ExecState* exec, unsigned initialLength) in constructEmptyArray()
420 …return new (exec) JSArray(exec->globalData(), exec->lexicalGlobalObject()->arrayStructure(), initi… in constructEmptyArray()
423 inline JSArray* constructArray(ExecState* exec, JSValue singleItemValue) in constructArray()
427 …return new (exec) JSArray(exec->globalData(), exec->lexicalGlobalObject()->arrayStructure(), value… in constructArray()
430 inline JSArray* constructArray(ExecState* exec, const ArgList& values) in constructArray()
432 …return new (exec) JSArray(exec->globalData(), exec->lexicalGlobalObject()->arrayStructure(), value… in constructArray()
DArrayConstructor.cpp62 …return new (exec) JSArray(exec->globalData(), globalObject->arrayStructure(), n, CreateInitialized… in constructArrayWithSizeQuirk()
66 return new (exec) JSArray(exec->globalData(), globalObject->arrayStructure(), args); in constructArrayWithSizeQuirk()
98 return JSValue::encode(jsBoolean(exec->argument(0).inherits(&JSArray::s_info))); in arrayConstructorIsArray()
DArrayPrototype.h29 class ArrayPrototype : public JSArray {
44 static const unsigned AnonymousSlotCount = JSArray::AnonymousSlotCount + 1;
DJSONObject.cpp211 if (m_replacer.asObject()->inherits(&JSArray::s_info)) { in Stringifier()
360 if (value.isUndefined() && !holder->inherits(&JSArray::s_info)) in appendStringifiedValue()
400 if (holder->inherits(&JSArray::s_info)) { in appendStringifiedValue()
471 , m_isArray(object->inherits(&JSArray::s_info)) in Holder()
643 LocalStack<JSArray, 16> arrayStack(m_exec->globalData()); in walk()
658 …SArray(&m_exec->globalData(), asObject(inValue)) || asObject(inValue)->inherits(&JSArray::s_info)); in walk()
662 JSArray* array = asArray(inValue); in walk()
675 JSArray* array = arrayStack.peek(); in walk()
701 JSArray* array = arrayStack.peek(); in walk()
719 …Array(&m_exec->globalData(), asObject(inValue)) && !asObject(inValue)->inherits(&JSArray::s_info)); in walk()
[all …]
DRegExpConstructor.cpp112 …: JSArray(exec->globalData(), exec->lexicalGlobalObject()->regExpMatchesArrayStructure(), data->la… in RegExpMatchesArray()
141JSArray::put(exec, i, jsSubstring(exec, d->lastInput, start, d->lastOvector()[2 * i + 1] - start)); in fillArrayInstance()
143 JSArray::put(exec, i, jsUndefined()); in fillArrayInstance()
147 JSArray::put(exec, exec->propertyNames().index, jsNumber(d->lastOvector()[0]), slot); in fillArrayInstance()
148 JSArray::put(exec, exec->propertyNames().input, jsString(exec, d->input), slot); in fillArrayInstance()
DJSGlobalData.cpp125 COMPILE_ASSERT(sizeof(JSArray) <= sizeof(storage), sizeof_JSArray_must_be_less_than_storage); in storeVPtrs()
126 JSCell* jsArray = new (storage) JSArray(JSArray::VPtrStealingHack); in storeVPtrs()
/external/webkit/Source/WebCore/bridge/
Druntime_array.h34 class RuntimeArray : public JSArray {
67 …StructureFlags = OverridesGetOwnPropertySlot | OverridesGetPropertyNames | JSArray::StructureFlags;
Druntime_array.cpp38 const ClassInfo RuntimeArray::s_info = { "RuntimeArray", &JSArray::s_info, 0, 0 };
43 : JSArray(exec->globalData(), deprecatedGetDOMStructure<RuntimeArray>(exec)) in RuntimeArray()
/external/webkit/Source/WebCore/bindings/js/
DSerializedScriptValue.cpp287 return isJSArray(&m_exec->globalData(), object) || object->inherits(&JSArray::s_info); in isArray()
315 bool startArray(JSArray* array) in startArray()
331 JSValue getSparseIndex(JSArray* array, unsigned propertyName, bool& hasIndex) in getSparseIndex()
335 if (array->JSArray::getOwnPropertySlot(m_exec, propertyName, slot)) { in getSparseIndex()
617 Vector<JSArray*, 16> inputArrayStack; in serialize()
630 JSArray* inArray = asArray(inValue); in serialize()
647 JSArray* array = inputArrayStack.last(); in serialize()
1028 void putProperty(JSArray* array, unsigned index, JSValue value) in putProperty()
1199 Vector<JSArray*, 16> outputArrayStack; in deserialize()
1214 JSArray* outArray = constructEmptyArray(m_exec, m_globalObject); in deserialize()
[all …]
/external/webkit/Source/JavaScriptCore/
DChangeLog-2011-02-1688 * runtime/JSArray.cpp:
89 (JSC::JSArray::JSArray):
90 * runtime/JSArray.h:
1782 * runtime/JSArray.h:
1980 * runtime/JSArray.cpp:
1981 (JSC::JSArray::getOwnPropertySlot):
2232 * runtime/JSArray.cpp:
2233 (JSC::JSArray::JSArray):
2234 (JSC::JSArray::getOwnPropertySlot):
2235 (JSC::JSArray::getOwnPropertyDescriptor):
[all …]
/external/v8/src/x64/
Dbuiltins-x64.cc977 const int initial_capacity = JSArray::kPreallocatedArrayElements; in AllocateEmptyJSArray()
984 int size = JSArray::kSize; in AllocateEmptyJSArray()
1002 __ Move(FieldOperand(result, JSArray::kPropertiesOffset), in AllocateEmptyJSArray()
1005 __ Move(FieldOperand(result, JSArray::kLengthOffset), Smi::FromInt(0)); in AllocateEmptyJSArray()
1010 __ Move(FieldOperand(result, JSArray::kElementsOffset), in AllocateEmptyJSArray()
1019 __ lea(scratch1, Operand(result, JSArray::kSize)); in AllocateEmptyJSArray()
1020 __ movq(FieldOperand(result, JSArray::kElementsOffset), scratch1); in AllocateEmptyJSArray()
1090 __ AllocateInNewSpace(JSArray::kSize + FixedArray::kHeaderSize, in AllocateJSArray()
1108 __ movq(FieldOperand(result, JSArray::kPropertiesOffset), elements_array); in AllocateJSArray()
1110 __ movq(FieldOperand(result, JSArray::kLengthOffset), array_size); in AllocateJSArray()
[all …]
/external/v8/src/ia32/
Dbuiltins-ia32.cc899 const int initial_capacity = JSArray::kPreallocatedArrayElements; in AllocateEmptyJSArray()
906 int size = JSArray::kSize; in AllocateEmptyJSArray()
924 __ mov(FieldOperand(result, JSArray::kPropertiesOffset), in AllocateEmptyJSArray()
927 __ mov(FieldOperand(result, JSArray::kLengthOffset), Immediate(0)); in AllocateEmptyJSArray()
932 __ mov(FieldOperand(result, JSArray::kElementsOffset), in AllocateEmptyJSArray()
941 __ lea(scratch1, Operand(result, JSArray::kSize)); in AllocateEmptyJSArray()
942 __ mov(FieldOperand(result, JSArray::kElementsOffset), scratch1); in AllocateEmptyJSArray()
1010 __ AllocateInNewSpace(JSArray::kSize + FixedArray::kHeaderSize, in AllocateJSArray()
1028 __ mov(FieldOperand(result, JSArray::kPropertiesOffset), elements_array); in AllocateJSArray()
1030 __ mov(FieldOperand(result, JSArray::kLengthOffset), array_size); in AllocateJSArray()
[all …]

12345