| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X87 | 7 #if V8_TARGET_ARCH_X87 |
| 8 | 8 |
| 9 #include "src/cpu-profiler.h" | 9 #include "src/cpu-profiler.h" |
| 10 #include "src/log.h" | 10 #include "src/log.h" |
| (...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 __ jmp(&return_eax); | 897 __ jmp(&return_eax); |
| 898 } | 898 } |
| 899 | 899 |
| 900 CodeDesc code_desc; | 900 CodeDesc code_desc; |
| 901 masm_->GetCode(&code_desc); | 901 masm_->GetCode(&code_desc); |
| 902 Handle<Code> code = | 902 Handle<Code> code = |
| 903 isolate()->factory()->NewCode(code_desc, | 903 isolate()->factory()->NewCode(code_desc, |
| 904 Code::ComputeFlags(Code::REGEXP), | 904 Code::ComputeFlags(Code::REGEXP), |
| 905 masm_->CodeObject()); | 905 masm_->CodeObject()); |
| 906 PROFILE(isolate(), RegExpCodeCreateEvent(*code, *source)); | 906 PROFILE(isolate(), RegExpCodeCreateEvent(*code, *source)); |
| 907 isolate()->CodeCreateEvent(*code, *source); |
| 907 return Handle<HeapObject>::cast(code); | 908 return Handle<HeapObject>::cast(code); |
| 908 } | 909 } |
| 909 | 910 |
| 910 | 911 |
| 911 void RegExpMacroAssemblerX87::GoTo(Label* to) { | 912 void RegExpMacroAssemblerX87::GoTo(Label* to) { |
| 912 BranchOrBacktrack(no_condition, to); | 913 BranchOrBacktrack(no_condition, to); |
| 913 } | 914 } |
| 914 | 915 |
| 915 | 916 |
| 916 void RegExpMacroAssemblerX87::IfRegisterGE(int reg, | 917 void RegExpMacroAssemblerX87::IfRegisterGE(int reg, |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1300 } | 1301 } |
| 1301 | 1302 |
| 1302 | 1303 |
| 1303 #undef __ | 1304 #undef __ |
| 1304 | 1305 |
| 1305 #endif // V8_INTERPRETED_REGEXP | 1306 #endif // V8_INTERPRETED_REGEXP |
| 1306 | 1307 |
| 1307 }} // namespace v8::internal | 1308 }} // namespace v8::internal |
| 1308 | 1309 |
| 1309 #endif // V8_TARGET_ARCH_X87 | 1310 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |