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

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

Issue 264233005: Clean up stack guard interrupts. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
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 "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "unicode.h" 9 #include "unicode.h"
10 #include "log.h" 10 #include "log.h"
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 Handle<Code> code_handle(re_code); 1123 Handle<Code> code_handle(re_code);
1124 1124
1125 Handle<String> subject(frame_entry<String*>(re_frame, kInputString)); 1125 Handle<String> subject(frame_entry<String*>(re_frame, kInputString));
1126 // Current string. 1126 // Current string.
1127 bool is_ascii = subject->IsOneByteRepresentationUnderneath(); 1127 bool is_ascii = subject->IsOneByteRepresentationUnderneath();
1128 1128
1129 ASSERT(re_code->instruction_start() <= *return_address); 1129 ASSERT(re_code->instruction_start() <= *return_address);
1130 ASSERT(*return_address <= 1130 ASSERT(*return_address <=
1131 re_code->instruction_start() + re_code->instruction_size()); 1131 re_code->instruction_start() + re_code->instruction_size());
1132 1132
1133 Object* result = Execution::HandleStackGuardInterrupt(isolate); 1133 Object* result = isolate->stack_guard()->HandleInterrupts();
1134 1134
1135 if (*code_handle != re_code) { // Return address no longer valid. 1135 if (*code_handle != re_code) { // Return address no longer valid.
1136 int delta = code_handle->address() - re_code->address(); 1136 int delta = code_handle->address() - re_code->address();
1137 // Overwrite the return address on the stack. 1137 // Overwrite the return address on the stack.
1138 *return_address += delta; 1138 *return_address += delta;
1139 } 1139 }
1140 1140
1141 if (result->IsException()) { 1141 if (result->IsException()) {
1142 return EXCEPTION; 1142 return EXCEPTION;
1143 } 1143 }
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 } 1315 }
1316 1316
1317 1317
1318 #undef __ 1318 #undef __
1319 1319
1320 #endif // V8_INTERPRETED_REGEXP 1320 #endif // V8_INTERPRETED_REGEXP
1321 1321
1322 }} // namespace v8::internal 1322 }} // namespace v8::internal
1323 1323
1324 #endif // V8_TARGET_ARCH_MIPS 1324 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« src/execution.cc ('K') | « src/isolate.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698