| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 7 #if V8_TARGET_ARCH_PPC |
| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 num_saved_registers_(registers_to_save), | 108 num_saved_registers_(registers_to_save), |
| 109 entry_label_(), | 109 entry_label_(), |
| 110 start_label_(), | 110 start_label_(), |
| 111 success_label_(), | 111 success_label_(), |
| 112 backtrack_label_(), | 112 backtrack_label_(), |
| 113 exit_label_(), | 113 exit_label_(), |
| 114 internal_failure_label_() { | 114 internal_failure_label_() { |
| 115 DCHECK_EQ(0, registers_to_save % 2); | 115 DCHECK_EQ(0, registers_to_save % 2); |
| 116 | 116 |
| 117 // Called from C | 117 // Called from C |
| 118 #if ABI_USES_FUNCTION_DESCRIPTORS | |
| 119 __ function_descriptor(); | 118 __ function_descriptor(); |
| 120 #endif | |
| 121 | 119 |
| 122 __ b(&entry_label_); // We'll write the entry code later. | 120 __ b(&entry_label_); // We'll write the entry code later. |
| 123 // If the code gets too big or corrupted, an internal exception will be | 121 // If the code gets too big or corrupted, an internal exception will be |
| 124 // raised, and we will exit right away. | 122 // raised, and we will exit right away. |
| 125 __ bind(&internal_failure_label_); | 123 __ bind(&internal_failure_label_); |
| 126 __ li(r3, Operand(FAILURE)); | 124 __ li(r3, Operand(FAILURE)); |
| 127 __ Ret(); | 125 __ Ret(); |
| 128 __ bind(&start_label_); // And then continue from here. | 126 __ bind(&start_label_); // And then continue from here. |
| 129 } | 127 } |
| 130 | 128 |
| (...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1328 } | 1326 } |
| 1329 | 1327 |
| 1330 | 1328 |
| 1331 #undef __ | 1329 #undef __ |
| 1332 | 1330 |
| 1333 #endif // V8_INTERPRETED_REGEXP | 1331 #endif // V8_INTERPRETED_REGEXP |
| 1334 } | 1332 } |
| 1335 } // namespace v8::internal | 1333 } // namespace v8::internal |
| 1336 | 1334 |
| 1337 #endif // V8_TARGET_ARCH_PPC | 1335 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |