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

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

Issue 7388011: Fix the debugger for strict-mode functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments. Created 9 years, 5 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 | « no previous file | 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 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1598 result += '[debugger]'; 1598 result += '[debugger]';
1599 } else { 1599 } else {
1600 // If the receiver has a className which is 'global' don't display it. 1600 // If the receiver has a className which is 'global' don't display it.
1601 var display_receiver = !receiver.className || receiver.className() != 'globa l'; 1601 var display_receiver = !receiver.className || receiver.className() != 'globa l';
1602 if (display_receiver) { 1602 if (display_receiver) {
1603 result += receiver.toText(); 1603 result += receiver.toText();
1604 } 1604 }
1605 // Try to find the function as a property in the receiver. Include the 1605 // Try to find the function as a property in the receiver. Include the
1606 // prototype chain in the lookup. 1606 // prototype chain in the lookup.
1607 var property = GetUndefinedMirror(); 1607 var property = GetUndefinedMirror();
1608 if (!receiver.isUndefined()) { 1608 if (receiver.isObject()) {
1609 for (var r = receiver; !r.isNull() && property.isUndefined(); r = r.protoO bject()) { 1609 for (var r = receiver;
1610 !r.isNull() && property.isUndefined();
1611 r = r.protoObject()) {
1610 property = r.lookupProperty(func); 1612 property = r.lookupProperty(func);
1611 } 1613 }
1612 } 1614 }
1613 if (!property.isUndefined()) { 1615 if (!property.isUndefined()) {
1614 // The function invoked was found on the receiver. Use the property name 1616 // The function invoked was found on the receiver. Use the property name
1615 // for the backtrace. 1617 // for the backtrace.
1616 if (!property.isIndexed()) { 1618 if (!property.isIndexed()) {
1617 if (display_receiver) { 1619 if (display_receiver) {
1618 result += '.'; 1620 result += '.';
1619 } 1621 }
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
2417 } 2419 }
2418 if (!NUMBER_IS_FINITE(value)) { 2420 if (!NUMBER_IS_FINITE(value)) {
2419 if (value > 0) { 2421 if (value > 0) {
2420 return 'Infinity'; 2422 return 'Infinity';
2421 } else { 2423 } else {
2422 return '-Infinity'; 2424 return '-Infinity';
2423 } 2425 }
2424 } 2426 }
2425 return value; 2427 return value;
2426 } 2428 }
OLDNEW
« no previous file with comments | « no previous file | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698