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 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 } | 898 } |
899 | 899 |
900 FixupCodeRelativePositions(); | 900 FixupCodeRelativePositions(); |
901 | 901 |
902 CodeDesc code_desc; | 902 CodeDesc code_desc; |
903 masm_->GetCode(&code_desc); | 903 masm_->GetCode(&code_desc); |
904 Handle<Code> code = Factory::NewCode(code_desc, | 904 Handle<Code> code = Factory::NewCode(code_desc, |
905 NULL, | 905 NULL, |
906 Code::ComputeFlags(Code::REGEXP), | 906 Code::ComputeFlags(Code::REGEXP), |
907 masm_->CodeObject()); | 907 masm_->CodeObject()); |
908 LOG(RegExpCodeCreateEvent(*code, *source)); | 908 PROFILE(RegExpCodeCreateEvent(*code, *source)); |
909 return Handle<Object>::cast(code); | 909 return Handle<Object>::cast(code); |
910 } | 910 } |
911 | 911 |
912 | 912 |
913 void RegExpMacroAssemblerX64::GoTo(Label* to) { | 913 void RegExpMacroAssemblerX64::GoTo(Label* to) { |
914 BranchOrBacktrack(no_condition, to); | 914 BranchOrBacktrack(no_condition, to); |
915 } | 915 } |
916 | 916 |
917 | 917 |
918 void RegExpMacroAssemblerX64::IfRegisterGE(int reg, | 918 void RegExpMacroAssemblerX64::IfRegisterGE(int reg, |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_NATIVE_REGEXP |
1314 | 1314 |
1315 }} // namespace v8::internal | 1315 }} // namespace v8::internal |
OLD | NEW |