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 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 #include "src/mips64/assembler-mips64.h" | 10 #include "src/mips64/assembler-mips64.h" |
(...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1369 | 1369 |
1370 // Convenience function: call an external reference. | 1370 // Convenience function: call an external reference. |
1371 void CallExternalReference(const ExternalReference& ext, | 1371 void CallExternalReference(const ExternalReference& ext, |
1372 int num_arguments, | 1372 int num_arguments, |
1373 BranchDelaySlot bd = PROTECT); | 1373 BranchDelaySlot bd = PROTECT); |
1374 | 1374 |
1375 // Tail call of a runtime routine (jump). | 1375 // Tail call of a runtime routine (jump). |
1376 // Like JumpToExternalReference, but also takes care of passing the number | 1376 // Like JumpToExternalReference, but also takes care of passing the number |
1377 // of parameters. | 1377 // of parameters. |
1378 void TailCallExternalReference(const ExternalReference& ext, | 1378 void TailCallExternalReference(const ExternalReference& ext, |
1379 int num_arguments, | 1379 int num_arguments); |
1380 int result_size); | |
1381 | 1380 |
1382 // Convenience function: tail call a runtime routine (jump). | 1381 // Convenience function: tail call a runtime routine (jump). |
1383 void TailCallRuntime(Runtime::FunctionId fid, | 1382 void TailCallRuntime(Runtime::FunctionId fid, int num_arguments); |
1384 int num_arguments, | |
1385 int result_size); | |
1386 | 1383 |
1387 int CalculateStackPassedWords(int num_reg_arguments, | 1384 int CalculateStackPassedWords(int num_reg_arguments, |
1388 int num_double_arguments); | 1385 int num_double_arguments); |
1389 | 1386 |
1390 // Before calling a C-function from generated code, align arguments on stack | 1387 // Before calling a C-function from generated code, align arguments on stack |
1391 // and add space for the four mips argument slots. | 1388 // and add space for the four mips argument slots. |
1392 // After aligning the frame, non-register arguments must be stored on the | 1389 // After aligning the frame, non-register arguments must be stored on the |
1393 // stack, after the argument-slots using helper: CFunctionArgumentOperand(). | 1390 // stack, after the argument-slots using helper: CFunctionArgumentOperand(). |
1394 // The argument count assumes all arguments are word sized. | 1391 // The argument count assumes all arguments are word sized. |
1395 // Some compilers/platforms require the stack to be aligned when calling | 1392 // Some compilers/platforms require the stack to be aligned when calling |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1878 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1875 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1879 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1876 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1880 #else | 1877 #else |
1881 #define ACCESS_MASM(masm) masm-> | 1878 #define ACCESS_MASM(masm) masm-> |
1882 #endif | 1879 #endif |
1883 | 1880 |
1884 } // namespace internal | 1881 } // namespace internal |
1885 } // namespace v8 | 1882 } // namespace v8 |
1886 | 1883 |
1887 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1884 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |