| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium 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 define("mojo/public/js/bindings/codec", [ | 5 define("mojo/public/js/codec", [ |
| 6 "mojo/public/js/bindings/unicode", | 6 "mojo/public/js/unicode", |
| 7 "mojo/public/js/bindings/buffer", | 7 "mojo/public/js/buffer", |
| 8 ], function(unicode, buffer) { | 8 ], function(unicode, buffer) { |
| 9 | 9 |
| 10 var kErrorUnsigned = "Passing negative value to unsigned"; | 10 var kErrorUnsigned = "Passing negative value to unsigned"; |
| 11 | 11 |
| 12 // Memory ------------------------------------------------------------------- | 12 // Memory ------------------------------------------------------------------- |
| 13 | 13 |
| 14 var kAlignment = 8; | 14 var kAlignment = 8; |
| 15 | 15 |
| 16 function align(size) { | 16 function align(size) { |
| 17 return size + (kAlignment - (size % kAlignment)) % kAlignment; | 17 return size + (kAlignment - (size % kAlignment)) % kAlignment; |
| (...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 exports.NullableString = NullableString; | 783 exports.NullableString = NullableString; |
| 784 exports.PointerTo = PointerTo; | 784 exports.PointerTo = PointerTo; |
| 785 exports.NullablePointerTo = NullablePointerTo; | 785 exports.NullablePointerTo = NullablePointerTo; |
| 786 exports.ArrayOf = ArrayOf; | 786 exports.ArrayOf = ArrayOf; |
| 787 exports.NullableArrayOf = NullableArrayOf; | 787 exports.NullableArrayOf = NullableArrayOf; |
| 788 exports.PackedBool = PackedBool; | 788 exports.PackedBool = PackedBool; |
| 789 exports.Handle = Handle; | 789 exports.Handle = Handle; |
| 790 exports.NullableHandle = NullableHandle; | 790 exports.NullableHandle = NullableHandle; |
| 791 return exports; | 791 return exports; |
| 792 }); | 792 }); |
| OLD | NEW |