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

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

Issue 868883002: Remove the dependency of Zone on Isolate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compilation issues Created 5 years, 11 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 | « src/regexp-macro-assembler.cc ('k') | src/regexp-macro-assembler-tracer.cc » ('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 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 #ifndef V8_REGEXP_MACRO_ASSEMBLER_TRACER_H_ 5 #ifndef V8_REGEXP_MACRO_ASSEMBLER_TRACER_H_
6 #define V8_REGEXP_MACRO_ASSEMBLER_TRACER_H_ 6 #define V8_REGEXP_MACRO_ASSEMBLER_TRACER_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
11 // Decorator on a RegExpMacroAssembler that write all calls. 11 // Decorator on a RegExpMacroAssembler that write all calls.
12 class RegExpMacroAssemblerTracer: public RegExpMacroAssembler { 12 class RegExpMacroAssemblerTracer: public RegExpMacroAssembler {
13 public: 13 public:
14 explicit RegExpMacroAssemblerTracer(RegExpMacroAssembler* assembler); 14 RegExpMacroAssemblerTracer(Isolate* isolate, RegExpMacroAssembler* assembler);
15 virtual ~RegExpMacroAssemblerTracer(); 15 virtual ~RegExpMacroAssemblerTracer();
16 virtual int stack_limit_slack() { return assembler_->stack_limit_slack(); } 16 virtual int stack_limit_slack() { return assembler_->stack_limit_slack(); }
17 virtual bool CanReadUnaligned() { return assembler_->CanReadUnaligned(); } 17 virtual bool CanReadUnaligned() { return assembler_->CanReadUnaligned(); }
18 virtual void AdvanceCurrentPosition(int by); // Signed cp change. 18 virtual void AdvanceCurrentPosition(int by); // Signed cp change.
19 virtual void AdvanceRegister(int reg, int by); // r[reg] += by. 19 virtual void AdvanceRegister(int reg, int by); // r[reg] += by.
20 virtual void Backtrack(); 20 virtual void Backtrack();
21 virtual void Bind(Label* label); 21 virtual void Bind(Label* label);
22 virtual void CheckAtStart(Label* on_at_start); 22 virtual void CheckAtStart(Label* on_at_start);
23 virtual void CheckCharacter(unsigned c, Label* on_equal); 23 virtual void CheckCharacter(unsigned c, Label* on_equal);
24 virtual void CheckCharacterAfterAnd(unsigned c, 24 virtual void CheckCharacterAfterAnd(unsigned c,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 virtual void ClearRegisters(int reg_from, int reg_to); 74 virtual void ClearRegisters(int reg_from, int reg_to);
75 virtual void WriteStackPointerToRegister(int reg); 75 virtual void WriteStackPointerToRegister(int reg);
76 76
77 private: 77 private:
78 RegExpMacroAssembler* assembler_; 78 RegExpMacroAssembler* assembler_;
79 }; 79 };
80 80
81 }} // namespace v8::internal 81 }} // namespace v8::internal
82 82
83 #endif // V8_REGEXP_MACRO_ASSEMBLER_TRACER_H_ 83 #endif // V8_REGEXP_MACRO_ASSEMBLER_TRACER_H_
OLDNEW
« no previous file with comments | « src/regexp-macro-assembler.cc ('k') | src/regexp-macro-assembler-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698