| 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 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 // Exit with Result EXCEPTION(-1) to signal thrown exception. | 953 // Exit with Result EXCEPTION(-1) to signal thrown exception. |
| 954 __ movq(rax, Immediate(EXCEPTION)); | 954 __ movq(rax, Immediate(EXCEPTION)); |
| 955 __ jmp(&exit_label_); | 955 __ jmp(&exit_label_); |
| 956 } | 956 } |
| 957 | 957 |
| 958 FixupCodeRelativePositions(); | 958 FixupCodeRelativePositions(); |
| 959 | 959 |
| 960 CodeDesc code_desc; | 960 CodeDesc code_desc; |
| 961 masm_->GetCode(&code_desc); | 961 masm_->GetCode(&code_desc); |
| 962 Handle<Code> code = Factory::NewCode(code_desc, | 962 Handle<Code> code = Factory::NewCode(code_desc, |
| 963 NULL, | |
| 964 Code::ComputeFlags(Code::REGEXP), | 963 Code::ComputeFlags(Code::REGEXP), |
| 965 masm_->CodeObject()); | 964 masm_->CodeObject()); |
| 966 PROFILE(RegExpCodeCreateEvent(*code, *source)); | 965 PROFILE(RegExpCodeCreateEvent(*code, *source)); |
| 967 return Handle<Object>::cast(code); | 966 return Handle<Object>::cast(code); |
| 968 } | 967 } |
| 969 | 968 |
| 970 | 969 |
| 971 void RegExpMacroAssemblerX64::GoTo(Label* to) { | 970 void RegExpMacroAssemblerX64::GoTo(Label* to) { |
| 972 BranchOrBacktrack(no_condition, to); | 971 BranchOrBacktrack(no_condition, to); |
| 973 } | 972 } |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1366 } | 1365 } |
| 1367 } | 1366 } |
| 1368 | 1367 |
| 1369 #undef __ | 1368 #undef __ |
| 1370 | 1369 |
| 1371 #endif // V8_INTERPRETED_REGEXP | 1370 #endif // V8_INTERPRETED_REGEXP |
| 1372 | 1371 |
| 1373 }} // namespace v8::internal | 1372 }} // namespace v8::internal |
| 1374 | 1373 |
| 1375 #endif // V8_TARGET_ARCH_X64 | 1374 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |