OLD | NEW |
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_H_ | 5 #ifndef VM_REGEXP_ASSEMBLER_H_ |
6 #define VM_REGEXP_ASSEMBLER_H_ | 6 #define VM_REGEXP_ASSEMBLER_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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 // is AppendInstruction, which simply appends an instruction and performs | 511 // is AppendInstruction, which simply appends an instruction and performs |
512 // bookkeeping. | 512 // bookkeeping. |
513 void AppendInstruction(Instruction* instruction); | 513 void AppendInstruction(Instruction* instruction); |
514 // Similar to AppendInstruction, but closes the current block by | 514 // Similar to AppendInstruction, but closes the current block by |
515 // setting current_instruction_ to NULL. | 515 // setting current_instruction_ to NULL. |
516 void CloseBlockWith(Instruction* instruction); | 516 void CloseBlockWith(Instruction* instruction); |
517 // Appends definition and allocates a temp index for the result. | 517 // Appends definition and allocates a temp index for the result. |
518 Value* Bind(Definition* definition); | 518 Value* Bind(Definition* definition); |
519 // Loads and binds a local variable. | 519 // Loads and binds a local variable. |
520 Value* BindLoadLocal(const LocalVariable& local); | 520 Value* BindLoadLocal(const LocalVariable& local); |
| 521 Value* BindUntaggedExternalString(const LocalVariable& str); |
521 | 522 |
522 // Appends the definition. | 523 // Appends the definition. |
523 void Do(Definition* definition); | 524 void Do(Definition* definition); |
524 // Closes the current block with a jump to the specified block. | 525 // Closes the current block with a jump to the specified block. |
525 void GoTo(JoinEntryInstr* to); | 526 void GoTo(JoinEntryInstr* to); |
526 | 527 |
527 // Accessors for our local stack_. | 528 // Accessors for our local stack_. |
528 void PushStack(Definition* definition); | 529 void PushStack(Definition* definition); |
529 Value* PopStack(); | 530 Value* PopStack(); |
530 | 531 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 IdAllocator temp_id_; | 621 IdAllocator temp_id_; |
621 IdAllocator arg_id_; | 622 IdAllocator arg_id_; |
622 IdAllocator local_id_; | 623 IdAllocator local_id_; |
623 IdAllocator indirect_id_; | 624 IdAllocator indirect_id_; |
624 }; | 625 }; |
625 | 626 |
626 | 627 |
627 } // namespace dart | 628 } // namespace dart |
628 | 629 |
629 #endif // VM_REGEXP_ASSEMBLER_H_ | 630 #endif // VM_REGEXP_ASSEMBLER_H_ |
OLD | NEW |