| 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 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1139 } | 1139 } |
| 1140 | 1140 |
| 1141 | 1141 |
| 1142 // Helper function for reading a value out of a stack frame. | 1142 // Helper function for reading a value out of a stack frame. |
| 1143 template <typename T> | 1143 template <typename T> |
| 1144 static T& frame_entry(Address re_frame, int frame_offset) { | 1144 static T& frame_entry(Address re_frame, int frame_offset) { |
| 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 int RegExpMacroAssemblerMIPS::CheckStackGuardState(Address* return_address, | 1149 int64_t RegExpMacroAssemblerMIPS::CheckStackGuardState(Address* return_address, |
| 1150 Code* re_code, | 1150 Code* re_code, |
| 1151 Address re_frame) { | 1151 Address re_frame) { |
| 1152 Isolate* isolate = frame_entry<Isolate*>(re_frame, kIsolate); | 1152 Isolate* isolate = frame_entry<Isolate*>(re_frame, kIsolate); |
| 1153 StackLimitCheck check(isolate); | 1153 StackLimitCheck check(isolate); |
| 1154 if (check.JsHasOverflowed()) { | 1154 if (check.JsHasOverflowed()) { |
| 1155 isolate->StackOverflow(); | 1155 isolate->StackOverflow(); |
| 1156 return EXCEPTION; | 1156 return EXCEPTION; |
| 1157 } | 1157 } |
| 1158 | 1158 |
| 1159 // If not real stack overflow the stack guard was used to interrupt | 1159 // If not real stack overflow the stack guard was used to interrupt |
| 1160 // execution for another purpose. | 1160 // execution for another purpose. |
| 1161 | 1161 |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1361 } | 1361 } |
| 1362 } | 1362 } |
| 1363 | 1363 |
| 1364 #undef __ | 1364 #undef __ |
| 1365 | 1365 |
| 1366 #endif // V8_INTERPRETED_REGEXP | 1366 #endif // V8_INTERPRETED_REGEXP |
| 1367 | 1367 |
| 1368 }} // namespace v8::internal | 1368 }} // namespace v8::internal |
| 1369 | 1369 |
| 1370 #endif // V8_TARGET_ARCH_MIPS64 | 1370 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |