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

Side by Side Diff: src/ia32/code-stubs-ia32.cc

Issue 5736008: Provide baseline for experimental GC implementation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 10 years 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 3890 matching lines...) Expand 10 before | Expand all | Expand 10 after
3901 3901
3902 // ebx: last_match_info backing store (FixedArray) 3902 // ebx: last_match_info backing store (FixedArray)
3903 // edx: number of capture registers 3903 // edx: number of capture registers
3904 // Store the capture count. 3904 // Store the capture count.
3905 __ SmiTag(edx); // Number of capture registers to smi. 3905 __ SmiTag(edx); // Number of capture registers to smi.
3906 __ mov(FieldOperand(ebx, RegExpImpl::kLastCaptureCountOffset), edx); 3906 __ mov(FieldOperand(ebx, RegExpImpl::kLastCaptureCountOffset), edx);
3907 __ SmiUntag(edx); // Number of capture registers back from smi. 3907 __ SmiUntag(edx); // Number of capture registers back from smi.
3908 // Store last subject and last input. 3908 // Store last subject and last input.
3909 __ mov(eax, Operand(esp, kSubjectOffset)); 3909 __ mov(eax, Operand(esp, kSubjectOffset));
3910 __ mov(FieldOperand(ebx, RegExpImpl::kLastSubjectOffset), eax); 3910 __ mov(FieldOperand(ebx, RegExpImpl::kLastSubjectOffset), eax);
3911 #ifdef ENABLE_CARDMARKING_WRITE_BARRIER
3911 __ mov(ecx, ebx); 3912 __ mov(ecx, ebx);
3912 __ RecordWrite(ecx, RegExpImpl::kLastSubjectOffset, eax, edi); 3913 __ RecordWrite(ecx, RegExpImpl::kLastSubjectOffset, eax, edi);
3914 #endif
3913 __ mov(eax, Operand(esp, kSubjectOffset)); 3915 __ mov(eax, Operand(esp, kSubjectOffset));
3914 __ mov(FieldOperand(ebx, RegExpImpl::kLastInputOffset), eax); 3916 __ mov(FieldOperand(ebx, RegExpImpl::kLastInputOffset), eax);
3917 #ifdef ENABLE_CARDMARKING_WRITE_BARRIER
3915 __ mov(ecx, ebx); 3918 __ mov(ecx, ebx);
3916 __ RecordWrite(ecx, RegExpImpl::kLastInputOffset, eax, edi); 3919 __ RecordWrite(ecx, RegExpImpl::kLastInputOffset, eax, edi);
3920 #endif
3917 3921
3918 // Get the static offsets vector filled by the native regexp code. 3922 // Get the static offsets vector filled by the native regexp code.
3919 ExternalReference address_of_static_offsets_vector = 3923 ExternalReference address_of_static_offsets_vector =
3920 ExternalReference::address_of_static_offsets_vector(); 3924 ExternalReference::address_of_static_offsets_vector();
3921 __ mov(ecx, Immediate(address_of_static_offsets_vector)); 3925 __ mov(ecx, Immediate(address_of_static_offsets_vector));
3922 3926
3923 // ebx: last_match_info backing store (FixedArray) 3927 // ebx: last_match_info backing store (FixedArray)
3924 // ecx: offsets vector 3928 // ecx: offsets vector
3925 // edx: number of capture registers 3929 // edx: number of capture registers
3926 NearLabel next_capture, done; 3930 NearLabel next_capture, done;
(...skipping 2356 matching lines...) Expand 10 before | Expand all | Expand 10 after
6283 // Do a tail call to the rewritten stub. 6287 // Do a tail call to the rewritten stub.
6284 __ jmp(Operand(edi)); 6288 __ jmp(Operand(edi));
6285 } 6289 }
6286 6290
6287 6291
6288 #undef __ 6292 #undef __
6289 6293
6290 } } // namespace v8::internal 6294 } } // namespace v8::internal
6291 6295
6292 #endif // V8_TARGET_ARCH_IA32 6296 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/globals.h ('K') | « src/heap-inl.h ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698