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

Side by Side Diff: runtime/vm/regexp_assembler.cc

Issue 878243002: Cleanup: use const reference for ParsedFunction where possible. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 #include "vm/regexp_assembler.h" 5 #include "vm/regexp_assembler.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/compiler.h" 8 #include "vm/compiler.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 // Allocate an initial stack backing of the minimum stack size. The stack 115 // Allocate an initial stack backing of the minimum stack size. The stack
116 // backing is indirectly referred to so we can reuse it on subsequent matches 116 // backing is indirectly referred to so we can reuse it on subsequent matches
117 // even in the case where the backing has been enlarged and thus reallocated. 117 // even in the case where the backing has been enlarged and thus reallocated.
118 stack_array_cell_.SetAt(0, TypedData::Handle(isolate, 118 stack_array_cell_.SetAt(0, TypedData::Handle(isolate,
119 TypedData::New(kTypedDataInt32ArrayCid, kMinStackSize / 4, Heap::kOld))); 119 TypedData::New(kTypedDataInt32ArrayCid, kMinStackSize / 4, Heap::kOld)));
120 120
121 // Create and generate all preset blocks. 121 // Create and generate all preset blocks.
122 entry_block_ = 122 entry_block_ =
123 new(isolate) GraphEntryInstr( 123 new(isolate) GraphEntryInstr(
124 parsed_function_, 124 *parsed_function_,
125 new(isolate) TargetEntryInstr(block_id_.Alloc(), kInvalidTryIndex), 125 new(isolate) TargetEntryInstr(block_id_.Alloc(), kInvalidTryIndex),
126 Isolate::kNoDeoptId); 126 Isolate::kNoDeoptId);
127 start_block_ = 127 start_block_ =
128 new(isolate) JoinEntryInstr(block_id_.Alloc(), kInvalidTryIndex); 128 new(isolate) JoinEntryInstr(block_id_.Alloc(), kInvalidTryIndex);
129 success_block_ = 129 success_block_ =
130 new(isolate) JoinEntryInstr(block_id_.Alloc(), kInvalidTryIndex); 130 new(isolate) JoinEntryInstr(block_id_.Alloc(), kInvalidTryIndex);
131 backtrack_block_ = 131 backtrack_block_ =
132 new(isolate) JoinEntryInstr(block_id_.Alloc(), kInvalidTryIndex); 132 new(isolate) JoinEntryInstr(block_id_.Alloc(), kInvalidTryIndex);
133 exit_block_ = 133 exit_block_ =
134 new(isolate) JoinEntryInstr(block_id_.Alloc(), kInvalidTryIndex); 134 new(isolate) JoinEntryInstr(block_id_.Alloc(), kInvalidTryIndex);
(...skipping 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1926 index_val, 1926 index_val,
1927 characters, 1927 characters,
1928 specialization_cid_, 1928 specialization_cid_,
1929 Scanner::kNoSourcePos)); 1929 Scanner::kNoSourcePos));
1930 } 1930 }
1931 1931
1932 1932
1933 #undef __ 1933 #undef __
1934 1934
1935 } // namespace dart 1935 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698