• Home
  • Raw
  • Download

Lines Matching refs:mirror

131   var mirror;
136 mirror = mirror_cache_[id];
137 if (mirror.value() === value) {
138 return mirror;
141 if (mirror.isNumber() && IsNaN(mirror.value()) &&
143 return mirror;
149 mirror = new UndefinedMirror();
151 mirror = new NullMirror();
153 mirror = new BooleanMirror(value);
155 mirror = new NumberMirror(value);
157 mirror = new StringMirror(value);
159 mirror = new SymbolMirror(value);
161 mirror = new ArrayMirror(value);
163 mirror = new DateMirror(value);
165 mirror = new FunctionMirror(value);
167 mirror = new RegExpMirror(value);
169 mirror = new ErrorMirror(value);
171 mirror = new ScriptMirror(value);
173 mirror = new MapMirror(value);
175 mirror = new SetMirror(value);
177 mirror = new IteratorMirror(value);
179 mirror = new PromiseMirror(value);
181 mirror = new GeneratorMirror(value);
183 mirror = new ObjectMirror(value, MirrorType.OBJECT_TYPE, opt_transient);
186 if (mirror_cache_enabled_) mirror_cache_[mirror.handle()] = mirror;
187 return mirror;
1461 function PropertyMirror(mirror, name, details) { argument
1463 this.mirror_ = mirror;
2471 JSONProtocolSerializer.prototype.serializeReference = function(mirror) { argument
2472 return this.serialize_(mirror, true, true);
2483 JSONProtocolSerializer.prototype.serializeValue = function(mirror) { argument
2484 var json = this.serialize_(mirror, false, true);
2530 JSONProtocolSerializer.prototype.add_ = function(mirror) { argument
2533 if (this.mirrors_[i] === mirror) {
2539 this.mirrors_.push(mirror);
2550 function(mirror) { argument
2552 o.ref = mirror.handle();
2553 o.type = mirror.type();
2554 switch (mirror.type()) {
2559 o.value = mirror.value();
2562 o.value = mirror.getTruncatedValue(this.maxStringLength_());
2565 o.description = mirror.description();
2568 o.name = mirror.name();
2569 o.inferredName = mirror.inferredName();
2570 if (mirror.script()) {
2571 o.scriptId = mirror.script().id();
2576 o.value = mirror.toText();
2579 o.className = mirror.className();
2586 JSONProtocolSerializer.prototype.serialize_ = function(mirror, reference, argument
2591 (mirror.isValue() || mirror.isScript() || mirror.isContext())) {
2592 if (this.inlineRefs_() && mirror.isValue()) {
2593 return this.serializeReferenceWithDisplayData_(mirror);
2595 this.add_(mirror);
2596 return {'ref' : mirror.handle()};
2604 if (mirror.isValue() || mirror.isScript() || mirror.isContext()) {
2605 content.handle = mirror.handle();
2609 content.type = mirror.type();
2611 switch (mirror.type()) {
2619 content.value = mirror.value();
2624 content.value = NumberToJSON_(mirror.value());
2630 mirror.length() > this.maxStringLength_()) {
2631 var str = mirror.getTruncatedValue(this.maxStringLength_());
2636 content.value = mirror.value();
2638 content.length = mirror.length();
2642 content.description = mirror.description();
2652 this.serializeObject_(mirror, content, details);
2663 this.serializeFrame_(mirror, content);
2668 this.serializeScope_(mirror, content);
2673 if (mirror.name()) {
2674 content.name = mirror.name();
2676 content.id = mirror.id();
2677 content.lineOffset = mirror.lineOffset();
2678 content.columnOffset = mirror.columnOffset();
2679 content.lineCount = mirror.lineCount();
2680 if (mirror.data()) {
2681 content.data = mirror.data();
2684 content.source = mirror.source();
2686 var sourceStart = mirror.source().substring(0, 80);
2689 content.sourceLength = mirror.source().length;
2690 content.scriptType = mirror.scriptType();
2691 content.compilationType = mirror.compilationType();
2694 if (mirror.compilationType() == 1 &&
2695 mirror.evalFromScript()) {
2697 this.serializeReference(mirror.evalFromScript());
2698 var evalFromLocation = mirror.evalFromLocation();
2703 if (mirror.evalFromFunctionName()) {
2704 content.evalFromFunctionName = mirror.evalFromFunctionName();
2707 if (mirror.context()) {
2708 content.context = this.serializeReference(mirror.context());
2713 content.data = mirror.data();
2718 content.text = mirror.toText();
2737 JSONProtocolSerializer.prototype.serializeObject_ = function(mirror, content, argument
2740 content.className = mirror.className();
2742 this.serializeReference(mirror.constructorFunction());
2743 content.protoObject = this.serializeReference(mirror.protoObject());
2744 content.prototypeObject = this.serializeReference(mirror.prototypeObject());
2747 if (mirror.hasNamedInterceptor()) {
2750 if (mirror.hasIndexedInterceptor()) {
2754 if (mirror.isFunction()) {
2756 content.name = mirror.name();
2757 if (!IS_UNDEFINED(mirror.inferredName())) {
2758 content.inferredName = mirror.inferredName();
2760 content.resolved = mirror.resolved();
2761 if (mirror.resolved()) {
2762 content.source = mirror.source();
2764 if (mirror.script()) {
2765 content.script = this.serializeReference(mirror.script());
2766 content.scriptId = mirror.script().id();
2768 serializeLocationFields(mirror.sourceLocation(), content);
2772 for (var i = 0; i < mirror.scopeCount(); i++) {
2773 var scope = mirror.scope(i);
2781 if (mirror.isGenerator()) {
2785 content.status = mirror.status();
2787 content.func = this.serializeReference(mirror.func())
2788 content.receiver = this.serializeReference(mirror.receiver())
2791 serializeLocationFields(mirror.sourceLocation(), content);
2796 if (mirror.isDate()) {
2798 content.value = mirror.value();
2801 if (mirror.isPromise()) {
2803 content.status = mirror.status();
2804 content.promiseValue = this.serializeReference(mirror.promiseValue());
2808 var properties = mirror.propertyNames();
2810 var propertyMirror = mirror.property(properties[i]);
2818 var internalProperties = mirror.internalProperties();
2917 JSONProtocolSerializer.prototype.serializeFrame_ = function(mirror, content) { argument
2918 content.index = mirror.index();
2919 content.receiver = this.serializeReference(mirror.receiver());
2920 var func = mirror.func();
2926 content.constructCall = mirror.isConstructCall();
2927 content.atReturn = mirror.isAtReturn();
2928 if (mirror.isAtReturn()) {
2929 content.returnValue = this.serializeReference(mirror.returnValue());
2931 content.debuggerFrame = mirror.isDebuggerFrame();
2932 var x = new GlobalArray(mirror.argumentCount());
2933 for (var i = 0; i < mirror.argumentCount(); i++) {
2935 var argument_name = mirror.argumentName(i);
2939 arg.value = this.serializeReference(mirror.argumentValue(i));
2943 var x = new GlobalArray(mirror.localCount());
2944 for (var i = 0; i < mirror.localCount(); i++) {
2946 local.name = mirror.localName(i);
2947 local.value = this.serializeReference(mirror.localValue(i));
2951 serializeLocationFields(mirror.sourceLocation(), content);
2952 var source_line_text = mirror.sourceLineText();
2958 for (var i = 0; i < mirror.scopeCount(); i++) {
2959 var scope = mirror.scope(i);
2968 JSONProtocolSerializer.prototype.serializeScope_ = function(mirror, content) { argument
2969 content.index = mirror.scopeIndex();
2970 content.frameIndex = mirror.frameIndex();
2971 content.type = mirror.scopeType();
2973 this.serializeValue(mirror.scopeObject()) :
2974 this.serializeReference(mirror.scopeObject());