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

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

Issue 7050039: Revert 8122 (stub call asserts) while test failures are investigated. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 6 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 __ lea(rax, Operand(rsi, rdi, times_1, 0)); 424 __ lea(rax, Operand(rsi, rdi, times_1, 0));
425 // Compute and set byte_offset1 (start of capture). 425 // Compute and set byte_offset1 (start of capture).
426 __ lea(rdi, Operand(rsi, rdx, times_1, 0)); 426 __ lea(rdi, Operand(rsi, rdx, times_1, 0));
427 // Set byte_offset2. 427 // Set byte_offset2.
428 __ movq(rsi, rax); 428 __ movq(rsi, rax);
429 // Set byte_length. 429 // Set byte_length.
430 __ movq(rdx, rbx); 430 __ movq(rdx, rbx);
431 // Isolate. 431 // Isolate.
432 __ LoadAddress(rcx, ExternalReference::isolate_address()); 432 __ LoadAddress(rcx, ExternalReference::isolate_address());
433 #endif 433 #endif
434 434 ExternalReference compare =
435 { // NOLINT: Can't find a way to open this scope without confusing the 435 ExternalReference::re_case_insensitive_compare_uc16(masm_.isolate());
436 // linter. 436 __ CallCFunction(compare, num_arguments);
437 AllowExternalCallThatCantCauseGC scope(&masm_);
438 ExternalReference compare =
439 ExternalReference::re_case_insensitive_compare_uc16(masm_.isolate());
440 __ CallCFunction(compare, num_arguments);
441 }
442 437
443 // Restore original values before reacting on result value. 438 // Restore original values before reacting on result value.
444 __ Move(code_object_pointer(), masm_.CodeObject()); 439 __ Move(code_object_pointer(), masm_.CodeObject());
445 __ pop(backtrack_stackpointer()); 440 __ pop(backtrack_stackpointer());
446 #ifndef _WIN64 441 #ifndef _WIN64
447 __ pop(rdi); 442 __ pop(rdi);
448 __ pop(rsi); 443 __ pop(rsi);
449 #endif 444 #endif
450 445
451 // Check if function returned non-zero for success or zero for failure. 446 // Check if function returned non-zero for success or zero for failure.
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 __ Set(rax, 0); 701 __ Set(rax, 0);
707 __ jmp(&exit_label_); 702 __ jmp(&exit_label_);
708 } 703 }
709 704
710 705
711 Handle<HeapObject> RegExpMacroAssemblerX64::GetCode(Handle<String> source) { 706 Handle<HeapObject> RegExpMacroAssemblerX64::GetCode(Handle<String> source) {
712 // Finalize code - write the entry point code now we know how many 707 // Finalize code - write the entry point code now we know how many
713 // registers we need. 708 // registers we need.
714 // Entry code: 709 // Entry code:
715 __ bind(&entry_label_); 710 __ bind(&entry_label_);
716 711 // Start new stack frame.
717 // Tell the system that we have a stack frame. Because the type is MANUAL, no
718 // is generated.
719 FrameScope scope(&masm_, StackFrame::MANUAL);
720
721 // Actually emit code to start a new stack frame.
722 __ push(rbp); 712 __ push(rbp);
723 __ movq(rbp, rsp); 713 __ movq(rbp, rsp);
724 // Save parameters and callee-save registers. Order here should correspond 714 // Save parameters and callee-save registers. Order here should correspond
725 // to order of kBackup_ebx etc. 715 // to order of kBackup_ebx etc.
726 #ifdef _WIN64 716 #ifdef _WIN64
727 // MSVC passes arguments in rcx, rdx, r8, r9, with backing stack slots. 717 // MSVC passes arguments in rcx, rdx, r8, r9, with backing stack slots.
728 // Store register parameters in pre-allocated stack slots, 718 // Store register parameters in pre-allocated stack slots,
729 __ movq(Operand(rbp, kInputString), rcx); 719 __ movq(Operand(rbp, kInputString), rcx);
730 __ movq(Operand(rbp, kStartIndex), rdx); // Passed as int32 in edx. 720 __ movq(Operand(rbp, kStartIndex), rdx); // Passed as int32 in edx.
731 __ movq(Operand(rbp, kInputStart), r8); 721 __ movq(Operand(rbp, kInputStart), r8);
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 } 1389 }
1400 } 1390 }
1401 1391
1402 #undef __ 1392 #undef __
1403 1393
1404 #endif // V8_INTERPRETED_REGEXP 1394 #endif // V8_INTERPRETED_REGEXP
1405 1395
1406 }} // namespace v8::internal 1396 }} // namespace v8::internal
1407 1397
1408 #endif // V8_TARGET_ARCH_X64 1398 #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