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

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

Issue 153773002: A64: Synchronize with r16679. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/macro-assembler-x64.cc ('k') | src/x64/stub-cache-x64.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 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 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 __ bind(&exit_with_exception); 991 __ bind(&exit_with_exception);
992 // Exit with Result EXCEPTION(-1) to signal thrown exception. 992 // Exit with Result EXCEPTION(-1) to signal thrown exception.
993 __ Set(rax, EXCEPTION); 993 __ Set(rax, EXCEPTION);
994 __ jmp(&return_rax); 994 __ jmp(&return_rax);
995 } 995 }
996 996
997 FixupCodeRelativePositions(); 997 FixupCodeRelativePositions();
998 998
999 CodeDesc code_desc; 999 CodeDesc code_desc;
1000 masm_.GetCode(&code_desc); 1000 masm_.GetCode(&code_desc);
1001 Isolate* isolate = ISOLATE; 1001 Isolate* isolate = this->isolate();
1002 Handle<Code> code = isolate->factory()->NewCode( 1002 Handle<Code> code = isolate->factory()->NewCode(
1003 code_desc, Code::ComputeFlags(Code::REGEXP), 1003 code_desc, Code::ComputeFlags(Code::REGEXP),
1004 masm_.CodeObject()); 1004 masm_.CodeObject());
1005 PROFILE(isolate, RegExpCodeCreateEvent(*code, *source)); 1005 PROFILE(isolate, RegExpCodeCreateEvent(*code, *source));
1006 return Handle<HeapObject>::cast(code); 1006 return Handle<HeapObject>::cast(code);
1007 } 1007 }
1008 1008
1009 1009
1010 void RegExpMacroAssemblerX64::GoTo(Label* to) { 1010 void RegExpMacroAssemblerX64::GoTo(Label* to) {
1011 BranchOrBacktrack(no_condition, to); 1011 BranchOrBacktrack(no_condition, to);
(...skipping 169 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/macro-assembler-x64.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698