| 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 #if V8_TARGET_ARCH_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 6 | 6 |
| 7 // Note on Mips implementation: | 7 // Note on Mips implementation: |
| 8 // | 8 // |
| 9 // 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 |
| 10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
| 11 // 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 |
| 12 // 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 |
| 13 // 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. |
| 14 | 14 |
| 15 #include "src/ast/scopes.h" |
| 15 #include "src/code-factory.h" | 16 #include "src/code-factory.h" |
| 16 #include "src/code-stubs.h" | 17 #include "src/code-stubs.h" |
| 17 #include "src/codegen.h" | 18 #include "src/codegen.h" |
| 18 #include "src/debug/debug.h" | 19 #include "src/debug/debug.h" |
| 19 #include "src/full-codegen/full-codegen.h" | 20 #include "src/full-codegen/full-codegen.h" |
| 20 #include "src/ic/ic.h" | 21 #include "src/ic/ic.h" |
| 21 #include "src/parser.h" | 22 #include "src/parsing/parser.h" |
| 22 #include "src/scopes.h" | |
| 23 | 23 |
| 24 #include "src/mips64/code-stubs-mips64.h" | 24 #include "src/mips64/code-stubs-mips64.h" |
| 25 #include "src/mips64/macro-assembler-mips64.h" | 25 #include "src/mips64/macro-assembler-mips64.h" |
| 26 | 26 |
| 27 namespace v8 { | 27 namespace v8 { |
| 28 namespace internal { | 28 namespace internal { |
| 29 | 29 |
| 30 #define __ ACCESS_MASM(masm_) | 30 #define __ ACCESS_MASM(masm_) |
| 31 | 31 |
| 32 | 32 |
| (...skipping 4950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4983 reinterpret_cast<uint64_t>( | 4983 reinterpret_cast<uint64_t>( |
| 4984 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4984 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 4985 return OSR_AFTER_STACK_CHECK; | 4985 return OSR_AFTER_STACK_CHECK; |
| 4986 } | 4986 } |
| 4987 | 4987 |
| 4988 | 4988 |
| 4989 } // namespace internal | 4989 } // namespace internal |
| 4990 } // namespace v8 | 4990 } // namespace v8 |
| 4991 | 4991 |
| 4992 #endif // V8_TARGET_ARCH_MIPS64 | 4992 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |