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

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

Issue 551227: Correctly set eval_from_shared value when new function is created by "new Fun... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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/compiler.cc ('k') | test/mjsunit/debug-compile-event-newfunction.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 2071 matching lines...) Expand 10 before | Expand all | Expand 10 after
2082 content.sourceLength = mirror.source().length; 2082 content.sourceLength = mirror.source().length;
2083 content.scriptType = mirror.scriptType(); 2083 content.scriptType = mirror.scriptType();
2084 content.compilationType = mirror.compilationType(); 2084 content.compilationType = mirror.compilationType();
2085 // For compilation type eval emit information on the script from which 2085 // For compilation type eval emit information on the script from which
2086 // eval was called if a script is present. 2086 // eval was called if a script is present.
2087 if (mirror.compilationType() == 1 && 2087 if (mirror.compilationType() == 1 &&
2088 mirror.evalFromScript()) { 2088 mirror.evalFromScript()) {
2089 content.evalFromScript = 2089 content.evalFromScript =
2090 this.serializeReference(mirror.evalFromScript()); 2090 this.serializeReference(mirror.evalFromScript());
2091 var evalFromLocation = mirror.evalFromLocation() 2091 var evalFromLocation = mirror.evalFromLocation()
2092 content.evalFromLocation = { line: evalFromLocation.line, 2092 if (evalFromLocation) {
2093 column: evalFromLocation.column} 2093 content.evalFromLocation = { line: evalFromLocation.line,
2094 column: evalFromLocation.column };
2095 }
2094 if (mirror.evalFromFunctionName()) { 2096 if (mirror.evalFromFunctionName()) {
2095 content.evalFromFunctionName = mirror.evalFromFunctionName(); 2097 content.evalFromFunctionName = mirror.evalFromFunctionName();
2096 } 2098 }
2097 } 2099 }
2098 if (mirror.context()) { 2100 if (mirror.context()) {
2099 content.context = this.serializeReference(mirror.context()); 2101 content.context = this.serializeReference(mirror.context());
2100 } 2102 }
2101 break; 2103 break;
2102 2104
2103 case CONTEXT_TYPE: 2105 case CONTEXT_TYPE:
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
2323 } 2325 }
2324 if (!isFinite(value)) { 2326 if (!isFinite(value)) {
2325 if (value > 0) { 2327 if (value > 0) {
2326 return 'Infinity'; 2328 return 'Infinity';
2327 } else { 2329 } else {
2328 return '-Infinity'; 2330 return '-Infinity';
2329 } 2331 }
2330 } 2332 }
2331 return value; 2333 return value;
2332 } 2334 }
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | test/mjsunit/debug-compile-event-newfunction.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698