| 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" | |
| 6 | |
| 7 #if V8_TARGET_ARCH_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
| 8 | 6 |
| 9 // Note on Mips implementation: | 7 // Note on Mips implementation: |
| 10 // | 8 // |
| 11 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
| 12 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
| 13 // parameter to a function is defined to be 'a0'. So there are many | 11 // parameter to a function is defined to be 'a0'. So there are many |
| 14 // places where we have to move a previous result in v0 to a0 for the | 12 // places where we have to move a previous result in v0 to a0 for the |
| 15 // next call: mov(a0, v0). This is not needed on the other architectures. | 13 // next call: mov(a0, v0). This is not needed on the other architectures. |
| 16 | 14 |
| (...skipping 5389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5406 reinterpret_cast<uint32_t>( | 5404 reinterpret_cast<uint32_t>( |
| 5407 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5405 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5408 return OSR_AFTER_STACK_CHECK; | 5406 return OSR_AFTER_STACK_CHECK; |
| 5409 } | 5407 } |
| 5410 | 5408 |
| 5411 | 5409 |
| 5412 } // namespace internal | 5410 } // namespace internal |
| 5413 } // namespace v8 | 5411 } // namespace v8 |
| 5414 | 5412 |
| 5415 #endif // V8_TARGET_ARCH_MIPS | 5413 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |