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

Side by Side Diff: src/regexp/ppc/regexp-macro-assembler-ppc.cc

Issue 1476763002: Make whether or not a Code object should be created by masm explicit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: enum class FTW Created 5 years 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #if V8_TARGET_ARCH_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/regexp/ppc/regexp-macro-assembler-ppc.h" 7 #include "src/regexp/ppc/regexp-macro-assembler-ppc.h"
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 * direct call from generated code, the return address is placed there by 93 * direct call from generated code, the return address is placed there by
94 * the calling code, as in a normal exit frame. 94 * the calling code, as in a normal exit frame.
95 */ 95 */
96 96
97 #define __ ACCESS_MASM(masm_) 97 #define __ ACCESS_MASM(masm_)
98 98
99 RegExpMacroAssemblerPPC::RegExpMacroAssemblerPPC(Isolate* isolate, Zone* zone, 99 RegExpMacroAssemblerPPC::RegExpMacroAssemblerPPC(Isolate* isolate, Zone* zone,
100 Mode mode, 100 Mode mode,
101 int registers_to_save) 101 int registers_to_save)
102 : NativeRegExpMacroAssembler(isolate, zone), 102 : NativeRegExpMacroAssembler(isolate, zone),
103 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize)), 103 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize,
104 CodeObjectRequired::kYes)),
104 mode_(mode), 105 mode_(mode),
105 num_registers_(registers_to_save), 106 num_registers_(registers_to_save),
106 num_saved_registers_(registers_to_save), 107 num_saved_registers_(registers_to_save),
107 entry_label_(), 108 entry_label_(),
108 start_label_(), 109 start_label_(),
109 success_label_(), 110 success_label_(),
110 backtrack_label_(), 111 backtrack_label_(),
111 exit_label_(), 112 exit_label_(),
112 internal_failure_label_() { 113 internal_failure_label_() {
113 DCHECK_EQ(0, registers_to_save % 2); 114 DCHECK_EQ(0, registers_to_save % 2);
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 } 1289 }
1289 1290
1290 1291
1291 #undef __ 1292 #undef __
1292 1293
1293 #endif // V8_INTERPRETED_REGEXP 1294 #endif // V8_INTERPRETED_REGEXP
1294 } // namespace internal 1295 } // namespace internal
1295 } // namespace v8 1296 } // namespace v8
1296 1297
1297 #endif // V8_TARGET_ARCH_PPC 1298 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/regexp/mips64/regexp-macro-assembler-mips64.cc ('k') | src/regexp/x64/regexp-macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698