OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
948 __ bind(&exit_with_exception); | 948 __ bind(&exit_with_exception); |
949 // Exit with Result EXCEPTION(-1) to signal thrown exception. | 949 // Exit with Result EXCEPTION(-1) to signal thrown exception. |
950 __ movq(rax, Immediate(EXCEPTION)); | 950 __ movq(rax, Immediate(EXCEPTION)); |
951 __ jmp(&exit_label_); | 951 __ jmp(&exit_label_); |
952 } | 952 } |
953 | 953 |
954 FixupCodeRelativePositions(); | 954 FixupCodeRelativePositions(); |
955 | 955 |
956 CodeDesc code_desc; | 956 CodeDesc code_desc; |
957 masm_->GetCode(&code_desc); | 957 masm_->GetCode(&code_desc); |
958 Handle<Code> code = FACTORY->NewCode(code_desc, | 958 Isolate* isolate = ISOLATE; |
959 Code::ComputeFlags(Code::REGEXP), | 959 Handle<Code> code = isolate->factory()->NewCode( |
960 masm_->CodeObject()); | 960 code_desc, Code::ComputeFlags(Code::REGEXP), |
961 PROFILE(RegExpCodeCreateEvent(*code, *source)); | 961 masm_->CodeObject()); |
| 962 PROFILE(isolate, RegExpCodeCreateEvent(*code, *source)); |
962 return Handle<Object>::cast(code); | 963 return Handle<Object>::cast(code); |
963 } | 964 } |
964 | 965 |
965 | 966 |
966 void RegExpMacroAssemblerX64::GoTo(Label* to) { | 967 void RegExpMacroAssemblerX64::GoTo(Label* to) { |
967 BranchOrBacktrack(no_condition, to); | 968 BranchOrBacktrack(no_condition, to); |
968 } | 969 } |
969 | 970 |
970 | 971 |
971 void RegExpMacroAssemblerX64::IfRegisterGE(int reg, | 972 void RegExpMacroAssemblerX64::IfRegisterGE(int reg, |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1376 } | 1377 } |
1377 } | 1378 } |
1378 | 1379 |
1379 #undef __ | 1380 #undef __ |
1380 | 1381 |
1381 #endif // V8_INTERPRETED_REGEXP | 1382 #endif // V8_INTERPRETED_REGEXP |
1382 | 1383 |
1383 }} // namespace v8::internal | 1384 }} // namespace v8::internal |
1384 | 1385 |
1385 #endif // V8_TARGET_ARCH_X64 | 1386 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |