OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/log.h" | 10 #include "src/log.h" |
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1145 return reinterpret_cast<T&>(Memory::int32_at(re_frame + frame_offset)); | 1145 return reinterpret_cast<T&>(Memory::int32_at(re_frame + frame_offset)); |
1146 } | 1146 } |
1147 | 1147 |
1148 | 1148 |
1149 template <typename T> | 1149 template <typename T> |
1150 static T* frame_entry_address(Address re_frame, int frame_offset) { | 1150 static T* frame_entry_address(Address re_frame, int frame_offset) { |
1151 return reinterpret_cast<T*>(re_frame + frame_offset); | 1151 return reinterpret_cast<T*>(re_frame + frame_offset); |
1152 } | 1152 } |
1153 | 1153 |
1154 | 1154 |
1155 int64 RegExpMacroAssemblerMIPS::CheckStackGuardState(Address* return_address, | 1155 int64_t RegExpMacroAssemblerMIPS::CheckStackGuardState(Address* return_address, |
1156 Code* re_code, | 1156 Code* re_code, |
1157 Address re_frame) { | 1157 Address re_frame) { |
1158 return NativeRegExpMacroAssembler::CheckStackGuardState( | 1158 return NativeRegExpMacroAssembler::CheckStackGuardState( |
1159 frame_entry<Isolate*>(re_frame, kIsolate), | 1159 frame_entry<Isolate*>(re_frame, kIsolate), |
1160 frame_entry<int>(re_frame, kStartIndex), | 1160 frame_entry<int>(re_frame, kStartIndex), |
1161 frame_entry<int>(re_frame, kDirectCall) == 1, return_address, re_code, | 1161 frame_entry<int>(re_frame, kDirectCall) == 1, return_address, re_code, |
1162 frame_entry_address<String*>(re_frame, kInputString), | 1162 frame_entry_address<String*>(re_frame, kInputString), |
1163 frame_entry_address<const byte*>(re_frame, kInputStart), | 1163 frame_entry_address<const byte*>(re_frame, kInputStart), |
1164 frame_entry_address<const byte*>(re_frame, kInputEnd)); | 1164 frame_entry_address<const byte*>(re_frame, kInputEnd)); |
1165 } | 1165 } |
1166 | 1166 |
1167 | 1167 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1282 } | 1282 } |
1283 } | 1283 } |
1284 | 1284 |
1285 #undef __ | 1285 #undef __ |
1286 | 1286 |
1287 #endif // V8_INTERPRETED_REGEXP | 1287 #endif // V8_INTERPRETED_REGEXP |
1288 | 1288 |
1289 }} // namespace v8::internal | 1289 }} // namespace v8::internal |
1290 | 1290 |
1291 #endif // V8_TARGET_ARCH_MIPS64 | 1291 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |