| 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 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 997 __ jmp(&return_eax); | 997 __ jmp(&return_eax); |
| 998 } | 998 } |
| 999 | 999 |
| 1000 CodeDesc code_desc; | 1000 CodeDesc code_desc; |
| 1001 masm_->GetCode(&code_desc); | 1001 masm_->GetCode(&code_desc); |
| 1002 Handle<Code> code = | 1002 Handle<Code> code = |
| 1003 masm_->isolate()->factory()->NewCode(code_desc, | 1003 masm_->isolate()->factory()->NewCode(code_desc, |
| 1004 Code::ComputeFlags(Code::REGEXP), | 1004 Code::ComputeFlags(Code::REGEXP), |
| 1005 masm_->CodeObject()); | 1005 masm_->CodeObject()); |
| 1006 PROFILE(masm_->isolate(), RegExpCodeCreateEvent(*code, *source)); | 1006 PROFILE(masm_->isolate(), RegExpCodeCreateEvent(*code, *source)); |
| 1007 JIT_CODE_EVENT(AddCode(*source, *code)); |
| 1007 return Handle<HeapObject>::cast(code); | 1008 return Handle<HeapObject>::cast(code); |
| 1008 } | 1009 } |
| 1009 | 1010 |
| 1010 | 1011 |
| 1011 void RegExpMacroAssemblerIA32::GoTo(Label* to) { | 1012 void RegExpMacroAssemblerIA32::GoTo(Label* to) { |
| 1012 BranchOrBacktrack(no_condition, to); | 1013 BranchOrBacktrack(no_condition, to); |
| 1013 } | 1014 } |
| 1014 | 1015 |
| 1015 | 1016 |
| 1016 void RegExpMacroAssemblerIA32::IfRegisterGE(int reg, | 1017 void RegExpMacroAssemblerIA32::IfRegisterGE(int reg, |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1399 } | 1400 } |
| 1400 | 1401 |
| 1401 | 1402 |
| 1402 #undef __ | 1403 #undef __ |
| 1403 | 1404 |
| 1404 #endif // V8_INTERPRETED_REGEXP | 1405 #endif // V8_INTERPRETED_REGEXP |
| 1405 | 1406 |
| 1406 }} // namespace v8::internal | 1407 }} // namespace v8::internal |
| 1407 | 1408 |
| 1408 #endif // V8_TARGET_ARCH_IA32 | 1409 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |