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

Side by Side Diff: src/regexp-macro-assembler-irregexp-inl.h

Issue 1282503003: Remove several grab-bag includes from the v8.h header. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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 2008-2009 the V8 project authors. All rights reserved. 1 // Copyright 2008-2009 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // A light-weight assembler for the Irregexp byte code. 5 #ifndef V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_
6 6 #define V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_
7
8 #include "src/v8.h"
9 7
10 #include "src/ast.h" 8 #include "src/ast.h"
11 #include "src/bytecodes-irregexp.h" 9 #include "src/bytecodes-irregexp.h"
12 10
13 #ifndef V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_
14 #define V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_
15
16 namespace v8 { 11 namespace v8 {
17 namespace internal { 12 namespace internal {
18 13
19 #ifdef V8_INTERPRETED_REGEXP 14 #ifdef V8_INTERPRETED_REGEXP
20 15
21 void RegExpMacroAssemblerIrregexp::Emit(uint32_t byte, 16 void RegExpMacroAssemblerIrregexp::Emit(uint32_t byte,
22 uint32_t twenty_four_bits) { 17 uint32_t twenty_four_bits) {
23 uint32_t word = ((twenty_four_bits << BYTECODE_SHIFT) | byte); 18 uint32_t word = ((twenty_four_bits << BYTECODE_SHIFT) | byte);
24 DCHECK(pc_ <= buffer_.length()); 19 DCHECK(pc_ <= buffer_.length());
25 if (pc_ + 3 >= buffer_.length()) { 20 if (pc_ + 3 >= buffer_.length()) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 52 }
58 *reinterpret_cast<uint32_t*>(buffer_.start() + pc_) = word; 53 *reinterpret_cast<uint32_t*>(buffer_.start() + pc_) = word;
59 pc_ += 4; 54 pc_ += 4;
60 } 55 }
61 56
62 #endif // V8_INTERPRETED_REGEXP 57 #endif // V8_INTERPRETED_REGEXP
63 58
64 } } // namespace v8::internal 59 } } // namespace v8::internal
65 60
66 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_ 61 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_
OLDNEW
« no previous file with comments | « src/regexp-macro-assembler-irregexp.h ('k') | src/string-builder.h » ('j') | src/v8.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698