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

Side by Side Diff: src/arm64/regexp-macro-assembler-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "cpu-profiler.h" 9 #include "cpu-profiler.h"
10 #include "unicode.h" 10 #include "unicode.h"
(...skipping 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1308 1308
1309 Handle<String> subject(frame_entry<String*>(re_frame, kInput)); 1309 Handle<String> subject(frame_entry<String*>(re_frame, kInput));
1310 1310
1311 // Current string. 1311 // Current string.
1312 bool is_ascii = subject->IsOneByteRepresentationUnderneath(); 1312 bool is_ascii = subject->IsOneByteRepresentationUnderneath();
1313 1313
1314 ASSERT(re_code->instruction_start() <= *return_address); 1314 ASSERT(re_code->instruction_start() <= *return_address);
1315 ASSERT(*return_address <= 1315 ASSERT(*return_address <=
1316 re_code->instruction_start() + re_code->instruction_size()); 1316 re_code->instruction_start() + re_code->instruction_size());
1317 1317
1318 Object* result = Execution::HandleStackGuardInterrupt(isolate); 1318 Object* result = isolate->stack_guard()->HandleInterrupts();
1319 1319
1320 if (*code_handle != re_code) { // Return address no longer valid 1320 if (*code_handle != re_code) { // Return address no longer valid
1321 int delta = code_handle->address() - re_code->address(); 1321 int delta = code_handle->address() - re_code->address();
1322 // Overwrite the return address on the stack. 1322 // Overwrite the return address on the stack.
1323 *return_address += delta; 1323 *return_address += delta;
1324 } 1324 }
1325 1325
1326 if (result->IsException()) { 1326 if (result->IsException()) {
1327 return EXCEPTION; 1327 return EXCEPTION;
1328 } 1328 }
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
1696 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW)); 1696 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW));
1697 } 1697 }
1698 } 1698 }
1699 } 1699 }
1700 1700
1701 #endif // V8_INTERPRETED_REGEXP 1701 #endif // V8_INTERPRETED_REGEXP
1702 1702
1703 }} // namespace v8::internal 1703 }} // namespace v8::internal
1704 1704
1705 #endif // V8_TARGET_ARCH_ARM64 1705 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/regexp-macro-assembler-arm.cc ('k') | src/debug.h » ('j') | src/execution.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698