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

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

Issue 173003: Fix IA32 build when not using native regexp compiler. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 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
OLDNEW
1 // Copyright 2008-2009 the V8 project authors. All rights reserved. 1 // Copyright 2008-2009 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 20 matching lines...) Expand all
31 #include "ast.h" 31 #include "ast.h"
32 #include "regexp-stack.h" 32 #include "regexp-stack.h"
33 #include "macro-assembler.h" 33 #include "macro-assembler.h"
34 #include "regexp-macro-assembler.h" 34 #include "regexp-macro-assembler.h"
35 #include "ia32/macro-assembler-ia32.h" 35 #include "ia32/macro-assembler-ia32.h"
36 #include "ia32/regexp-macro-assembler-ia32.h" 36 #include "ia32/regexp-macro-assembler-ia32.h"
37 37
38 namespace v8 { 38 namespace v8 {
39 namespace internal { 39 namespace internal {
40 40
41 #ifdef V8_NATIVE_REGEXP
Lasse Reichstein 2009/08/19 05:19:57 If we don't use native regexps, this file should n
41 /* 42 /*
42 * This assembler uses the following register assignment convention 43 * This assembler uses the following register assignment convention
43 * - edx : current character. Must be loaded using LoadCurrentCharacter 44 * - edx : current character. Must be loaded using LoadCurrentCharacter
44 * before using any of the dispatch methods. 45 * before using any of the dispatch methods.
45 * - edi : current position in input, as negative offset from end of string. 46 * - edi : current position in input, as negative offset from end of string.
46 * Please notice that this is the byte offset, not the character offset! 47 * Please notice that this is the byte offset, not the character offset!
47 * - esi : end of input (points to byte after last character in input). 48 * - esi : end of input (points to byte after last character in input).
48 * - ebp : frame pointer. Used to access arguments, local variables and 49 * - ebp : frame pointer. Used to access arguments, local variables and
49 * RegExp registers. 50 * RegExp registers.
50 * - esp : points to tip of C stack. 51 * - esp : points to tip of C stack.
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 } else { 1166 } else {
1166 ASSERT(characters == 1); 1167 ASSERT(characters == 1);
1167 __ movzx_w(current_character(), 1168 __ movzx_w(current_character(),
1168 Operand(esi, edi, times_1, cp_offset * sizeof(uc16))); 1169 Operand(esi, edi, times_1, cp_offset * sizeof(uc16)));
1169 } 1170 }
1170 } 1171 }
1171 } 1172 }
1172 1173
1173 1174
1174 #undef __ 1175 #undef __
1176
1177 #endif // V8_NATIVE_REGEXP
1178
1175 }} // namespace v8::internal 1179 }} // namespace v8::internal
OLDNEW
« src/ia32/regexp-macro-assembler-ia32.h ('K') | « src/ia32/regexp-macro-assembler-ia32.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698