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

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

Issue 5733001: Introduce additional context to evaluate operations (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: small format Created 10 years 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-debugger.js ('k') | src/runtime.h » ('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 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after
1526 FrameMirror.prototype.scopeCount = function() { 1526 FrameMirror.prototype.scopeCount = function() {
1527 return this.details_.scopeCount(); 1527 return this.details_.scopeCount();
1528 }; 1528 };
1529 1529
1530 1530
1531 FrameMirror.prototype.scope = function(index) { 1531 FrameMirror.prototype.scope = function(index) {
1532 return new ScopeMirror(this, index); 1532 return new ScopeMirror(this, index);
1533 }; 1533 };
1534 1534
1535 1535
1536 FrameMirror.prototype.evaluate = function(source, disable_break) { 1536 FrameMirror.prototype.evaluate = function(source, disable_break, opt_context_obj ect) {
1537 var result = %DebugEvaluate(this.break_id_, this.details_.frameId(), 1537 var result = %DebugEvaluate(this.break_id_, this.details_.frameId(),
1538 source, Boolean(disable_break)); 1538 source, Boolean(disable_break), opt_context_object );
1539 return MakeMirror(result); 1539 return MakeMirror(result);
1540 }; 1540 };
1541 1541
1542 1542
1543 FrameMirror.prototype.invocationText = function() { 1543 FrameMirror.prototype.invocationText = function() {
1544 // Format frame invoaction (receiver, function and arguments). 1544 // Format frame invoaction (receiver, function and arguments).
1545 var result = ''; 1545 var result = '';
1546 var func = this.func(); 1546 var func = this.func();
1547 var receiver = this.receiver(); 1547 var receiver = this.receiver();
1548 if (this.isConstructCall()) { 1548 if (this.isConstructCall()) {
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
2371 } 2371 }
2372 if (!isFinite(value)) { 2372 if (!isFinite(value)) {
2373 if (value > 0) { 2373 if (value > 0) {
2374 return 'Infinity'; 2374 return 'Infinity';
2375 } else { 2375 } else {
2376 return '-Infinity'; 2376 return '-Infinity';
2377 } 2377 }
2378 } 2378 }
2379 return value; 2379 return value;
2380 } 2380 }
OLDNEW
« no previous file with comments | « src/debug-debugger.js ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698