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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 __ mov(eax, EXCEPTION); | 818 __ mov(eax, EXCEPTION); |
819 __ jmp(&exit_label_); | 819 __ jmp(&exit_label_); |
820 } | 820 } |
821 | 821 |
822 CodeDesc code_desc; | 822 CodeDesc code_desc; |
823 masm_->GetCode(&code_desc); | 823 masm_->GetCode(&code_desc); |
824 Handle<Code> code = Factory::NewCode(code_desc, | 824 Handle<Code> code = Factory::NewCode(code_desc, |
825 NULL, | 825 NULL, |
826 Code::ComputeFlags(Code::REGEXP), | 826 Code::ComputeFlags(Code::REGEXP), |
827 masm_->CodeObject()); | 827 masm_->CodeObject()); |
828 LOG(CodeCreateEvent("RegExp", *code, *(source->ToCString()))); | 828 LOG(RegExpCodeCreateEvent(*code, *source)); |
829 return Handle<Object>::cast(code); | 829 return Handle<Object>::cast(code); |
830 } | 830 } |
831 | 831 |
832 | 832 |
833 void RegExpMacroAssemblerIA32::GoTo(Label* to) { | 833 void RegExpMacroAssemblerIA32::GoTo(Label* to) { |
834 BranchOrBacktrack(no_condition, to); | 834 BranchOrBacktrack(no_condition, to); |
835 } | 835 } |
836 | 836 |
837 | 837 |
838 void RegExpMacroAssemblerIA32::IfRegisterGE(int reg, | 838 void RegExpMacroAssemblerIA32::IfRegisterGE(int reg, |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1381 | 1381 |
1382 | 1382 |
1383 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg, | 1383 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg, |
1384 ArraySlice* buffer) { | 1384 ArraySlice* buffer) { |
1385 __ mov(reg, buffer->array()); | 1385 __ mov(reg, buffer->array()); |
1386 __ add(Operand(reg), Immediate(buffer->base_offset())); | 1386 __ add(Operand(reg), Immediate(buffer->base_offset())); |
1387 } | 1387 } |
1388 | 1388 |
1389 #undef __ | 1389 #undef __ |
1390 }} // namespace v8::internal | 1390 }} // namespace v8::internal |
OLD | NEW |