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

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

Issue 2242223002: PPC: Enable unaligned access and clean up the use of UNALIGNED_ACCESSES (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase over master Created 4 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
« no previous file with comments | « src/ppc/macro-assembler-ppc.cc ('k') | src/regexp/ppc/regexp-macro-assembler-ppc.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 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 #ifndef V8_REGEXP_PPC_REGEXP_MACRO_ASSEMBLER_PPC_H_ 5 #ifndef V8_REGEXP_PPC_REGEXP_MACRO_ASSEMBLER_PPC_H_
6 #define V8_REGEXP_PPC_REGEXP_MACRO_ASSEMBLER_PPC_H_ 6 #define V8_REGEXP_PPC_REGEXP_MACRO_ASSEMBLER_PPC_H_
7 7
8 #include "src/macro-assembler.h" 8 #include "src/macro-assembler.h"
9 #include "src/ppc/assembler-ppc.h" 9 #include "src/ppc/assembler-ppc.h"
10 #include "src/ppc/frames-ppc.h" 10 #include "src/ppc/frames-ppc.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual void PushRegister(int register_index, 71 virtual void PushRegister(int register_index,
72 StackCheckFlag check_stack_limit); 72 StackCheckFlag check_stack_limit);
73 virtual void ReadCurrentPositionFromRegister(int reg); 73 virtual void ReadCurrentPositionFromRegister(int reg);
74 virtual void ReadStackPointerFromRegister(int reg); 74 virtual void ReadStackPointerFromRegister(int reg);
75 virtual void SetCurrentPositionFromEnd(int by); 75 virtual void SetCurrentPositionFromEnd(int by);
76 virtual void SetRegister(int register_index, int to); 76 virtual void SetRegister(int register_index, int to);
77 virtual bool Succeed(); 77 virtual bool Succeed();
78 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); 78 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset);
79 virtual void ClearRegisters(int reg_from, int reg_to); 79 virtual void ClearRegisters(int reg_from, int reg_to);
80 virtual void WriteStackPointerToRegister(int reg); 80 virtual void WriteStackPointerToRegister(int reg);
81 virtual bool CanReadUnaligned();
82 81
83 // Called from RegExp if the stack-guard is triggered. 82 // Called from RegExp if the stack-guard is triggered.
84 // If the code object is relocated, the return address is fixed before 83 // If the code object is relocated, the return address is fixed before
85 // returning. 84 // returning.
86 static int CheckStackGuardState(Address* return_address, Code* re_code, 85 static int CheckStackGuardState(Address* return_address, Code* re_code,
87 Address re_frame); 86 Address re_frame);
88 87
89 private: 88 private:
90 // Offsets from frame_pointer() of function parameters and stored registers. 89 // Offsets from frame_pointer() of function parameters and stored registers.
91 static const int kFramePointer = 0; 90 static const int kFramePointer = 0;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 206
208 // Set of non-volatile registers saved/restored by generated regexp code. 207 // Set of non-volatile registers saved/restored by generated regexp code.
209 const RegList kRegExpCalleeSaved = 208 const RegList kRegExpCalleeSaved =
210 1 << 25 | 1 << 26 | 1 << 27 | 1 << 28 | 1 << 29 | 1 << 30 | 1 << 31; 209 1 << 25 | 1 << 26 | 1 << 27 | 1 << 28 | 1 << 29 | 1 << 30 | 1 << 31;
211 210
212 #endif // V8_INTERPRETED_REGEXP 211 #endif // V8_INTERPRETED_REGEXP
213 } // namespace internal 212 } // namespace internal
214 } // namespace v8 213 } // namespace v8
215 214
216 #endif // V8_REGEXP_PPC_REGEXP_MACRO_ASSEMBLER_PPC_H_ 215 #endif // V8_REGEXP_PPC_REGEXP_MACRO_ASSEMBLER_PPC_H_
OLDNEW
« no previous file with comments | « src/ppc/macro-assembler-ppc.cc ('k') | src/regexp/ppc/regexp-macro-assembler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698