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_X87 | 5 #if V8_TARGET_ARCH_X87 |
6 | 6 |
7 #include "src/regexp/x87/regexp-macro-assembler-x87.h" | 7 #include "src/regexp/x87/regexp-macro-assembler-x87.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 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 __ mov(eax, EXCEPTION); | 928 __ mov(eax, EXCEPTION); |
929 __ jmp(&return_eax); | 929 __ jmp(&return_eax); |
930 } | 930 } |
931 | 931 |
932 CodeDesc code_desc; | 932 CodeDesc code_desc; |
933 masm_->GetCode(&code_desc); | 933 masm_->GetCode(&code_desc); |
934 Handle<Code> code = | 934 Handle<Code> code = |
935 isolate()->factory()->NewCode(code_desc, | 935 isolate()->factory()->NewCode(code_desc, |
936 Code::ComputeFlags(Code::REGEXP), | 936 Code::ComputeFlags(Code::REGEXP), |
937 masm_->CodeObject()); | 937 masm_->CodeObject()); |
938 PROFILE(isolate(), RegExpCodeCreateEvent(*code, *source)); | 938 PROFILE(masm_->isolate(), |
| 939 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); |
939 return Handle<HeapObject>::cast(code); | 940 return Handle<HeapObject>::cast(code); |
940 } | 941 } |
941 | 942 |
942 | 943 |
943 void RegExpMacroAssemblerX87::GoTo(Label* to) { | 944 void RegExpMacroAssemblerX87::GoTo(Label* to) { |
944 BranchOrBacktrack(no_condition, to); | 945 BranchOrBacktrack(no_condition, to); |
945 } | 946 } |
946 | 947 |
947 | 948 |
948 void RegExpMacroAssemblerX87::IfRegisterGE(int reg, | 949 void RegExpMacroAssemblerX87::IfRegisterGE(int reg, |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1262 | 1263 |
1263 | 1264 |
1264 #undef __ | 1265 #undef __ |
1265 | 1266 |
1266 #endif // V8_INTERPRETED_REGEXP | 1267 #endif // V8_INTERPRETED_REGEXP |
1267 | 1268 |
1268 } // namespace internal | 1269 } // namespace internal |
1269 } // namespace v8 | 1270 } // namespace v8 |
1270 | 1271 |
1271 #endif // V8_TARGET_ARCH_X87 | 1272 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |