| OLD | NEW |
| 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 return MakeMirror(%DebugGetProperty(this.value_, 'constructor')); | 518 return MakeMirror(%DebugGetProperty(this.value_, 'constructor')); |
| 519 }; | 519 }; |
| 520 | 520 |
| 521 | 521 |
| 522 ObjectMirror.prototype.prototypeObject = function() { | 522 ObjectMirror.prototype.prototypeObject = function() { |
| 523 return MakeMirror(%DebugGetProperty(this.value_, 'prototype')); | 523 return MakeMirror(%DebugGetProperty(this.value_, 'prototype')); |
| 524 }; | 524 }; |
| 525 | 525 |
| 526 | 526 |
| 527 ObjectMirror.prototype.protoObject = function() { | 527 ObjectMirror.prototype.protoObject = function() { |
| 528 return MakeMirror(%GetPrototype(this.value_)); | 528 return MakeMirror(%DebugGetPrototype(this.value_)); |
| 529 }; | 529 }; |
| 530 | 530 |
| 531 | 531 |
| 532 ObjectMirror.prototype.hasNamedInterceptor = function() { | 532 ObjectMirror.prototype.hasNamedInterceptor = function() { |
| 533 // Get information on interceptors for this object. | 533 // Get information on interceptors for this object. |
| 534 var x = %DebugInterceptorInfo(this.value_); | 534 var x = %DebugInterceptorInfo(this.value_); |
| 535 return (x & 2) != 0; | 535 return (x & 2) != 0; |
| 536 }; | 536 }; |
| 537 | 537 |
| 538 | 538 |
| (...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2040 /** | 2040 /** |
| 2041 * Convert a Date to ISO 8601 format. To avoid depending on the Date object | 2041 * 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 | 2042 * this method calls the functions in date.js directly and not through the |
| 2043 * value. | 2043 * value. |
| 2044 * @param {Date} value The Date value to format as JSON | 2044 * @param {Date} value The Date value to format as JSON |
| 2045 * @return {string} JSON formatted Date value | 2045 * @return {string} JSON formatted Date value |
| 2046 */ | 2046 */ |
| 2047 function DateToJSON_(value) { | 2047 function DateToJSON_(value) { |
| 2048 return '"' + DateToISO8601_(value) + '"'; | 2048 return '"' + DateToISO8601_(value) + '"'; |
| 2049 } | 2049 } |
| OLD | NEW |