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

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

Issue 1315893004: Load runtime entries from the Thread instead of the ObjectPool. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
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 #ifndef VM_REGEXP_ASSEMBLER_IR_H_ 5 #ifndef VM_REGEXP_ASSEMBLER_IR_H_
6 #define VM_REGEXP_ASSEMBLER_IR_H_ 6 #define VM_REGEXP_ASSEMBLER_IR_H_
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/intermediate_language.h" 9 #include "vm/intermediate_language.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 19 matching lines...) Expand all
30 30
31 IRRegExpMacroAssembler(intptr_t specialization_cid, 31 IRRegExpMacroAssembler(intptr_t specialization_cid,
32 intptr_t capture_count, 32 intptr_t capture_count,
33 const ParsedFunction* parsed_function, 33 const ParsedFunction* parsed_function,
34 const ZoneGrowableArray<const ICData*>& ic_data_array, 34 const ZoneGrowableArray<const ICData*>& ic_data_array,
35 Zone* zone); 35 Zone* zone);
36 virtual ~IRRegExpMacroAssembler(); 36 virtual ~IRRegExpMacroAssembler();
37 37
38 virtual bool CanReadUnaligned(); 38 virtual bool CanReadUnaligned();
39 39
40 // Compares two-byte strings case insensitively.
41 // Called from generated RegExp code.
42 static RawBool* CaseInsensitiveCompareUC16(
43 RawString* str_raw,
44 RawSmi* lhs_index_raw,
45 RawSmi* rhs_index_raw,
46 RawSmi* length_raw);
47
48 static RawArray* Execute(const Function& function, 40 static RawArray* Execute(const Function& function,
49 const String& input, 41 const String& input,
50 const Smi& start_offset, 42 const Smi& start_offset,
51 Zone* zone); 43 Zone* zone);
52 44
53 virtual bool IsClosed() const { return (current_instruction_ == NULL); } 45 virtual bool IsClosed() const { return (current_instruction_ == NULL); }
54 46
55 virtual intptr_t stack_limit_slack(); 47 virtual intptr_t stack_limit_slack();
56 virtual void AdvanceCurrentPosition(intptr_t by); 48 virtual void AdvanceCurrentPosition(intptr_t by);
57 virtual void AdvanceRegister(intptr_t reg, intptr_t by); 49 virtual void AdvanceRegister(intptr_t reg, intptr_t by);
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 IdAllocator temp_id_; 426 IdAllocator temp_id_;
435 IdAllocator arg_id_; 427 IdAllocator arg_id_;
436 IdAllocator local_id_; 428 IdAllocator local_id_;
437 IdAllocator indirect_id_; 429 IdAllocator indirect_id_;
438 }; 430 };
439 431
440 432
441 } // namespace dart 433 } // namespace dart
442 434
443 #endif // VM_REGEXP_ASSEMBLER_IR_H_ 435 #endif // VM_REGEXP_ASSEMBLER_IR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698