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

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

Issue 24031003: remove most uses of Isolate::Current in arch specific files (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: nit Created 7 years, 3 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/x64/ic-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1181 template <typename T> 1181 template <typename T>
1182 static T& frame_entry(Address re_frame, int frame_offset) { 1182 static T& frame_entry(Address re_frame, int frame_offset) {
1183 return reinterpret_cast<T&>(Memory::int32_at(re_frame + frame_offset)); 1183 return reinterpret_cast<T&>(Memory::int32_at(re_frame + frame_offset));
1184 } 1184 }
1185 1185
1186 1186
1187 int RegExpMacroAssemblerX64::CheckStackGuardState(Address* return_address, 1187 int RegExpMacroAssemblerX64::CheckStackGuardState(Address* return_address,
1188 Code* re_code, 1188 Code* re_code,
1189 Address re_frame) { 1189 Address re_frame) {
1190 Isolate* isolate = frame_entry<Isolate*>(re_frame, kIsolate); 1190 Isolate* isolate = frame_entry<Isolate*>(re_frame, kIsolate);
1191 ASSERT(isolate == Isolate::Current());
1192 if (isolate->stack_guard()->IsStackOverflow()) { 1191 if (isolate->stack_guard()->IsStackOverflow()) {
1193 isolate->StackOverflow(); 1192 isolate->StackOverflow();
1194 return EXCEPTION; 1193 return EXCEPTION;
1195 } 1194 }
1196 1195
1197 // If not real stack overflow the stack guard was used to interrupt 1196 // If not real stack overflow the stack guard was used to interrupt
1198 // execution for another purpose. 1197 // execution for another purpose.
1199 1198
1200 // If this is a direct call from JavaScript retry the RegExp forcing the call 1199 // If this is a direct call from JavaScript retry the RegExp forcing the call
1201 // through the runtime system. Currently the direct call cannot handle a GC. 1200 // through the runtime system. Currently the direct call cannot handle a GC.
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 } 1439 }
1441 } 1440 }
1442 1441
1443 #undef __ 1442 #undef __
1444 1443
1445 #endif // V8_INTERPRETED_REGEXP 1444 #endif // V8_INTERPRETED_REGEXP
1446 1445
1447 }} // namespace v8::internal 1446 }} // namespace v8::internal
1448 1447
1449 #endif // V8_TARGET_ARCH_X64 1448 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/ic-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698