OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'dart:core' hide Symbol; | 5 import 'dart:core' hide Symbol; |
| 6 import 'dart:typed_data' show Int32List; |
6 | 7 |
7 @patch | 8 @patch |
8 List makeListFixedLength(List growableList) | 9 List makeListFixedLength(List growableList) |
9 native "Internal_makeListFixedLength"; | 10 native "Internal_makeListFixedLength"; |
10 | 11 |
11 @patch | 12 @patch |
12 List makeFixedListUnmodifiable(List fixedLengthList) | 13 List makeFixedListUnmodifiable(List fixedLengthList) |
13 native "Internal_makeFixedListUnmodifiable"; | 14 native "Internal_makeFixedListUnmodifiable"; |
14 | 15 |
15 class VMLibraryHooks { | 16 class VMLibraryHooks { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 i--, j--) { | 58 i--, j--) { |
58 dst[j] = src[i]; | 59 dst[j] = src[i]; |
59 } | 60 } |
60 } else { | 61 } else { |
61 for (int i = srcStart, j = dstStart; i < srcStart + count; i++, j++) { | 62 for (int i = srcStart, j = dstStart; i < srcStart + count; i++, j++) { |
62 dst[j] = src[i]; | 63 dst[j] = src[i]; |
63 } | 64 } |
64 } | 65 } |
65 } | 66 } |
66 } | 67 } |
| 68 |
| 69 // Called by IRRegExpMacroAssembler::GrowStack. |
| 70 Int32List _growRegExpStack(Int32List stack) { |
| 71 final newStack = new Int32List(stack.length * 2); |
| 72 for (int i = 0; i < stack.length; i++) { |
| 73 newStack[i] = stack[i]; |
| 74 } |
| 75 return newStack; |
| 76 } |
OLD | NEW |