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 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 __ mov(r0, Operand(EXCEPTION)); | 915 __ mov(r0, Operand(EXCEPTION)); |
916 __ jmp(&return_r0); | 916 __ jmp(&return_r0); |
917 } | 917 } |
918 | 918 |
919 CodeDesc code_desc; | 919 CodeDesc code_desc; |
920 masm_->GetCode(&code_desc); | 920 masm_->GetCode(&code_desc); |
921 Handle<Code> code = FACTORY->NewCode(code_desc, | 921 Handle<Code> code = FACTORY->NewCode(code_desc, |
922 Code::ComputeFlags(Code::REGEXP), | 922 Code::ComputeFlags(Code::REGEXP), |
923 masm_->CodeObject()); | 923 masm_->CodeObject()); |
924 PROFILE(Isolate::Current(), RegExpCodeCreateEvent(*code, *source)); | 924 PROFILE(Isolate::Current(), RegExpCodeCreateEvent(*code, *source)); |
| 925 JIT_CODE_EVENT(AddCode(*source, *code)); |
925 return Handle<HeapObject>::cast(code); | 926 return Handle<HeapObject>::cast(code); |
926 } | 927 } |
927 | 928 |
928 | 929 |
929 void RegExpMacroAssemblerARM::GoTo(Label* to) { | 930 void RegExpMacroAssemblerARM::GoTo(Label* to) { |
930 BranchOrBacktrack(al, to); | 931 BranchOrBacktrack(al, to); |
931 } | 932 } |
932 | 933 |
933 | 934 |
934 void RegExpMacroAssemblerARM::IfRegisterGE(int reg, | 935 void RegExpMacroAssemblerARM::IfRegisterGE(int reg, |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1406 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); | 1407 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); |
1407 } | 1408 } |
1408 | 1409 |
1409 #undef __ | 1410 #undef __ |
1410 | 1411 |
1411 #endif // V8_INTERPRETED_REGEXP | 1412 #endif // V8_INTERPRETED_REGEXP |
1412 | 1413 |
1413 }} // namespace v8::internal | 1414 }} // namespace v8::internal |
1414 | 1415 |
1415 #endif // V8_TARGET_ARCH_ARM | 1416 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |