| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
| 6 | 6 |
| 7 #include "src/regexp/ia32/regexp-macro-assembler-ia32.h" | 7 #include "src/regexp/ia32/regexp-macro-assembler-ia32.h" |
| 8 | 8 |
| 9 #include "src/log.h" | 9 #include "src/log.h" |
| 10 #include "src/macro-assembler.h" | 10 #include "src/macro-assembler.h" |
| (...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 | 925 |
| 926 if (exit_with_exception.is_linked()) { | 926 if (exit_with_exception.is_linked()) { |
| 927 // If any of the code above needed to exit with an exception. | 927 // If any of the code above needed to exit with an exception. |
| 928 __ bind(&exit_with_exception); | 928 __ bind(&exit_with_exception); |
| 929 // Exit with Result EXCEPTION(-1) to signal thrown exception. | 929 // Exit with Result EXCEPTION(-1) to signal thrown exception. |
| 930 __ mov(eax, EXCEPTION); | 930 __ mov(eax, EXCEPTION); |
| 931 __ jmp(&return_eax); | 931 __ jmp(&return_eax); |
| 932 } | 932 } |
| 933 | 933 |
| 934 CodeDesc code_desc; | 934 CodeDesc code_desc; |
| 935 masm_->GetCode(&code_desc); | 935 masm_->GetCode(masm_->isolate(), &code_desc); |
| 936 Handle<Code> code = | 936 Handle<Code> code = |
| 937 isolate()->factory()->NewCode(code_desc, | 937 isolate()->factory()->NewCode(code_desc, |
| 938 Code::ComputeFlags(Code::REGEXP), | 938 Code::ComputeFlags(Code::REGEXP), |
| 939 masm_->CodeObject()); | 939 masm_->CodeObject()); |
| 940 PROFILE(masm_->isolate(), | 940 PROFILE(masm_->isolate(), |
| 941 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); | 941 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); |
| 942 return Handle<HeapObject>::cast(code); | 942 return Handle<HeapObject>::cast(code); |
| 943 } | 943 } |
| 944 | 944 |
| 945 | 945 |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1265 | 1265 |
| 1266 | 1266 |
| 1267 #undef __ | 1267 #undef __ |
| 1268 | 1268 |
| 1269 #endif // V8_INTERPRETED_REGEXP | 1269 #endif // V8_INTERPRETED_REGEXP |
| 1270 | 1270 |
| 1271 } // namespace internal | 1271 } // namespace internal |
| 1272 } // namespace v8 | 1272 } // namespace v8 |
| 1273 | 1273 |
| 1274 #endif // V8_TARGET_ARCH_IA32 | 1274 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |