Searched defs:prototype (Results 1 - 25 of 68) sorted by relevance

123

/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-2596.js35 var prototype = [2.5, 2.5]; variable
37 array.__proto__ = prototype;
/external/chromium_org/third_party/WebKit/Source/bindings/v8/
H A DCustomElementBinding.cpp36 PassOwnPtr<CustomElementBinding> CustomElementBinding::create(v8::Isolate* isolate, v8::Handle<v8::Object> prototype, const WrapperTypeInfo* wrapperType) argument
38 return adoptPtr(new CustomElementBinding(isolate, prototype, wrapperType));
41 CustomElementBinding::CustomElementBinding(v8::Isolate* isolate, v8::Handle<v8::Object> prototype, const WrapperTypeInfo* wrapperType) argument
43 , m_prototype(isolate, prototype)
H A DCustomElementBinding.h44 static PassOwnPtr<CustomElementBinding> create(v8::Isolate*, v8::Handle<v8::Object> prototype, const WrapperTypeInfo*);
48 v8::Handle<v8::Object> prototype() { return m_prototype.newLocal(m_isolate); } function in class:WebCore::CustomElementBinding
52 CustomElementBinding(v8::Isolate*, v8::Handle<v8::Object> prototype, const WrapperTypeInfo*);
H A DV8DOMConfiguration.h46 // the instance or the prototype ObjectTemplate, based on |onPrototype|.
60 // on prototype ObjectTemplate.
75 static inline void installAttribute(v8::Handle<ObjectOrTemplate> instanceTemplate, v8::Handle<ObjectOrTemplate> prototype, const AttributeConfiguration& attribute, v8::Isolate* isolate) argument
85 (attribute.onPrototype ? prototype : instanceTemplate)->SetAccessor(v8::String::NewFromUtf8(isolate, attribute.name, v8::String::kInternalizedString),
103 // MethodConfiguration translates into calls to Set() on the prototype
H A DV8CustomElementLifecycleCallbacks.cpp53 PassRefPtr<V8CustomElementLifecycleCallbacks> V8CustomElementLifecycleCallbacks::create(ScriptState* scriptState, v8::Handle<v8::Object> prototype, v8::Handle<v8::Function> created, v8::Handle<v8::Function> attached, v8::Handle<v8::Function> detached, v8::Handle<v8::Function> attributeChanged) argument
56 // A given object can only be used as a Custom Element prototype
59 ASSERT(V8HiddenValue::getHiddenValue(isolate, prototype, V8HiddenValue::customElement##Name(isolate)).IsEmpty()); \
61 V8HiddenValue::setHiddenValue(isolate, prototype, V8HiddenValue::customElement##Name(isolate), Value);
66 return adoptRef(new V8CustomElementLifecycleCallbacks(scriptState, prototype, created, attached, detached, attributeChanged));
92 V8CustomElementLifecycleCallbacks::V8CustomElementLifecycleCallbacks(ScriptState* scriptState, v8::Handle<v8::Object> prototype, v8::Handle<v8::Function> created, v8::Handle<v8::Function> attached, v8::Handle<v8::Function> detached, v8::Handle<v8::Function> attributeChanged) argument
97 , m_prototype(scriptState->isolate(), prototype)
145 // Bindings retrieve the prototype when needed from per-context data.
168 // Swizzle the prototype of the existing wrapper. We don't need to
170 // prototype whe
171 v8::Handle<v8::Object> prototype = m_prototype.newLocal(isolate); local
[all...]
H A DV8DOMConfiguration.cpp38 void V8DOMConfiguration::installAttributes(v8::Handle<v8::ObjectTemplate> instanceTemplate, v8::Handle<v8::ObjectTemplate> prototype, const AttributeConfiguration* attributes, size_t attributeCount, v8::Isolate* isolate) argument
41 installAttribute(instanceTemplate, prototype, attributes[i], isolate);
44 void V8DOMConfiguration::installAccessors(v8::Handle<v8::ObjectTemplate> prototype, v8::Handle<v8::Signature> signature, const AccessorConfiguration* accessors, size_t accessorCount, v8::Isolate* isolate) argument
67 prototype->SetAccessorProperty(v8AtomicString(isolate, accessors[i].name), getter, setter, accessors[i].attribute, accessors[i].settings);
71 void V8DOMConfiguration::installConstants(v8::Handle<v8::FunctionTemplate> functionDescriptor, v8::Handle<v8::ObjectTemplate> prototype, const ConstantConfiguration* constants, size_t constantCount, v8::Isolate* isolate) argument
77 prototype->Set(constantName, v8::Integer::New(isolate, constant->value), static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontDelete));
81 void V8DOMConfiguration::installCallbacks(v8::Handle<v8::ObjectTemplate> prototype, v8::Handle<v8::Signature> signature, v8::PropertyAttribute attributes, const MethodConfiguration* callbacks, size_t callbackCount, v8::Isolate* isolate) argument
90 prototype->Set(v8AtomicString(isolate, callbacks[i].name), functionTemplate, attributes);
105 // Marks the prototype object as one of native-backed objects.
107 // This doesn't mark kinds "root" classes like Node, where setting this changes prototype chai
108 v8::Local<v8::ObjectTemplate> prototype = functionDescriptor->PrototypeTemplate(); local
[all...]
H A DV8WindowShell.cpp148 // instance as the prototype for that shadow object. The JS LocalDOMWindow
163 // prototype of the outer window. The inner window is the default
302 // Install the windowWrapper as the prototype of the innerGlobalObject.
306 // -- has prototype --> innerGlobalObject (Holds global variables, changes during navigation)
307 // -- has prototype --> LocalDOMWindow instance
308 // -- has prototype --> Window.prototype
309 // -- has prototype --> Object.prototype
311 // Note: Much of this prototype structur
455 v8::Handle<v8::Value> prototype = info.Holder()->GetPrototype(); local
[all...]
/external/dexmaker/src/dx/java/com/android/dx/dex/file/
H A DProtoIdItem.java28 * Representation of a method prototype reference inside a Dalvik file.
31 /** {@code non-null;} the wrapped prototype */
32 private final Prototype prototype; field in class:ProtoIdItem
34 /** {@code non-null;} the short-form of the prototype */
39 * prototype has no parameters
46 * @param prototype {@code non-null;} the constant for the prototype
48 public ProtoIdItem(Prototype prototype) { argument
49 if (prototype == null) {
50 throw new NullPointerException("prototype
67 makeShortForm(Prototype prototype) argument
[all...]
H A DProtoIdsSection.java28 * Proto (method prototype) identifiers list section of a
87 * @param prototype {@code non-null;} the prototype to intern
90 public ProtoIdItem intern(Prototype prototype) { argument
91 if (prototype == null) {
92 throw new NullPointerException("prototype == null");
97 ProtoIdItem result = protoIds.get(prototype);
100 result = new ProtoIdItem(prototype);
101 protoIds.put(prototype, result);
108 * Gets the index of the given prototype, whic
114 indexOf(Prototype prototype) argument
[all...]
/external/dexmaker/src/dx/java/com/android/dx/rop/cst/
H A DCstBaseMethodRef.java31 /** {@code non-null;} the raw prototype for this method */
32 private final Prototype prototype; field in class:CstBaseMethodRef
35 * {@code null-ok;} the prototype for this method taken to be an instance
50 this.prototype = Prototype.intern(descriptor);
55 * Gets the raw prototype of this method. This doesn't include a
58 * @return {@code non-null;} the method prototype
61 return prototype;
65 * Gets the prototype of this method as either a
68 * prototype. In the case of an instance method, this has an
73 * @return {@code non-null;} the method prototype
[all...]
/external/ltrace/
H A Dprototype.h30 /* Function prototype. */
31 struct prototype { struct
39 /* Initialize a prototype PROTO. The name will be NAME, and the
42 void prototype_init(struct prototype *proto);
46 void prototype_destroy(struct prototype *proto);
50 int prototype_push_param(struct prototype *proto, struct param *param);
52 /* Return number of parameters of prototype. */
53 size_t prototype_num_params(struct prototype *proto);
57 void prototype_destroy_nth_param(struct prototype *proto, size_t n);
61 struct param *prototype_get_nth_param(struct prototype *prot
[all...]
/external/chromium_org/v8/test/webkit/fast/js/
H A DObject-getOwnPropertyNames.js38 "new Function()": "['arguments', 'caller', 'length', 'name', 'prototype']",
39 "(function(){var x=new Function();x.__proto__=[1,2,3];return x;})()": "['arguments', 'caller', 'length', 'name', 'prototype']",
74 "Object": "['create', 'defineProperties', 'defineProperty', 'freeze', 'getOwnPropertyDescriptor', 'getOwnPropertyNames', 'getPrototypeOf', 'isExtensible', 'isFrozen', 'isSealed', 'keys', 'length', 'name', 'preventExtensions', 'prototype', 'seal', 'setPrototypeOf']",
75 "Object.prototype": "['__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', '__proto__', 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf']",
76 "Function": "['length', 'name', 'prototype']",
77 "Function.prototype": "['apply', 'bind', 'call', 'constructor', 'length', 'name', 'toString']",
78 "Array": "['isArray', 'length', 'name', 'prototype']",
79 "Array.prototype": "['concat', 'constructor', 'every', 'filter', 'forEach', 'indexOf', 'join', 'lastIndexOf', 'length', 'map', 'pop', 'push', 'reduce', 'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'splice', 'toLocaleString', 'toString', 'unshift']",
80 "String": "['fromCharCode', 'length', 'name', 'prototype']",
81 "String.prototype"
[all...]
/external/dexmaker/src/main/java/com/google/dexmaker/
H A DMethodId.java96 Prototype prototype(boolean includeThis) { method in class:MethodId
/external/chromium_org/third_party/protobuf/src/google/protobuf/
H A Dextension_set_unittest.cc541 unittest::ForeignMessage prototype; local
542 prototype.set_c(2);
545 CopyFrom(prototype);
548 (16 - kMinRepeatedFieldAllocationSize) * prototype.SpaceUsed();
717 const Message* prototype = local
719 EXPECT_EQ(prototype, &sub_message);
H A Ddynamic_message.cc54 // refers to the "default" copy of the class as the "prototype".
180 // important (the prototype must be deleted *before* the offsets).
183 // Don't use a scoped_ptr to hold the prototype: the destructor for
184 // DynamicMessage needs to know whether it is the prototype, and does so by
187 const DynamicMessage* prototype; member in struct:google::protobuf::DynamicMessage::TypeInfo
189 TypeInfo() : prototype(NULL) {}
192 delete prototype;
199 // Called on the prototype after construction to initialize message fields.
215 return type_info_->prototype == this ||
216 // If type_info_->prototype i
548 DynamicMessage* prototype = new(base) DynamicMessage(type_info); local
[all...]
H A Dextension_set_heavy.cc146 const MessageLite* prototype = local
149 extension->message_value = prototype->New();
203 const MessageLite* prototype; local
205 prototype = factory->GetPrototype(descriptor->message_type());
206 GOOGLE_CHECK(prototype != NULL);
208 prototype = &extension->repeated_message_value->Get(0);
210 result = prototype->New();
H A Dmessage.cc241 void RegisterType(const Descriptor* descriptor, const Message* prototype);
285 const Message* prototype) {
294 if (!InsertIfNotPresent(&type_map_, descriptor, prototype)) {
352 const Descriptor* descriptor, const Message* prototype) {
353 GeneratedMessageFactory::singleton()->RegisterType(descriptor, prototype);
284 RegisterType(const Descriptor* descriptor, const Message* prototype) argument
351 InternalRegisterGeneratedMessage( const Descriptor* descriptor, const Message* prototype) argument
/external/guava/guava/src/com/google/common/base/
H A DJoiner.java84 private Joiner(Joiner prototype) { argument
85 this.separator = prototype.separator;
/external/protobuf/src/google/protobuf/
H A Dextension_set_unittest.cc462 unittest::ForeignMessage prototype; local
463 prototype.set_c(2);
466 CopyFrom(prototype);
468 min_expected_size += 16 * prototype.SpaceUsed();
633 const Message* prototype = local
635 EXPECT_EQ(prototype, &sub_message);
H A Ddynamic_message.cc54 // refers to the "default" copy of the class as the "prototype".
178 // important (the prototype must be deleted *before* the offsets).
181 scoped_ptr<const DynamicMessage> prototype; member in struct:google::protobuf::DynamicMessage::TypeInfo
187 // Called on the prototype after construction to initialize message fields.
203 return type_info_->prototype == this ||
204 // If type_info_->prototype is NULL, then we must be constructing
205 // the prototype now, which means we must be the prototype.
206 type_info_->prototype == NULL;
282 type_info_->prototype
535 DynamicMessage* prototype = new(base) DynamicMessage(type_info); local
[all...]
H A Dextension_set_heavy.cc133 const MessageLite* prototype = local
135 GOOGLE_CHECK(prototype != NULL);
136 extension->message_value = prototype->New();
162 const MessageLite* prototype; local
164 prototype = factory->GetPrototype(descriptor->message_type());
165 GOOGLE_CHECK(prototype != NULL);
167 prototype = &extension->repeated_message_value->Get(0);
169 result = prototype->New();
H A Dmessage.cc203 void RegisterType(const Descriptor* descriptor, const Message* prototype);
247 const Message* prototype) {
256 if (!InsertIfNotPresent(&type_map_, descriptor, prototype)) {
313 const Descriptor* descriptor, const Message* prototype) {
314 GeneratedMessageFactory::singleton()->RegisterType(descriptor, prototype);
246 RegisterType(const Descriptor* descriptor, const Message* prototype) argument
312 InternalRegisterGeneratedMessage( const Descriptor* descriptor, const Message* prototype) argument
/external/chromium_org/third_party/protobuf/java/src/main/java/com/google/protobuf/
H A DDynamicMessage.java134 * {@code prototype}, and initialize it with {@code prototype}'s contents.
136 public static Builder newBuilder(Message prototype) { argument
137 return new Builder(prototype.getDescriptorForType()).mergeFrom(prototype);
/external/protobuf/java/src/main/java/com/google/protobuf/
H A DDynamicMessage.java133 * {@code prototype}, and initialize it with {@code prototype}'s contents.
135 public static Builder newBuilder(Message prototype) { argument
136 return new Builder(prototype.getDescriptorForType()).mergeFrom(prototype);
/external/chromium_org/third_party/icu/source/tools/makeconv/
H A Dmakeconv.c438 const UConverterStaticData *prototype; local
514 prototype=ucnv_converterStaticData[staticData->conversionType];
515 if(prototype!=NULL) {
517 uprv_strcpy((char *)staticData->name, prototype->name);
521 staticData->codepage=prototype->codepage;
525 staticData->platform=prototype->platform;
529 staticData->minBytesPerChar=prototype->minBytesPerChar;
533 staticData->maxBytesPerChar=prototype->maxBytesPerChar;
537 staticData->subCharLen=prototype->subCharLen;
538 if(prototype
[all...]

Completed in 1198 milliseconds

123