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

Side by Side Diff: src/mips/regexp-macro-assembler-mips.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 | « src/jsregexp.cc ('k') | src/runtime.cc » ('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 2006-2010 the V8 project authors. All rights reserved. 1 // Copyright 2006-2010 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 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 Handle<Code> code_handle(re_code); 1049 Handle<Code> code_handle(re_code);
1050 1050
1051 Handle<String> subject(frame_entry<String*>(re_frame, kInputString)); 1051 Handle<String> subject(frame_entry<String*>(re_frame, kInputString));
1052 // Current string. 1052 // Current string.
1053 bool is_ascii = subject->IsAsciiRepresentationUnderneath(); 1053 bool is_ascii = subject->IsAsciiRepresentationUnderneath();
1054 1054
1055 ASSERT(re_code->instruction_start() <= *return_address); 1055 ASSERT(re_code->instruction_start() <= *return_address);
1056 ASSERT(*return_address <= 1056 ASSERT(*return_address <=
1057 re_code->instruction_start() + re_code->instruction_size()); 1057 re_code->instruction_start() + re_code->instruction_size());
1058 1058
1059 MaybeObject* result = Execution::HandleStackGuardInterrupt(); 1059 MaybeObject* result = Execution::HandleStackGuardInterrupt(isolate);
1060 1060
1061 if (*code_handle != re_code) { // Return address no longer valid. 1061 if (*code_handle != re_code) { // Return address no longer valid.
1062 int delta = code_handle->address() - re_code->address(); 1062 int delta = code_handle->address() - re_code->address();
1063 // Overwrite the return address on the stack. 1063 // Overwrite the return address on the stack.
1064 *return_address += delta; 1064 *return_address += delta;
1065 } 1065 }
1066 1066
1067 if (result->IsException()) { 1067 if (result->IsException()) {
1068 return EXCEPTION; 1068 return EXCEPTION;
1069 } 1069 }
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 } 1270 }
1271 1271
1272 1272
1273 #undef __ 1273 #undef __
1274 1274
1275 #endif // V8_INTERPRETED_REGEXP 1275 #endif // V8_INTERPRETED_REGEXP
1276 1276
1277 }} // namespace v8::internal 1277 }} // namespace v8::internal
1278 1278
1279 #endif // V8_TARGET_ARCH_MIPS 1279 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/jsregexp.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698