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/arm64/regexp-macro-assembler-arm64.cc

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/arm64/regexp-macro-assembler-arm64.h ('k') | src/ast.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 * (in regexp-macro-assembler.cc) via the CALL_GENERATED_REGEXP_CODE macro 104 * (in regexp-macro-assembler.cc) via the CALL_GENERATED_REGEXP_CODE macro
105 * in arm64/simulator-arm64.h. 105 * in arm64/simulator-arm64.h.
106 * When calling as a non-direct call (i.e., from C++ code), the return address 106 * When calling as a non-direct call (i.e., from C++ code), the return address
107 * area is overwritten with the LR register by the RegExp code. When doing a 107 * area is overwritten with the LR register by the RegExp code. When doing a
108 * direct call from generated code, the return address is placed there by 108 * direct call from generated code, the return address is placed there by
109 * the calling code, as in a normal exit frame. 109 * the calling code, as in a normal exit frame.
110 */ 110 */
111 111
112 #define __ ACCESS_MASM(masm_) 112 #define __ ACCESS_MASM(masm_)
113 113
114 RegExpMacroAssemblerARM64::RegExpMacroAssemblerARM64( 114 RegExpMacroAssemblerARM64::RegExpMacroAssemblerARM64(Isolate* isolate,
115 Mode mode, 115 Zone* zone, Mode mode,
116 int registers_to_save, 116 int registers_to_save)
117 Zone* zone) 117 : NativeRegExpMacroAssembler(isolate, zone),
118 : NativeRegExpMacroAssembler(zone), 118 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize)),
119 masm_(new MacroAssembler(zone->isolate(), NULL, kRegExpCodeSize)),
120 mode_(mode), 119 mode_(mode),
121 num_registers_(registers_to_save), 120 num_registers_(registers_to_save),
122 num_saved_registers_(registers_to_save), 121 num_saved_registers_(registers_to_save),
123 entry_label_(), 122 entry_label_(),
124 start_label_(), 123 start_label_(),
125 success_label_(), 124 success_label_(),
126 backtrack_label_(), 125 backtrack_label_(),
127 exit_label_() { 126 exit_label_() {
128 __ SetStackPointer(csp); 127 __ SetStackPointer(csp);
129 DCHECK_EQ(0, registers_to_save % 2); 128 DCHECK_EQ(0, registers_to_save % 2);
(...skipping 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after
1693 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW)); 1692 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW));
1694 } 1693 }
1695 } 1694 }
1696 } 1695 }
1697 1696
1698 #endif // V8_INTERPRETED_REGEXP 1697 #endif // V8_INTERPRETED_REGEXP
1699 1698
1700 }} // namespace v8::internal 1699 }} // namespace v8::internal
1701 1700
1702 #endif // V8_TARGET_ARCH_ARM64 1701 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/regexp-macro-assembler-arm64.h ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698