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

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

Issue 9490004: Thread the current isolate through a few places, avoiding Isolate::Current(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | src/execution.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 1048
1049 Handle<String> subject(frame_entry<String*>(re_frame, kInputString)); 1049 Handle<String> subject(frame_entry<String*>(re_frame, kInputString));
1050 1050
1051 // Current string. 1051 // Current string.
1052 bool is_ascii = subject->IsAsciiRepresentationUnderneath(); 1052 bool is_ascii = subject->IsAsciiRepresentationUnderneath();
1053 1053
1054 ASSERT(re_code->instruction_start() <= *return_address); 1054 ASSERT(re_code->instruction_start() <= *return_address);
1055 ASSERT(*return_address <= 1055 ASSERT(*return_address <=
1056 re_code->instruction_start() + re_code->instruction_size()); 1056 re_code->instruction_start() + re_code->instruction_size());
1057 1057
1058 MaybeObject* result = Execution::HandleStackGuardInterrupt(); 1058 MaybeObject* result = Execution::HandleStackGuardInterrupt(isolate);
1059 1059
1060 if (*code_handle != re_code) { // Return address no longer valid 1060 if (*code_handle != re_code) { // Return address no longer valid
1061 int delta = code_handle->address() - re_code->address(); 1061 int delta = code_handle->address() - re_code->address();
1062 // Overwrite the return address on the stack. 1062 // Overwrite the return address on the stack.
1063 *return_address += delta; 1063 *return_address += delta;
1064 } 1064 }
1065 1065
1066 if (result->IsException()) { 1066 if (result->IsException()) {
1067 return EXCEPTION; 1067 return EXCEPTION;
1068 } 1068 }
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); 1304 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex));
1305 } 1305 }
1306 1306
1307 #undef __ 1307 #undef __
1308 1308
1309 #endif // V8_INTERPRETED_REGEXP 1309 #endif // V8_INTERPRETED_REGEXP
1310 1310
1311 }} // namespace v8::internal 1311 }} // namespace v8::internal
1312 1312
1313 #endif // V8_TARGET_ARCH_ARM 1313 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/execution.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698