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 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1226 | 1226 |
1227 // Calls an API function. Allocates HandleScope, extracts returned value | 1227 // Calls an API function. Allocates HandleScope, extracts returned value |
1228 // from handle and propagates exceptions. Restores context. stack_space | 1228 // from handle and propagates exceptions. Restores context. stack_space |
1229 // - space to be unwound on exit (includes the call JS arguments space and | 1229 // - space to be unwound on exit (includes the call JS arguments space and |
1230 // the additional space allocated for the fast call). | 1230 // the additional space allocated for the fast call). |
1231 void CallApiFunctionAndReturn(ExternalReference function, | 1231 void CallApiFunctionAndReturn(ExternalReference function, |
1232 Address function_address, | 1232 Address function_address, |
1233 ExternalReference thunk_ref, | 1233 ExternalReference thunk_ref, |
1234 Register thunk_last_arg, | 1234 Register thunk_last_arg, |
1235 int stack_space, | 1235 int stack_space, |
1236 bool returns_handle, | |
1237 int return_value_offset_from_fp); | 1236 int return_value_offset_from_fp); |
1238 | 1237 |
1239 // Jump to the builtin routine. | 1238 // Jump to the builtin routine. |
1240 void JumpToExternalReference(const ExternalReference& builtin, | 1239 void JumpToExternalReference(const ExternalReference& builtin, |
1241 BranchDelaySlot bd = PROTECT); | 1240 BranchDelaySlot bd = PROTECT); |
1242 | 1241 |
1243 // Invoke specified builtin JavaScript function. Adds an entry to | 1242 // Invoke specified builtin JavaScript function. Adds an entry to |
1244 // the unresolved list if the name does not resolve. | 1243 // the unresolved list if the name does not resolve. |
1245 void InvokeBuiltin(Builtins::JavaScript id, | 1244 void InvokeBuiltin(Builtins::JavaScript id, |
1246 InvokeFlag flag, | 1245 InvokeFlag flag, |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1581 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1580 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1582 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1581 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1583 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1582 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1584 #else | 1583 #else |
1585 #define ACCESS_MASM(masm) masm-> | 1584 #define ACCESS_MASM(masm) masm-> |
1586 #endif | 1585 #endif |
1587 | 1586 |
1588 } } // namespace v8::internal | 1587 } } // namespace v8::internal |
1589 | 1588 |
1590 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1589 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |