OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 // If any of the code above needed to exit with an exception. | 922 // If any of the code above needed to exit with an exception. |
923 __ bind(&exit_with_exception); | 923 __ bind(&exit_with_exception); |
924 // Exit with Result EXCEPTION(-1) to signal thrown exception. | 924 // Exit with Result EXCEPTION(-1) to signal thrown exception. |
925 __ li(v0, Operand(EXCEPTION)); | 925 __ li(v0, Operand(EXCEPTION)); |
926 __ jmp(&return_v0); | 926 __ jmp(&return_v0); |
927 } | 927 } |
928 } | 928 } |
929 | 929 |
930 CodeDesc code_desc; | 930 CodeDesc code_desc; |
931 masm_->GetCode(&code_desc); | 931 masm_->GetCode(&code_desc); |
932 Handle<Code> code = FACTORY->NewCode(code_desc, | 932 Handle<Code> code = isolate()->factory()->NewCode( |
933 Code::ComputeFlags(Code::REGEXP), | 933 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); |
934 masm_->CodeObject()); | |
935 LOG(Isolate::Current(), RegExpCodeCreateEvent(*code, *source)); | 934 LOG(Isolate::Current(), RegExpCodeCreateEvent(*code, *source)); |
936 return Handle<HeapObject>::cast(code); | 935 return Handle<HeapObject>::cast(code); |
937 } | 936 } |
938 | 937 |
939 | 938 |
940 void RegExpMacroAssemblerMIPS::GoTo(Label* to) { | 939 void RegExpMacroAssemblerMIPS::GoTo(Label* to) { |
941 if (to == NULL) { | 940 if (to == NULL) { |
942 Backtrack(); | 941 Backtrack(); |
943 return; | 942 return; |
944 } | 943 } |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1380 } | 1379 } |
1381 | 1380 |
1382 | 1381 |
1383 #undef __ | 1382 #undef __ |
1384 | 1383 |
1385 #endif // V8_INTERPRETED_REGEXP | 1384 #endif // V8_INTERPRETED_REGEXP |
1386 | 1385 |
1387 }} // namespace v8::internal | 1386 }} // namespace v8::internal |
1388 | 1387 |
1389 #endif // V8_TARGET_ARCH_MIPS | 1388 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |