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

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

Issue 1644793002: Replace intptr_t with TokenDescriptor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | « runtime/vm/regexp.cc ('k') | runtime/vm/report.h » ('j') | 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_ir.h" 5 #include "vm/regexp_assembler_ir.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 18 matching lines...) Expand all
29 String::Handle(String::New(__FUNCTION__)), Heap::kOld)))))); 29 String::Handle(String::New(__FUNCTION__)), Heap::kOld))))));
30 30
31 #define PRINT(arg) if (FLAG_trace_irregexp) { Print(arg); } 31 #define PRINT(arg) if (FLAG_trace_irregexp) { Print(arg); }
32 32
33 namespace dart { 33 namespace dart {
34 34
35 DEFINE_FLAG(bool, trace_irregexp, false, "Trace irregexps"); 35 DEFINE_FLAG(bool, trace_irregexp, false, "Trace irregexps");
36 36
37 37
38 static const intptr_t kInvalidTryIndex = CatchClauseNode::kInvalidTryIndex; 38 static const intptr_t kInvalidTryIndex = CatchClauseNode::kInvalidTryIndex;
39 static const intptr_t kNoSourcePos = Token::kNoSourcePos; 39 static const TokenPosition kNoSourcePos = TokenPosition::kNoSource;
40 static const intptr_t kMinStackSize = 512; 40 static const intptr_t kMinStackSize = 512;
41 41
42 42
43 void PrintUtf16(uint16_t c) { 43 void PrintUtf16(uint16_t c) {
44 const char* format = (0x20 <= c && c <= 0x7F) ? 44 const char* format = (0x20 <= c && c <= 0x7F) ?
45 "%c" : (c <= 0xff) ? "\\x%02x" : "\\u%04x"; 45 "%c" : (c <= 0xff) ? "\\x%02x" : "\\u%04x";
46 OS::Print(format, c); 46 OS::Print(format, c);
47 } 47 }
48 48
49 49
(...skipping 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after
1924 index_val, 1924 index_val,
1925 characters, 1925 characters,
1926 specialization_cid_, 1926 specialization_cid_,
1927 kNoSourcePos)); 1927 kNoSourcePos));
1928 } 1928 }
1929 1929
1930 1930
1931 #undef __ 1931 #undef __
1932 1932
1933 } // namespace dart 1933 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/regexp.cc ('k') | runtime/vm/report.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698