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

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

Issue 1074203003: PPC: Always update raw pointers when handling interrupts inside RegExp code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | no next file » | 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 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 static T* frame_entry_address(Address re_frame, int frame_offset) { 1108 static T* frame_entry_address(Address re_frame, int frame_offset) {
1109 return reinterpret_cast<T*>(re_frame + frame_offset); 1109 return reinterpret_cast<T*>(re_frame + frame_offset);
1110 } 1110 }
1111 1111
1112 1112
1113 int RegExpMacroAssemblerPPC::CheckStackGuardState(Address* return_address, 1113 int RegExpMacroAssemblerPPC::CheckStackGuardState(Address* return_address,
1114 Code* re_code, 1114 Code* re_code,
1115 Address re_frame) { 1115 Address re_frame) {
1116 return NativeRegExpMacroAssembler::CheckStackGuardState( 1116 return NativeRegExpMacroAssembler::CheckStackGuardState(
1117 frame_entry<Isolate*>(re_frame, kIsolate), 1117 frame_entry<Isolate*>(re_frame, kIsolate),
1118 frame_entry<int>(re_frame, kStartIndex), 1118 frame_entry<intptr_t>(re_frame, kStartIndex),
1119 frame_entry<int>(re_frame, kDirectCall) == 1, return_address, re_code, 1119 frame_entry<intptr_t>(re_frame, kDirectCall) == 1, return_address,
1120 frame_entry_address<String*>(re_frame, kInputString), 1120 re_code, frame_entry_address<String*>(re_frame, kInputString),
1121 frame_entry_address<const byte*>(re_frame, kInputStart), 1121 frame_entry_address<const byte*>(re_frame, kInputStart),
1122 frame_entry_address<const byte*>(re_frame, kInputEnd)); 1122 frame_entry_address<const byte*>(re_frame, kInputEnd));
1123 } 1123 }
1124 1124
1125 1125
1126 MemOperand RegExpMacroAssemblerPPC::register_location(int register_index) { 1126 MemOperand RegExpMacroAssemblerPPC::register_location(int register_index) {
1127 DCHECK(register_index < (1 << 30)); 1127 DCHECK(register_index < (1 << 30));
1128 if (num_registers_ <= register_index) { 1128 if (num_registers_ <= register_index) {
1129 num_registers_ = register_index + 1; 1129 num_registers_ = register_index + 1;
1130 } 1130 }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 } 1246 }
1247 1247
1248 1248
1249 #undef __ 1249 #undef __
1250 1250
1251 #endif // V8_INTERPRETED_REGEXP 1251 #endif // V8_INTERPRETED_REGEXP
1252 } 1252 }
1253 } // namespace v8::internal 1253 } // namespace v8::internal
1254 1254
1255 #endif // V8_TARGET_ARCH_PPC 1255 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698