| OLD | NEW |
| 1 // Copyright 2008-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2008-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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 if (exit_with_exception.is_linked()) { | 860 if (exit_with_exception.is_linked()) { |
| 861 // If any of the code above needed to exit with an exception. | 861 // If any of the code above needed to exit with an exception. |
| 862 __ bind(&exit_with_exception); | 862 __ bind(&exit_with_exception); |
| 863 // Exit with Result EXCEPTION(-1) to signal thrown exception. | 863 // Exit with Result EXCEPTION(-1) to signal thrown exception. |
| 864 __ mov(eax, EXCEPTION); | 864 __ mov(eax, EXCEPTION); |
| 865 __ jmp(&exit_label_); | 865 __ jmp(&exit_label_); |
| 866 } | 866 } |
| 867 | 867 |
| 868 CodeDesc code_desc; | 868 CodeDesc code_desc; |
| 869 masm_->GetCode(&code_desc); | 869 masm_->GetCode(&code_desc); |
| 870 Handle<Code> code = FACTORY->NewCode(code_desc, | 870 Isolate* isolate = ISOLATE; |
| 871 Code::ComputeFlags(Code::REGEXP), | 871 Handle<Code> code = |
| 872 masm_->CodeObject()); | 872 isolate->factory()->NewCode(code_desc, |
| 873 PROFILE(RegExpCodeCreateEvent(*code, *source)); | 873 Code::ComputeFlags(Code::REGEXP), |
| 874 masm_->CodeObject()); |
| 875 PROFILE(isolate, RegExpCodeCreateEvent(*code, *source)); |
| 874 return Handle<Object>::cast(code); | 876 return Handle<Object>::cast(code); |
| 875 } | 877 } |
| 876 | 878 |
| 877 | 879 |
| 878 void RegExpMacroAssemblerIA32::GoTo(Label* to) { | 880 void RegExpMacroAssemblerIA32::GoTo(Label* to) { |
| 879 BranchOrBacktrack(no_condition, to); | 881 BranchOrBacktrack(no_condition, to); |
| 880 } | 882 } |
| 881 | 883 |
| 882 | 884 |
| 883 void RegExpMacroAssemblerIA32::IfRegisterGE(int reg, | 885 void RegExpMacroAssemblerIA32::IfRegisterGE(int reg, |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1247 } | 1249 } |
| 1248 | 1250 |
| 1249 | 1251 |
| 1250 #undef __ | 1252 #undef __ |
| 1251 | 1253 |
| 1252 #endif // V8_INTERPRETED_REGEXP | 1254 #endif // V8_INTERPRETED_REGEXP |
| 1253 | 1255 |
| 1254 }} // namespace v8::internal | 1256 }} // namespace v8::internal |
| 1255 | 1257 |
| 1256 #endif // V8_TARGET_ARCH_IA32 | 1258 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |