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

Side by Side Diff: src/arm/regexp-macro-assembler-arm.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_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "cpu-profiler.h" 9 #include "cpu-profiler.h"
10 #include "unicode.h" 10 #include "unicode.h"
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 1064
1065 Handle<String> subject(frame_entry<String*>(re_frame, kInputString)); 1065 Handle<String> subject(frame_entry<String*>(re_frame, kInputString));
1066 1066
1067 // Current string. 1067 // Current string.
1068 bool is_ascii = subject->IsOneByteRepresentationUnderneath(); 1068 bool is_ascii = subject->IsOneByteRepresentationUnderneath();
1069 1069
1070 ASSERT(re_code->instruction_start() <= *return_address); 1070 ASSERT(re_code->instruction_start() <= *return_address);
1071 ASSERT(*return_address <= 1071 ASSERT(*return_address <=
1072 re_code->instruction_start() + re_code->instruction_size()); 1072 re_code->instruction_start() + re_code->instruction_size());
1073 1073
1074 Object* result = Execution::HandleStackGuardInterrupt(isolate); 1074 Object* result = isolate->stack_guard()->HandleInterrupts();
1075 1075
1076 if (*code_handle != re_code) { // Return address no longer valid 1076 if (*code_handle != re_code) { // Return address no longer valid
1077 int delta = code_handle->address() - re_code->address(); 1077 int delta = code_handle->address() - re_code->address();
1078 // Overwrite the return address on the stack. 1078 // Overwrite the return address on the stack.
1079 *return_address += delta; 1079 *return_address += delta;
1080 } 1080 }
1081 1081
1082 if (result->IsException()) { 1082 if (result->IsException()) {
1083 return EXCEPTION; 1083 return EXCEPTION;
1084 } 1084 }
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 } 1268 }
1269 1269
1270 1270
1271 #undef __ 1271 #undef __
1272 1272
1273 #endif // V8_INTERPRETED_REGEXP 1273 #endif // V8_INTERPRETED_REGEXP
1274 1274
1275 }} // namespace v8::internal 1275 }} // namespace v8::internal
1276 1276
1277 #endif // V8_TARGET_ARCH_ARM 1277 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/arm64/regexp-macro-assembler-arm64.cc » ('j') | src/execution.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698