OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1230 // abstract parameter passing for the three different ways we call | 1230 // abstract parameter passing for the three different ways we call |
1231 // C functions from generated code. | 1231 // C functions from generated code. |
1232 void SetCallCDoubleArguments(DoubleRegister dreg); | 1232 void SetCallCDoubleArguments(DoubleRegister dreg); |
1233 void SetCallCDoubleArguments(DoubleRegister dreg1, DoubleRegister dreg2); | 1233 void SetCallCDoubleArguments(DoubleRegister dreg1, DoubleRegister dreg2); |
1234 void SetCallCDoubleArguments(DoubleRegister dreg, Register reg); | 1234 void SetCallCDoubleArguments(DoubleRegister dreg, Register reg); |
1235 | 1235 |
1236 // Calls an API function. Allocates HandleScope, extracts returned value | 1236 // Calls an API function. Allocates HandleScope, extracts returned value |
1237 // from handle and propagates exceptions. Restores context. stack_space | 1237 // from handle and propagates exceptions. Restores context. stack_space |
1238 // - space to be unwound on exit (includes the call JS arguments space and | 1238 // - space to be unwound on exit (includes the call JS arguments space and |
1239 // the additional space allocated for the fast call). | 1239 // the additional space allocated for the fast call). |
1240 void CallApiFunctionAndReturn(ExternalReference function, int stack_space); | 1240 void CallApiFunctionAndReturn(ExternalReference function, |
| 1241 int stack_space, |
| 1242 bool returns_handle, |
| 1243 int return_value_offset_from_fp); |
1241 | 1244 |
1242 // Jump to the builtin routine. | 1245 // Jump to the builtin routine. |
1243 void JumpToExternalReference(const ExternalReference& builtin, | 1246 void JumpToExternalReference(const ExternalReference& builtin, |
1244 BranchDelaySlot bd = PROTECT); | 1247 BranchDelaySlot bd = PROTECT); |
1245 | 1248 |
1246 // Invoke specified builtin JavaScript function. Adds an entry to | 1249 // Invoke specified builtin JavaScript function. Adds an entry to |
1247 // the unresolved list if the name does not resolve. | 1250 // the unresolved list if the name does not resolve. |
1248 void InvokeBuiltin(Builtins::JavaScript id, | 1251 void InvokeBuiltin(Builtins::JavaScript id, |
1249 InvokeFlag flag, | 1252 InvokeFlag flag, |
1250 const CallWrapper& call_wrapper = NullCallWrapper()); | 1253 const CallWrapper& call_wrapper = NullCallWrapper()); |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1582 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1585 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1583 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1586 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1584 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1587 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1585 #else | 1588 #else |
1586 #define ACCESS_MASM(masm) masm-> | 1589 #define ACCESS_MASM(masm) masm-> |
1587 #endif | 1590 #endif |
1588 | 1591 |
1589 } } // namespace v8::internal | 1592 } } // namespace v8::internal |
1590 | 1593 |
1591 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1594 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |