Searched defs:prototype (Results 1 - 25 of 73) 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/core/v8/
H A DCustomElementBinding.cpp36 PassOwnPtr<CustomElementBinding> CustomElementBinding::create(v8::Isolate* isolate, v8::Handle<v8::Object> prototype) argument
38 return adoptPtr(new CustomElementBinding(isolate, prototype));
41 CustomElementBinding::CustomElementBinding(v8::Isolate* isolate, v8::Handle<v8::Object> prototype) argument
43 , m_prototype(isolate, prototype)
H A DCustomElementBinding.h42 static PassOwnPtr<CustomElementBinding> create(v8::Isolate*, v8::Handle<v8::Object> prototype);
46 v8::Handle<v8::Object> prototype() { return m_prototype.newLocal(m_isolate); } function in class:blink::CustomElementBinding
49 CustomElementBinding(v8::Isolate*, v8::Handle<v8::Object> 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.cpp37 void V8DOMConfiguration::installAttributes(v8::Handle<v8::ObjectTemplate> instanceTemplate, v8::Handle<v8::ObjectTemplate> prototype, const AttributeConfiguration* attributes, size_t attributeCount, v8::Isolate* isolate) argument
40 installAttribute(instanceTemplate, prototype, attributes[i], isolate);
43 void V8DOMConfiguration::installAccessors(v8::Handle<v8::ObjectTemplate> prototype, v8::Handle<v8::Signature> signature, const AccessorConfiguration* accessors, size_t accessorCount, v8::Isolate* isolate) argument
69 prototype->SetAccessorProperty(v8AtomicString(isolate, accessors[i].name), getter, setter, accessors[i].attribute, accessors[i].settings);
82 void V8DOMConfiguration::installConstants(v8::Handle<v8::FunctionTemplate> functionDescriptor, v8::Handle<v8::ObjectTemplate> prototype, const ConstantConfiguration* constants, size_t constantCount, v8::Isolate* isolate) argument
92 prototype->Set(constantName, v8::Integer::New(isolate, constant->ivalue), static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontDelete));
96 prototype->Set(constantName, v8::Integer::NewFromUnsigned(isolate, constant->ivalue), static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontDelete));
101 prototype->Set(constantName, v8::Number::New(isolate, constant->dvalue), static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontDelete));
105 prototype->Set(constantName, v8::String::NewFromUtf8(isolate, constant->svalue), static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontDelete));
113 void V8DOMConfiguration::installConstant(v8::Handle<v8::FunctionTemplate> functionDescriptor, v8::Handle<v8::ObjectTemplate> prototype, cons argument
120 installMethods(v8::Handle<v8::ObjectTemplate> prototype, v8::Handle<v8::Signature> signature, v8::PropertyAttribute attributes, const MethodConfiguration* callbacks, size_t callbackCount, v8::Isolate* isolate) argument
147 v8::Local<v8::ObjectTemplate> prototype = functionDescriptor->PrototypeTemplate(); local
[all...]
H A DV8DOMConfiguration.h57 // the instance or the prototype ObjectTemplate, based on |instanceOrPrototypeConfiguration|.
72 // on prototype ObjectTemplate.
88 static inline void installAttribute(v8::Handle<ObjectOrTemplate> instanceTemplate, v8::Handle<ObjectOrTemplate> prototype, const AttributeConfiguration& attribute, v8::Isolate* isolate) argument
102 (attribute.instanceOrPrototypeConfiguration == OnPrototype ? prototype : instanceTemplate)->SetAccessor(v8AtomicString(isolate, attribute.name),
H A DWindowProxy.cpp144 // instance as the prototype for that shadow object. The JS LocalDOMWindow
159 // prototype of the outer window. The inner window is the default
291 // Install the windowWrapper as the prototype of the innerGlobalObject.
295 // -- has prototype --> innerGlobalObject (Holds global variables, changes during navigation)
296 // -- has prototype --> LocalDOMWindow instance
297 // -- has prototype --> Window.prototype
298 // -- has prototype --> Object.prototype
300 // Note: Much of this prototype structur
448 v8::Handle<v8::Value> prototype = info.Holder()->GetPrototype(); local
[all...]
/external/chromium_org/v8/src/ic/
H A Dcall-optimization.cc31 if (!object_map->prototype()->IsJSObject()) break;
32 Handle<JSObject> prototype(JSObject::cast(object_map->prototype()));
33 if (!prototype->map()->is_hidden_prototype()) break;
34 object_map = handle(prototype->map());
37 return prototype;
59 // Check if holder is in prototype chain of api_holder.
63 Object* prototype = object->map()->prototype(); local
64 if (!prototype
[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": "['arguments', 'caller', 'create', 'defineProperties', 'defineProperty', 'deliverChangeRecords', 'freeze', 'getNotifier', 'getOwnPropertyDescriptor', 'getOwnPropertyNames', 'getOwnPropertySymbols', 'getPrototypeOf', 'is', 'isExtensible', 'isFrozen', 'isSealed', 'keys', 'length', 'name', 'observe', 'preventExtensions', 'prototype', 'seal', 'setPrototypeOf', 'unobserve']",
75 "Object.prototype": "['__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', '__proto__', 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf']",
76 "Function": "['arguments', 'caller', 'length', 'name', 'prototype']",
77 "Function.prototype": "['apply', 'arguments', 'bind', 'call', 'caller', 'constructor', 'length', 'name', 'toString']",
78 "Array": "['arguments', 'caller', 'isArray', 'length', 'name', 'observe', 'prototype', 'unobserve']",
79 "Array.prototype": "['concat', 'constructor', 'entries', 'every', 'filter', 'forEach', 'indexOf', 'join', 'keys', 'lastIndexOf', 'length', 'map', 'pop', 'push', 'reduce', 'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'splice', 'toLocaleString', 'toString', 'unshift']",
80 "String": "['arguments', 'caller', '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();
/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/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/closure_compiler/runner/src/com/google/javascript/jscomp/
H A DChromePass.java120 if (callee.matchesQualifiedName(CR_DEFINE_PROPERTY) && !target.endsWith(".prototype")) {
121 target += ".prototype";
165 String prototype = className + ".prototype";
183 if (isAssignmentToPrototype(child, prototype)) {
190 } else if (isAssignmentToPrototypeMethod(child, prototype)) {
196 } else if (isDummyPrototypeMethodDeclaration(child, prototype)) {
212 private boolean isAssignmentToPrototype(Node node, String prototype) { argument
215 assignNode.getFirstChild().getQualifiedName().equals(prototype);
218 private boolean isAssignmentToPrototypeMethod(Node node, String prototype) { argument
224 isDummyPrototypeMethodDeclaration(Node node, String prototype) argument
[all...]
/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 790 milliseconds

123