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

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

Issue 2450713004: Make header include guards great again (Closed)
Patch Set: Fix header include guards Created 4 years, 1 month 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_assembler_bytecode.h ('k') | runtime/vm/regexp_assembler_ir.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 // A light-weight assembler for the Irregexp byte code. 5 // A light-weight assembler for the Irregexp byte code.
6 6
7 #include "vm/regexp_bytecodes.h" 7 #include "vm/regexp_bytecodes.h"
8 8
9 #ifndef VM_REGEXP_ASSEMBLER_BYTECODE_INL_H_ 9 #ifndef RUNTIME_VM_REGEXP_ASSEMBLER_BYTECODE_INL_H_
10 #define VM_REGEXP_ASSEMBLER_BYTECODE_INL_H_ 10 #define RUNTIME_VM_REGEXP_ASSEMBLER_BYTECODE_INL_H_
11 11
12 namespace dart { 12 namespace dart {
13 13
14 void BytecodeRegExpMacroAssembler::Emit(uint32_t byte, 14 void BytecodeRegExpMacroAssembler::Emit(uint32_t byte,
15 uint32_t twenty_four_bits) { 15 uint32_t twenty_four_bits) {
16 uint32_t word = ((twenty_four_bits << BYTECODE_SHIFT) | byte); 16 uint32_t word = ((twenty_four_bits << BYTECODE_SHIFT) | byte);
17 ASSERT(pc_ <= buffer_->length()); 17 ASSERT(pc_ <= buffer_->length());
18 if (pc_ + 3 >= buffer_->length()) { 18 if (pc_ + 3 >= buffer_->length()) {
19 Expand(); 19 Expand();
20 } 20 }
(...skipping 26 matching lines...) Expand all
47 ASSERT(pc_ <= buffer_->length()); 47 ASSERT(pc_ <= buffer_->length());
48 if (pc_ + 3 >= buffer_->length()) { 48 if (pc_ + 3 >= buffer_->length()) {
49 Expand(); 49 Expand();
50 } 50 }
51 *reinterpret_cast<uint32_t*>(buffer_->data() + pc_) = word; 51 *reinterpret_cast<uint32_t*>(buffer_->data() + pc_) = word;
52 pc_ += 4; 52 pc_ += 4;
53 } 53 }
54 54
55 } // namespace dart 55 } // namespace dart
56 56
57 #endif // VM_REGEXP_ASSEMBLER_BYTECODE_INL_H_ 57 #endif // RUNTIME_VM_REGEXP_ASSEMBLER_BYTECODE_INL_H_
OLDNEW
« no previous file with comments | « runtime/vm/regexp_assembler_bytecode.h ('k') | runtime/vm/regexp_assembler_ir.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698