| 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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/log.h" | 10 #include "src/log.h" |
| (...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 __ li(v0, Operand(EXCEPTION)); | 854 __ li(v0, Operand(EXCEPTION)); |
| 855 __ jmp(&return_v0); | 855 __ jmp(&return_v0); |
| 856 } | 856 } |
| 857 } | 857 } |
| 858 | 858 |
| 859 CodeDesc code_desc; | 859 CodeDesc code_desc; |
| 860 masm_->GetCode(&code_desc); | 860 masm_->GetCode(&code_desc); |
| 861 Handle<Code> code = isolate()->factory()->NewCode( | 861 Handle<Code> code = isolate()->factory()->NewCode( |
| 862 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); | 862 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); |
| 863 LOG(masm_->isolate(), RegExpCodeCreateEvent(*code, *source)); | 863 LOG(masm_->isolate(), RegExpCodeCreateEvent(*code, *source)); |
| 864 masm_->isolate()->CodeCreateEvent(*code, *source); |
| 864 return Handle<HeapObject>::cast(code); | 865 return Handle<HeapObject>::cast(code); |
| 865 } | 866 } |
| 866 | 867 |
| 867 | 868 |
| 868 void RegExpMacroAssemblerMIPS::GoTo(Label* to) { | 869 void RegExpMacroAssemblerMIPS::GoTo(Label* to) { |
| 869 if (to == NULL) { | 870 if (to == NULL) { |
| 870 Backtrack(); | 871 Backtrack(); |
| 871 return; | 872 return; |
| 872 } | 873 } |
| 873 __ jmp(to); | 874 __ jmp(to); |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1317 } | 1318 } |
| 1318 | 1319 |
| 1319 | 1320 |
| 1320 #undef __ | 1321 #undef __ |
| 1321 | 1322 |
| 1322 #endif // V8_INTERPRETED_REGEXP | 1323 #endif // V8_INTERPRETED_REGEXP |
| 1323 | 1324 |
| 1324 }} // namespace v8::internal | 1325 }} // namespace v8::internal |
| 1325 | 1326 |
| 1326 #endif // V8_TARGET_ARCH_MIPS | 1327 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |