OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 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 | 6 |
7 "use strict"; | 7 "use strict"; |
8 | 8 |
9 %CheckIsBootstrapping(); | 9 %CheckIsBootstrapping(); |
10 | 10 |
11 // ------------------------------------------------------------------- | 11 // ------------------------------------------------------------------- |
12 // Imports | 12 // Imports |
13 | 13 |
14 var GetHash; | 14 var GetHash; |
15 var GlobalArray = global.Array; | 15 var GlobalArray = global.Array; |
16 var GlobalObject = global.Object; | 16 var GlobalObject = global.Object; |
17 var InternalArray = utils.InternalArray; | 17 var InternalArray = utils.InternalArray; |
| 18 var MakeTypeError; |
18 var ObjectFreeze; | 19 var ObjectFreeze; |
19 var ObjectIsFrozen; | 20 var ObjectIsFrozen; |
20 | 21 |
21 utils.Import(function(from) { | 22 utils.Import(function(from) { |
22 GetHash = from.GetHash; | 23 GetHash = from.GetHash; |
| 24 MakeTypeError = from.MakeTypeError; |
23 ObjectFreeze = from.ObjectFreeze; | 25 ObjectFreeze = from.ObjectFreeze; |
24 ObjectIsFrozen = from.ObjectIsFrozen; | 26 ObjectIsFrozen = from.ObjectIsFrozen; |
25 }); | 27 }); |
26 | 28 |
27 // ------------------------------------------------------------------- | 29 // ------------------------------------------------------------------- |
28 | 30 |
29 // Overview: | 31 // Overview: |
30 // | 32 // |
31 // This file contains all of the routing and accounting for Object.observe. | 33 // This file contains all of the routing and accounting for Object.observe. |
32 // User code will interact with these mechanisms via the Object.observe APIs | 34 // User code will interact with these mechanisms via the Object.observe APIs |
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 | 712 |
711 utils.Export(function(to) { | 713 utils.Export(function(to) { |
712 to.ObserveArrayMethods = ObserveArrayMethods; | 714 to.ObserveArrayMethods = ObserveArrayMethods; |
713 to.ObserveBeginPerformSplice = BeginPerformSplice; | 715 to.ObserveBeginPerformSplice = BeginPerformSplice; |
714 to.ObserveEndPerformSplice = EndPerformSplice; | 716 to.ObserveEndPerformSplice = EndPerformSplice; |
715 to.ObserveEnqueueSpliceRecord = EnqueueSpliceRecord; | 717 to.ObserveEnqueueSpliceRecord = EnqueueSpliceRecord; |
716 to.ObserveObjectMethods = ObserveObjectMethods; | 718 to.ObserveObjectMethods = ObserveObjectMethods; |
717 }); | 719 }); |
718 | 720 |
719 }) | 721 }) |
OLD | NEW |