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

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

Issue 901083004: Contribution of PowerPC port (continuation of 422063005) - PPC dir update (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Contribution of PowerPC port (continuation of 422063005) - PPC dir update -comments and rebase Created 5 years, 10 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/ppc/regexp-macro-assembler-ppc.h ('k') | src/ppc/simulator-ppc.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 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_PPC 7 #if V8_TARGET_ARCH_PPC
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 * (in regexp-macro-assembler.cc) via the CALL_GENERATED_REGEXP_CODE macro 91 * (in regexp-macro-assembler.cc) via the CALL_GENERATED_REGEXP_CODE macro
92 * in ppc/simulator-ppc.h. 92 * in ppc/simulator-ppc.h.
93 * When calling as a non-direct call (i.e., from C++ code), the return address 93 * When calling as a non-direct call (i.e., from C++ code), the return address
94 * area is overwritten with the LR register by the RegExp code. When doing a 94 * area is overwritten with the LR register by the RegExp code. When doing a
95 * direct call from generated code, the return address is placed there by 95 * direct call from generated code, the return address is placed there by
96 * the calling code, as in a normal exit frame. 96 * the calling code, as in a normal exit frame.
97 */ 97 */
98 98
99 #define __ ACCESS_MASM(masm_) 99 #define __ ACCESS_MASM(masm_)
100 100
101 RegExpMacroAssemblerPPC::RegExpMacroAssemblerPPC(Mode mode, 101 RegExpMacroAssemblerPPC::RegExpMacroAssemblerPPC(Isolate* isolate, Zone* zone,
102 int registers_to_save, 102 Mode mode,
103 Zone* zone) 103 int registers_to_save)
104 : NativeRegExpMacroAssembler(zone), 104 : NativeRegExpMacroAssembler(isolate, zone),
105 masm_(new MacroAssembler(zone->isolate(), NULL, kRegExpCodeSize)), 105 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize)),
106 mode_(mode), 106 mode_(mode),
107 num_registers_(registers_to_save), 107 num_registers_(registers_to_save),
108 num_saved_registers_(registers_to_save), 108 num_saved_registers_(registers_to_save),
109 entry_label_(), 109 entry_label_(),
110 start_label_(), 110 start_label_(),
111 success_label_(), 111 success_label_(),
112 backtrack_label_(), 112 backtrack_label_(),
113 exit_label_(), 113 exit_label_(),
114 internal_failure_label_() { 114 internal_failure_label_() {
115 DCHECK_EQ(0, registers_to_save % 2); 115 DCHECK_EQ(0, registers_to_save % 2);
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 } 1326 }
1327 1327
1328 1328
1329 #undef __ 1329 #undef __
1330 1330
1331 #endif // V8_INTERPRETED_REGEXP 1331 #endif // V8_INTERPRETED_REGEXP
1332 } 1332 }
1333 } // namespace v8::internal 1333 } // namespace v8::internal
1334 1334
1335 #endif // V8_TARGET_ARCH_PPC 1335 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/regexp-macro-assembler-ppc.h ('k') | src/ppc/simulator-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698