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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 // If any of the code above needed to exit with an exception. | 792 // If any of the code above needed to exit with an exception. |
793 __ bind(&exit_with_exception); | 793 __ bind(&exit_with_exception); |
794 // Exit with Result EXCEPTION(-1) to signal thrown exception. | 794 // Exit with Result EXCEPTION(-1) to signal thrown exception. |
795 __ mov(r0, Operand(EXCEPTION)); | 795 __ mov(r0, Operand(EXCEPTION)); |
796 __ jmp(&exit_label_); | 796 __ jmp(&exit_label_); |
797 } | 797 } |
798 | 798 |
799 CodeDesc code_desc; | 799 CodeDesc code_desc; |
800 masm_->GetCode(&code_desc); | 800 masm_->GetCode(&code_desc); |
801 Handle<Code> code = Factory::NewCode(code_desc, | 801 Handle<Code> code = Factory::NewCode(code_desc, |
802 NULL, | |
803 Code::ComputeFlags(Code::REGEXP), | 802 Code::ComputeFlags(Code::REGEXP), |
804 masm_->CodeObject()); | 803 masm_->CodeObject()); |
805 PROFILE(RegExpCodeCreateEvent(*code, *source)); | 804 PROFILE(RegExpCodeCreateEvent(*code, *source)); |
806 return Handle<Object>::cast(code); | 805 return Handle<Object>::cast(code); |
807 } | 806 } |
808 | 807 |
809 | 808 |
810 void RegExpMacroAssemblerARM::GoTo(Label* to) { | 809 void RegExpMacroAssemblerARM::GoTo(Label* to) { |
811 BranchOrBacktrack(al, to); | 810 BranchOrBacktrack(al, to); |
812 } | 811 } |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1253 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); | 1252 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); |
1254 } | 1253 } |
1255 | 1254 |
1256 #undef __ | 1255 #undef __ |
1257 | 1256 |
1258 #endif // V8_INTERPRETED_REGEXP | 1257 #endif // V8_INTERPRETED_REGEXP |
1259 | 1258 |
1260 }} // namespace v8::internal | 1259 }} // namespace v8::internal |
1261 | 1260 |
1262 #endif // V8_TARGET_ARCH_ARM | 1261 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |