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

Side by Side Diff: src/x64/regexp-macro-assembler-x64.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/win32-headers.h ('k') | test/cctest/test-api.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 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 __ neg(rbx); 754 __ neg(rbx);
755 if (mode_ == UC16) { 755 if (mode_ == UC16) {
756 __ lea(rax, Operand(rdi, rbx, times_2, -char_size())); 756 __ lea(rax, Operand(rdi, rbx, times_2, -char_size()));
757 } else { 757 } else {
758 __ lea(rax, Operand(rdi, rbx, times_1, -char_size())); 758 __ lea(rax, Operand(rdi, rbx, times_1, -char_size()));
759 } 759 }
760 // Store this value in a local variable, for use when clearing 760 // Store this value in a local variable, for use when clearing
761 // position registers. 761 // position registers.
762 __ movq(Operand(rbp, kInputStartMinusOne), rax); 762 __ movq(Operand(rbp, kInputStartMinusOne), rax);
763 763
764 #ifdef WIN32 764 #if V8_OS_WIN
765 // Ensure that we have written to each stack page, in order. Skipping a page 765 // Ensure that we have written to each stack page, in order. Skipping a page
766 // on Windows can cause segmentation faults. Assuming page size is 4k. 766 // on Windows can cause segmentation faults. Assuming page size is 4k.
767 const int kPageSize = 4096; 767 const int kPageSize = 4096;
768 const int kRegistersPerPage = kPageSize / kPointerSize; 768 const int kRegistersPerPage = kPageSize / kPointerSize;
769 for (int i = num_saved_registers_ + kRegistersPerPage - 1; 769 for (int i = num_saved_registers_ + kRegistersPerPage - 1;
770 i < num_registers_; 770 i < num_registers_;
771 i += kRegistersPerPage) { 771 i += kRegistersPerPage) {
772 __ movq(register_location(i), rax); // One write every page. 772 __ movq(register_location(i), rax); // One write every page.
773 } 773 }
774 #endif // WIN32 774 #endif // V8_OS_WIN
775 775
776 // Initialize code object pointer. 776 // Initialize code object pointer.
777 __ Move(code_object_pointer(), masm_.CodeObject()); 777 __ Move(code_object_pointer(), masm_.CodeObject());
778 778
779 Label load_char_start_regexp, start_regexp; 779 Label load_char_start_regexp, start_regexp;
780 // Load newline if index is at start, previous character otherwise. 780 // Load newline if index is at start, previous character otherwise.
781 __ cmpl(Operand(rbp, kStartIndex), Immediate(0)); 781 __ cmpl(Operand(rbp, kStartIndex), Immediate(0));
782 __ j(not_equal, &load_char_start_regexp, Label::kNear); 782 __ j(not_equal, &load_char_start_regexp, Label::kNear);
783 __ Set(current_character(), '\n'); 783 __ Set(current_character(), '\n');
784 __ jmp(&start_regexp, Label::kNear); 784 __ jmp(&start_regexp, Label::kNear);
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 } 1440 }
1441 } 1441 }
1442 1442
1443 #undef __ 1443 #undef __
1444 1444
1445 #endif // V8_INTERPRETED_REGEXP 1445 #endif // V8_INTERPRETED_REGEXP
1446 1446
1447 }} // namespace v8::internal 1447 }} // namespace v8::internal
1448 1448
1449 #endif // V8_TARGET_ARCH_X64 1449 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/win32-headers.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698