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" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
10 // | 10 // |
11 // The result_register() for mips is the 'v0' register, which is defined | 11 // The result_register() for mips is the 'v0' register, which is defined |
12 // by the ABI to contain function return values. However, the first | 12 // 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 | 13 // 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 | 14 // 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. | 15 // next call: mov(a0, v0). This is not needed on the other architectures. |
16 | 16 |
17 #include "src/code-stubs.h" | 17 #include "src/code-stubs.h" |
18 #include "src/codegen.h" | 18 #include "src/codegen.h" |
19 #include "src/compiler.h" | 19 #include "src/compiler.h" |
20 #include "src/debug.h" | 20 #include "src/debug.h" |
21 #include "src/full-codegen.h" | 21 #include "src/full-codegen.h" |
22 #include "src/isolate-inl.h" | 22 #include "src/isolate-inl.h" |
23 #include "src/parser.h" | 23 #include "src/parser.h" |
24 #include "src/scopes.h" | 24 #include "src/scopes.h" |
25 #include "src/stub-cache.h" | |
26 | 25 |
27 #include "src/mips64/code-stubs-mips64.h" | 26 #include "src/mips64/code-stubs-mips64.h" |
28 #include "src/mips64/macro-assembler-mips64.h" | 27 #include "src/mips64/macro-assembler-mips64.h" |
29 | 28 |
30 namespace v8 { | 29 namespace v8 { |
31 namespace internal { | 30 namespace internal { |
32 | 31 |
33 #define __ ACCESS_MASM(masm_) | 32 #define __ ACCESS_MASM(masm_) |
34 | 33 |
35 | 34 |
(...skipping 4843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4879 Assembler::target_address_at(pc_immediate_load_address)) == | 4878 Assembler::target_address_at(pc_immediate_load_address)) == |
4880 reinterpret_cast<uint64_t>( | 4879 reinterpret_cast<uint64_t>( |
4881 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4880 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4882 return OSR_AFTER_STACK_CHECK; | 4881 return OSR_AFTER_STACK_CHECK; |
4883 } | 4882 } |
4884 | 4883 |
4885 | 4884 |
4886 } } // namespace v8::internal | 4885 } } // namespace v8::internal |
4887 | 4886 |
4888 #endif // V8_TARGET_ARCH_MIPS64 | 4887 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |