OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 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 21 matching lines...) Expand all Loading... |
32 #include "ast.h" | 32 #include "ast.h" |
33 #include "regexp-stack.h" | 33 #include "regexp-stack.h" |
34 #include "macro-assembler.h" | 34 #include "macro-assembler.h" |
35 #include "regexp-macro-assembler.h" | 35 #include "regexp-macro-assembler.h" |
36 #include "x64/macro-assembler-x64.h" | 36 #include "x64/macro-assembler-x64.h" |
37 #include "x64/regexp-macro-assembler-x64.h" | 37 #include "x64/regexp-macro-assembler-x64.h" |
38 | 38 |
39 namespace v8 { | 39 namespace v8 { |
40 namespace internal { | 40 namespace internal { |
41 | 41 |
42 #ifdef V8_NATIVE_REGEXP | 42 #ifndef V8_INTERPRETED_REGEXP |
43 | 43 |
44 /* | 44 /* |
45 * This assembler uses the following register assignment convention | 45 * This assembler uses the following register assignment convention |
46 * - rdx : currently loaded character(s) as ASCII or UC16. Must be loaded using | 46 * - rdx : currently loaded character(s) as ASCII or UC16. Must be loaded using |
47 * LoadCurrentCharacter before using any of the dispatch methods. | 47 * LoadCurrentCharacter before using any of the dispatch methods. |
48 * - rdi : current position in input, as negative offset from end of string. | 48 * - rdi : current position in input, as negative offset from end of string. |
49 * Please notice that this is the byte offset, not the character | 49 * Please notice that this is the byte offset, not the character |
50 * offset! Is always a 32-bit signed (negative) offset, but must be | 50 * offset! Is always a 32-bit signed (negative) offset, but must be |
51 * maintained sign-extended to 64 bits, since it is used as index. | 51 * maintained sign-extended to 64 bits, since it is used as index. |
52 * - rsi : end of input (points to byte after last character in input), | 52 * - rsi : end of input (points to byte after last character in input), |
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1303 } else { | 1303 } else { |
1304 ASSERT(characters == 1); | 1304 ASSERT(characters == 1); |
1305 __ movzxwl(current_character(), | 1305 __ movzxwl(current_character(), |
1306 Operand(rsi, rdi, times_1, cp_offset * sizeof(uc16))); | 1306 Operand(rsi, rdi, times_1, cp_offset * sizeof(uc16))); |
1307 } | 1307 } |
1308 } | 1308 } |
1309 } | 1309 } |
1310 | 1310 |
1311 #undef __ | 1311 #undef __ |
1312 | 1312 |
1313 #endif // V8_NATIVE_REGEXP | 1313 #endif // V8_INTERPRETED_REGEXP |
1314 | 1314 |
1315 }} // namespace v8::internal | 1315 }} // namespace v8::internal |
OLD | NEW |