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

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

Issue 17378: Capture register clearing on loop iteration (Closed)
Patch Set: Created 11 years, 11 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
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 int cp_offset) { 921 int cp_offset) {
922 if (cp_offset == 0) { 922 if (cp_offset == 0) {
923 __ mov(register_location(reg), edi); 923 __ mov(register_location(reg), edi);
924 } else { 924 } else {
925 __ lea(eax, Operand(edi, cp_offset * char_size())); 925 __ lea(eax, Operand(edi, cp_offset * char_size()));
926 __ mov(register_location(reg), eax); 926 __ mov(register_location(reg), eax);
927 } 927 }
928 } 928 }
929 929
930 930
931 void RegExpMacroAssemblerIA32::ClearRegister(int reg) {
932 __ mov(register_location(reg), esi);
Lasse Reichstein 2009/01/14 08:38:34 The esi register does not hold the needed value (o
Christian Plesner Hansen 2009/01/14 11:31:35 Fixed
933 }
934
935
931 void RegExpMacroAssemblerIA32::WriteStackPointerToRegister(int reg) { 936 void RegExpMacroAssemblerIA32::WriteStackPointerToRegister(int reg) {
932 __ mov(register_location(reg), backtrack_stackpointer()); 937 __ mov(register_location(reg), backtrack_stackpointer());
933 } 938 }
934 939
935 940
936 // Private methods: 941 // Private methods:
937 942
938 943
939 static unibrow::Mapping<unibrow::Ecma262Canonicalize> canonicalize; 944 static unibrow::Mapping<unibrow::Ecma262Canonicalize> canonicalize;
940 945
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 1204
1200 1205
1201 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg, 1206 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg,
1202 ArraySlice* buffer) { 1207 ArraySlice* buffer) {
1203 __ mov(reg, buffer->array()); 1208 __ mov(reg, buffer->array());
1204 __ add(Operand(reg), Immediate(buffer->base_offset())); 1209 __ add(Operand(reg), Immediate(buffer->base_offset()));
1205 } 1210 }
1206 1211
1207 #undef __ 1212 #undef __
1208 }} // namespace v8::internal 1213 }} // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698