Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Side by Side Diff: runtime/lib/internal_patch.dart

Issue 2951053003: VM(RegExp): Allow OSR optimization of RegExp :matcher functions. (Closed)
Patch Set: Fix bugs with stack growing and block pruning Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/compiler.cc » ('j') | runtime/vm/compiler.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/compiler.cc » ('j') | runtime/vm/compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698