| Index: src/mirror-debugger.js
|
| ===================================================================
|
| --- src/mirror-debugger.js (revision 6552)
|
| +++ src/mirror-debugger.js (working copy)
|
| @@ -411,7 +411,7 @@
|
|
|
| Mirror.prototype.toText = function() {
|
| // Simpel to text which is used when on specialization in subclass.
|
| - return "#<" + builtins.GetInstanceName(this.constructor.name) + ">";
|
| + return "#<" + this.constructor.name + ">";
|
| }
|
|
|
|
|
| @@ -425,7 +425,7 @@
|
| * @extends Mirror
|
| */
|
| function ValueMirror(type, value, transient) {
|
| - Mirror.call(this, type);
|
| + %_CallFunction(this, type, Mirror);
|
| this.value_ = value;
|
| if (!transient) {
|
| this.allocateHandle_();
|
| @@ -470,7 +470,7 @@
|
| * @extends ValueMirror
|
| */
|
| function UndefinedMirror() {
|
| - ValueMirror.call(this, UNDEFINED_TYPE, void 0);
|
| + %_CallFunction(this, UNDEFINED_TYPE, void 0, ValueMirror);
|
| }
|
| inherits(UndefinedMirror, ValueMirror);
|
|
|
| @@ -486,7 +486,7 @@
|
| * @extends ValueMirror
|
| */
|
| function NullMirror() {
|
| - ValueMirror.call(this, NULL_TYPE, null);
|
| + %_CallFunction(this, NULL_TYPE, null, ValueMirror);
|
| }
|
| inherits(NullMirror, ValueMirror);
|
|
|
| @@ -503,7 +503,7 @@
|
| * @extends ValueMirror
|
| */
|
| function BooleanMirror(value) {
|
| - ValueMirror.call(this, BOOLEAN_TYPE, value);
|
| + %_CallFunction(this, BOOLEAN_TYPE, value, ValueMirror);
|
| }
|
| inherits(BooleanMirror, ValueMirror);
|
|
|
| @@ -520,7 +520,7 @@
|
| * @extends ValueMirror
|
| */
|
| function NumberMirror(value) {
|
| - ValueMirror.call(this, NUMBER_TYPE, value);
|
| + %_CallFunction(this, NUMBER_TYPE, value, ValueMirror);
|
| }
|
| inherits(NumberMirror, ValueMirror);
|
|
|
| @@ -537,7 +537,7 @@
|
| * @extends ValueMirror
|
| */
|
| function StringMirror(value) {
|
| - ValueMirror.call(this, STRING_TYPE, value);
|
| + %_CallFunction(this, STRING_TYPE, value, ValueMirror);
|
| }
|
| inherits(StringMirror, ValueMirror);
|
|
|
| @@ -568,7 +568,7 @@
|
| * @extends ValueMirror
|
| */
|
| function ObjectMirror(value, type, transient) {
|
| - ValueMirror.call(this, type || OBJECT_TYPE, value, transient);
|
| + %_CallFunction(this, type || OBJECT_TYPE, value, transient, ValueMirror);
|
| }
|
| inherits(ObjectMirror, ValueMirror);
|
|
|
| @@ -767,7 +767,7 @@
|
| name = this.className();
|
| }
|
| }
|
| - return '#<' + builtins.GetInstanceName(name) + '>';
|
| + return '#<' + name + '>';
|
| };
|
|
|
|
|
| @@ -778,7 +778,7 @@
|
| * @extends ObjectMirror
|
| */
|
| function FunctionMirror(value) {
|
| - ObjectMirror.call(this, value, FUNCTION_TYPE);
|
| + %_CallFunction(this, value, FUNCTION_TYPE, ObjectMirror);
|
| this.resolved_ = true;
|
| }
|
| inherits(FunctionMirror, ObjectMirror);
|
| @@ -908,7 +908,7 @@
|
| function UnresolvedFunctionMirror(value) {
|
| // Construct this using the ValueMirror as an unresolved function is not a
|
| // real object but just a string.
|
| - ValueMirror.call(this, FUNCTION_TYPE, value);
|
| + %_CallFunction(this, FUNCTION_TYPE, value, ValueMirror);
|
| this.propertyCount_ = 0;
|
| this.elementCount_ = 0;
|
| this.resolved_ = false;
|
| @@ -958,7 +958,7 @@
|
| * @extends ObjectMirror
|
| */
|
| function ArrayMirror(value) {
|
| - ObjectMirror.call(this, value);
|
| + %_CallFunction(this, value, ObjectMirror);
|
| }
|
| inherits(ArrayMirror, ObjectMirror);
|
|
|
| @@ -994,7 +994,7 @@
|
| * @extends ObjectMirror
|
| */
|
| function DateMirror(value) {
|
| - ObjectMirror.call(this, value);
|
| + %_CallFunction(this, value, ObjectMirror);
|
| }
|
| inherits(DateMirror, ObjectMirror);
|
|
|
| @@ -1012,7 +1012,7 @@
|
| * @extends ObjectMirror
|
| */
|
| function RegExpMirror(value) {
|
| - ObjectMirror.call(this, value, REGEXP_TYPE);
|
| + %_CallFunction(this, value, REGEXP_TYPE, ObjectMirror);
|
| }
|
| inherits(RegExpMirror, ObjectMirror);
|
|
|
| @@ -1066,7 +1066,7 @@
|
| * @extends ObjectMirror
|
| */
|
| function ErrorMirror(value) {
|
| - ObjectMirror.call(this, value, ERROR_TYPE);
|
| + %_CallFunction(this, value, ERROR_TYPE, ObjectMirror);
|
| }
|
| inherits(ErrorMirror, ObjectMirror);
|
|
|
| @@ -1084,9 +1084,9 @@
|
| // Use the same text representation as in messages.js.
|
| var text;
|
| try {
|
| - str = builtins.ToDetailString(this.value_);
|
| + str = %_CallFunction(this.value_, builtins.errorToString);
|
| } catch (e) {
|
| - str = '#<an Error>';
|
| + str = '#<Error>';
|
| }
|
| return str;
|
| }
|
| @@ -1101,7 +1101,7 @@
|
| * @extends Mirror
|
| */
|
| function PropertyMirror(mirror, name, details) {
|
| - Mirror.call(this, PROPERTY_TYPE);
|
| + %_CallFunction(this, PROPERTY_TYPE, Mirror);
|
| this.mirror_ = mirror;
|
| this.name_ = name;
|
| this.value_ = details[0];
|
| @@ -1397,7 +1397,7 @@
|
| * @extends Mirror
|
| */
|
| function FrameMirror(break_id, index) {
|
| - Mirror.call(this, FRAME_TYPE);
|
| + %_CallFunction(this, FRAME_TYPE, Mirror);
|
| this.break_id_ = break_id;
|
| this.index_ = index;
|
| this.details_ = new FrameDetails(break_id, index);
|
| @@ -1712,7 +1712,7 @@
|
| * @extends Mirror
|
| */
|
| function ScopeMirror(frame, index) {
|
| - Mirror.call(this, SCOPE_TYPE);
|
| + %_CallFunction(this, SCOPE_TYPE, Mirror);
|
| this.frame_index_ = frame.index_;
|
| this.scope_index_ = index;
|
| this.details_ = new ScopeDetails(frame, index);
|
| @@ -1752,7 +1752,7 @@
|
| * @extends Mirror
|
| */
|
| function ScriptMirror(script) {
|
| - Mirror.call(this, SCRIPT_TYPE);
|
| + %_CallFunction(this, SCRIPT_TYPE, Mirror);
|
| this.script_ = script;
|
| this.context_ = new ContextMirror(script.context_data);
|
| this.allocateHandle_();
|
| @@ -1868,7 +1868,7 @@
|
| * @extends Mirror
|
| */
|
| function ContextMirror(data) {
|
| - Mirror.call(this, CONTEXT_TYPE);
|
| + %_CallFunction(this, CONTEXT_TYPE, Mirror);
|
| this.data_ = data;
|
| this.allocateHandle_();
|
| }
|
|
|