Revision: 22861
Author: [email protected]
Date: Tue Aug 5 11:27:44 2014 UTC
Log: Removed GetConstructor from the API.
Instead either get the "constructor" property stored in the prototype, or
keep a side-table.
LOG=y
[email protected]
Review URL: https://codereview.chromium.org/438303003
http://code.google.com/p/v8/source/detail?r=22861
Modified:
/branches/bleeding_edge/include/v8.h
/branches/bleeding_edge/src/api.cc
=======================================
--- /branches/bleeding_edge/include/v8.h Wed Jul 30 13:54:45 2014 UTC
+++ /branches/bleeding_edge/include/v8.h Tue Aug 5 11:27:44 2014 UTC
@@ -2225,12 +2225,6 @@
*/
Local<String> ObjectProtoToString();
- /**
- * Returns the function invoked as a constructor for this object.
- * May be the null value.
- */
- Local<Value> GetConstructor();
-
/**
* Returns the name of the function invoked as a constructor for this
object.
*/
=======================================
--- /branches/bleeding_edge/src/api.cc Mon Aug 4 11:34:54 2014 UTC
+++ /branches/bleeding_edge/src/api.cc Tue Aug 5 11:27:44 2014 UTC
@@ -3318,17 +3318,6 @@
}
}
}
-
-
-Local<Value> v8::Object::GetConstructor() {
- i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
- ON_BAILOUT(isolate, "v8::Object::GetConstructor()",
- return Local<v8::Function>());
- ENTER_V8(isolate);
- i::Handle<i::JSObject> self = Utils::OpenHandle(this);
- i::Handle<i::Object> constructor(self->GetConstructor(), isolate);
- return Utils::ToLocal(constructor);
-}
Local<String> v8::Object::GetConstructorName() {
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.