Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: src/mirror-delay.js

Issue 6234: Refactored the logic for entering the debugger into one abstraction EnterDebu... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/debug.cc ('k') | src/runtime.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after
1601 1601
1602 FrameMirror.prototype.invocationText = function() { 1602 FrameMirror.prototype.invocationText = function() {
1603 // Format frame invoaction (receiver, function and arguments). 1603 // Format frame invoaction (receiver, function and arguments).
1604 var result = ''; 1604 var result = '';
1605 var func = this.func(); 1605 var func = this.func();
1606 var receiver = this.receiver(); 1606 var receiver = this.receiver();
1607 if (this.isConstructCall()) { 1607 if (this.isConstructCall()) {
1608 // For constructor frames display new followed by the function name. 1608 // For constructor frames display new followed by the function name.
1609 result += 'new '; 1609 result += 'new ';
1610 result += func.name() ? func.name() : '[anonymous]'; 1610 result += func.name() ? func.name() : '[anonymous]';
1611 } else if (this.isDebuggerFrame()) { 1611 } else if (this.isDebuggerFrame()) {
1612 result += '[debugger]'; 1612 result += '[debugger]';
1613 } else { 1613 } else {
1614 // If the receiver has a className which is 'global' don't display it. 1614 // If the receiver has a className which is 'global' don't display it.
1615 var display_receiver = !receiver.className || receiver.className() != 'globa l'; 1615 var display_receiver = !receiver.className || receiver.className() != 'globa l';
1616 if (display_receiver) { 1616 if (display_receiver) {
1617 result += receiver.toText(); 1617 result += receiver.toText();
1618 } 1618 }
1619 // Try to find the function as a property in the receiver. Include the 1619 // Try to find the function as a property in the receiver. Include the
1620 // prototype chain in the lookup. 1620 // prototype chain in the lookup.
1621 var property = new UndefinedMirror(); 1621 var property = new UndefinedMirror();
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1915 /** 1915 /**
1916 * Convert a Date to ISO 8601 format. To avoid depending on the Date object 1916 * Convert a Date to ISO 8601 format. To avoid depending on the Date object
1917 * this method calls the functions in date.js directly and not through the 1917 * this method calls the functions in date.js directly and not through the
1918 * value. 1918 * value.
1919 * @param {Date} value The Date value to format as JSON 1919 * @param {Date} value The Date value to format as JSON
1920 * @return {string} JSON formatted Date value 1920 * @return {string} JSON formatted Date value
1921 */ 1921 */
1922 function DateToJSON_(value) { 1922 function DateToJSON_(value) {
1923 return '"' + DateToISO8601_(value) + '"'; 1923 return '"' + DateToISO8601_(value) + '"';
1924 }; 1924 };
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698