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

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

Issue 18752: Added a lookup request to the debugger protocol to retreive an object from it... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 11 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-delay.js ('k') | test/mjsunit/debug-handle.js » ('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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } else { 88 } else {
89 mirror = new ObjectMirror(value); 89 mirror = new ObjectMirror(value);
90 } 90 }
91 91
92 mirror_cache_[mirror.handle()] = mirror; 92 mirror_cache_[mirror.handle()] = mirror;
93 return mirror; 93 return mirror;
94 } 94 }
95 95
96 96
97 /** 97 /**
98 * Returns the mirror for a specified mirror handle.
99 *
100 * @param {number} handle the handle to find the mirror for
101 * @returns {Mirror or undefiend} the mirror with the requested handle or
102 * undefined if no mirror with the requested handle was found
103 */
104 function LookupMirror(handle) {
105 return mirror_cache_[handle];
106 }
107
108
109 /**
98 * Returns the mirror for the undefined value. 110 * Returns the mirror for the undefined value.
99 * 111 *
100 * @returns {Mirror} the mirror reflects the undefined value 112 * @returns {Mirror} the mirror reflects the undefined value
101 */ 113 */
102 function GetUndefinedMirror() { 114 function GetUndefinedMirror() {
103 return MakeMirror(void 0); 115 return MakeMirror(void 0);
104 } 116 }
105 117
106 118
107 /** 119 /**
(...skipping 1932 matching lines...) Expand 10 before | Expand all | Expand 10 after
2040 /** 2052 /**
2041 * Convert a Date to ISO 8601 format. To avoid depending on the Date object 2053 * Convert a Date to ISO 8601 format. To avoid depending on the Date object
2042 * this method calls the functions in date.js directly and not through the 2054 * this method calls the functions in date.js directly and not through the
2043 * value. 2055 * value.
2044 * @param {Date} value The Date value to format as JSON 2056 * @param {Date} value The Date value to format as JSON
2045 * @return {string} JSON formatted Date value 2057 * @return {string} JSON formatted Date value
2046 */ 2058 */
2047 function DateToJSON_(value) { 2059 function DateToJSON_(value) {
2048 return '"' + DateToISO8601_(value) + '"'; 2060 return '"' + DateToISO8601_(value) + '"';
2049 } 2061 }
OLDNEW
« no previous file with comments | « src/debug-delay.js ('k') | test/mjsunit/debug-handle.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698