| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 7 #if V8_TARGET_ARCH_S390 |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 | 921 |
| 922 if (exit_with_exception.is_linked()) { | 922 if (exit_with_exception.is_linked()) { |
| 923 // If any of the code above needed to exit with an exception. | 923 // If any of the code above needed to exit with an exception. |
| 924 __ bind(&exit_with_exception); | 924 __ bind(&exit_with_exception); |
| 925 // Exit with Result EXCEPTION(-1) to signal thrown exception. | 925 // Exit with Result EXCEPTION(-1) to signal thrown exception. |
| 926 __ LoadImmP(r2, Operand(EXCEPTION)); | 926 __ LoadImmP(r2, Operand(EXCEPTION)); |
| 927 __ b(&return_r2); | 927 __ b(&return_r2); |
| 928 } | 928 } |
| 929 | 929 |
| 930 CodeDesc code_desc; | 930 CodeDesc code_desc; |
| 931 masm_->GetCode(&code_desc); | 931 masm_->GetCode(isolate(), &code_desc); |
| 932 Handle<Code> code = isolate()->factory()->NewCode( | 932 Handle<Code> code = isolate()->factory()->NewCode( |
| 933 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); | 933 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); |
| 934 PROFILE(masm_->isolate(), | 934 PROFILE(masm_->isolate(), |
| 935 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); | 935 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); |
| 936 return Handle<HeapObject>::cast(code); | 936 return Handle<HeapObject>::cast(code); |
| 937 } | 937 } |
| 938 | 938 |
| 939 void RegExpMacroAssemblerS390::GoTo(Label* to) { BranchOrBacktrack(al, to); } | 939 void RegExpMacroAssemblerS390::GoTo(Label* to) { BranchOrBacktrack(al, to); } |
| 940 | 940 |
| 941 void RegExpMacroAssemblerS390::IfRegisterGE(int reg, int comparand, | 941 void RegExpMacroAssemblerS390::IfRegisterGE(int reg, int comparand, |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1273 } | 1273 } |
| 1274 } | 1274 } |
| 1275 | 1275 |
| 1276 #undef __ | 1276 #undef __ |
| 1277 | 1277 |
| 1278 #endif // V8_INTERPRETED_REGEXP | 1278 #endif // V8_INTERPRETED_REGEXP |
| 1279 } // namespace internal | 1279 } // namespace internal |
| 1280 } // namespace v8 | 1280 } // namespace v8 |
| 1281 | 1281 |
| 1282 #endif // V8_TARGET_ARCH_S390 | 1282 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |