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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
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 5395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5412 reinterpret_cast<uint64_t>( | 5410 reinterpret_cast<uint64_t>( |
5413 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5411 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5414 return OSR_AFTER_STACK_CHECK; | 5412 return OSR_AFTER_STACK_CHECK; |
5415 } | 5413 } |
5416 | 5414 |
5417 | 5415 |
5418 } // namespace internal | 5416 } // namespace internal |
5419 } // namespace v8 | 5417 } // namespace v8 |
5420 | 5418 |
5421 #endif // V8_TARGET_ARCH_MIPS64 | 5419 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |