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

Side by Side Diff: src/ia32/regexp-macro-assembler-ia32.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_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "cpu-profiler.h" 9 #include "cpu-profiler.h"
10 #include "unicode.h" 10 #include "unicode.h"
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after
1096 1096
1097 Handle<String> subject(frame_entry<String*>(re_frame, kInputString)); 1097 Handle<String> subject(frame_entry<String*>(re_frame, kInputString));
1098 1098
1099 // Current string. 1099 // Current string.
1100 bool is_ascii = subject->IsOneByteRepresentationUnderneath(); 1100 bool is_ascii = subject->IsOneByteRepresentationUnderneath();
1101 1101
1102 ASSERT(re_code->instruction_start() <= *return_address); 1102 ASSERT(re_code->instruction_start() <= *return_address);
1103 ASSERT(*return_address <= 1103 ASSERT(*return_address <=
1104 re_code->instruction_start() + re_code->instruction_size()); 1104 re_code->instruction_start() + re_code->instruction_size());
1105 1105
1106 Object* result = Execution::HandleStackGuardInterrupt(isolate); 1106 Object* result = isolate->stack_guard()->HandleInterrupts();
1107 1107
1108 if (*code_handle != re_code) { // Return address no longer valid 1108 if (*code_handle != re_code) { // Return address no longer valid
1109 int delta = code_handle->address() - re_code->address(); 1109 int delta = code_handle->address() - re_code->address();
1110 // Overwrite the return address on the stack. 1110 // Overwrite the return address on the stack.
1111 *return_address += delta; 1111 *return_address += delta;
1112 } 1112 }
1113 1113
1114 if (result->IsException()) { 1114 if (result->IsException()) {
1115 return EXCEPTION; 1115 return EXCEPTION;
1116 } 1116 }
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 } 1299 }
1300 1300
1301 1301
1302 #undef __ 1302 #undef __
1303 1303
1304 #endif // V8_INTERPRETED_REGEXP 1304 #endif // V8_INTERPRETED_REGEXP
1305 1305
1306 }} // namespace v8::internal 1306 }} // namespace v8::internal
1307 1307
1308 #endif // V8_TARGET_ARCH_IA32 1308 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/execution.cc ('K') | « src/heap.cc ('k') | src/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698