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

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

Issue 23687003: Fix compilation with recent MinGW64 versions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/gdb-jit.cc ('k') | src/mips/disasm-mips.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 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 __ neg(ebx); 704 __ neg(ebx);
705 if (mode_ == UC16) { 705 if (mode_ == UC16) {
706 __ lea(eax, Operand(edi, ebx, times_2, -char_size())); 706 __ lea(eax, Operand(edi, ebx, times_2, -char_size()));
707 } else { 707 } else {
708 __ lea(eax, Operand(edi, ebx, times_1, -char_size())); 708 __ lea(eax, Operand(edi, ebx, times_1, -char_size()));
709 } 709 }
710 // Store this value in a local variable, for use when clearing 710 // Store this value in a local variable, for use when clearing
711 // position registers. 711 // position registers.
712 __ mov(Operand(ebp, kInputStartMinusOne), eax); 712 __ mov(Operand(ebp, kInputStartMinusOne), eax);
713 713
714 #ifdef WIN32 714 #if V8_OS_WIN
715 // Ensure that we write to each stack page, in order. Skipping a page 715 // Ensure that we write to each stack page, in order. Skipping a page
716 // on Windows can cause segmentation faults. Assuming page size is 4k. 716 // on Windows can cause segmentation faults. Assuming page size is 4k.
717 const int kPageSize = 4096; 717 const int kPageSize = 4096;
718 const int kRegistersPerPage = kPageSize / kPointerSize; 718 const int kRegistersPerPage = kPageSize / kPointerSize;
719 for (int i = num_saved_registers_ + kRegistersPerPage - 1; 719 for (int i = num_saved_registers_ + kRegistersPerPage - 1;
720 i < num_registers_; 720 i < num_registers_;
721 i += kRegistersPerPage) { 721 i += kRegistersPerPage) {
722 __ mov(register_location(i), eax); // One write every page. 722 __ mov(register_location(i), eax); // One write every page.
723 } 723 }
724 #endif // WIN32 724 #endif // V8_OS_WIN
725 725
726 Label load_char_start_regexp, start_regexp; 726 Label load_char_start_regexp, start_regexp;
727 // Load newline if index is at start, previous character otherwise. 727 // Load newline if index is at start, previous character otherwise.
728 __ cmp(Operand(ebp, kStartIndex), Immediate(0)); 728 __ cmp(Operand(ebp, kStartIndex), Immediate(0));
729 __ j(not_equal, &load_char_start_regexp, Label::kNear); 729 __ j(not_equal, &load_char_start_regexp, Label::kNear);
730 __ mov(current_character(), '\n'); 730 __ mov(current_character(), '\n');
731 __ jmp(&start_regexp, Label::kNear); 731 __ jmp(&start_regexp, Label::kNear);
732 732
733 // Global regexp restarts matching here. 733 // Global regexp restarts matching here.
734 __ bind(&load_char_start_regexp); 734 __ bind(&load_char_start_regexp);
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 } 1323 }
1324 1324
1325 1325
1326 #undef __ 1326 #undef __
1327 1327
1328 #endif // V8_INTERPRETED_REGEXP 1328 #endif // V8_INTERPRETED_REGEXP
1329 1329
1330 }} // namespace v8::internal 1330 }} // namespace v8::internal
1331 1331
1332 #endif // V8_TARGET_ARCH_IA32 1332 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/gdb-jit.cc ('k') | src/mips/disasm-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698