OLD | NEW |
1 // Copyright 2006-2012 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 (function(global, utils) { | 5 (function(global, utils) { |
6 "use strict"; | 6 "use strict"; |
7 | 7 |
8 // ---------------------------------------------------------------------------- | 8 // ---------------------------------------------------------------------------- |
9 // Imports | 9 // Imports |
10 | 10 |
(...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1427 | 1427 |
1428 | 1428 |
1429 GeneratorMirror.prototype.func = function() { | 1429 GeneratorMirror.prototype.func = function() { |
1430 if (!this.func_) { | 1430 if (!this.func_) { |
1431 this.func_ = MakeMirror(%GeneratorGetFunction(this.value_)); | 1431 this.func_ = MakeMirror(%GeneratorGetFunction(this.value_)); |
1432 } | 1432 } |
1433 return this.func_; | 1433 return this.func_; |
1434 }; | 1434 }; |
1435 | 1435 |
1436 | 1436 |
1437 GeneratorMirror.prototype.context = function() { | |
1438 if (!this.context_) { | |
1439 this.context_ = new ContextMirror(%GeneratorGetContext(this.value_)); | |
1440 } | |
1441 return this.context_; | |
1442 }; | |
1443 | |
1444 | |
1445 GeneratorMirror.prototype.receiver = function() { | 1437 GeneratorMirror.prototype.receiver = function() { |
1446 if (!this.receiver_) { | 1438 if (!this.receiver_) { |
1447 this.receiver_ = MakeMirror(%GeneratorGetReceiver(this.value_)); | 1439 this.receiver_ = MakeMirror(%GeneratorGetReceiver(this.value_)); |
1448 } | 1440 } |
1449 return this.receiver_; | 1441 return this.receiver_; |
1450 }; | 1442 }; |
1451 | 1443 |
1452 | 1444 |
1453 /** | 1445 /** |
1454 * Base mirror object for properties. | 1446 * Base mirror object for properties. |
(...skipping 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3042 // Functions needed by the debugger runtime. | 3034 // Functions needed by the debugger runtime. |
3043 utils.InstallFunctions(utils, DONT_ENUM, [ | 3035 utils.InstallFunctions(utils, DONT_ENUM, [ |
3044 "ClearMirrorCache", ClearMirrorCache | 3036 "ClearMirrorCache", ClearMirrorCache |
3045 ]); | 3037 ]); |
3046 | 3038 |
3047 // Export to debug.js | 3039 // Export to debug.js |
3048 utils.Export(function(to) { | 3040 utils.Export(function(to) { |
3049 to.MirrorType = MirrorType; | 3041 to.MirrorType = MirrorType; |
3050 }); | 3042 }); |
3051 }) | 3043 }) |
OLD | NEW |