| 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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 Label* not_int32); | 534 Label* not_int32); |
| 535 | 535 |
| 536 | 536 |
| 537 // Enter exit frame. | 537 // Enter exit frame. |
| 538 // stack_space - extra stack space, used for alignment before call to C. | 538 // stack_space - extra stack space, used for alignment before call to C. |
| 539 void EnterExitFrame(bool save_doubles, int stack_space = 0); | 539 void EnterExitFrame(bool save_doubles, int stack_space = 0); |
| 540 | 540 |
| 541 // Leave the current exit frame. Expects the return value in r0. | 541 // Leave the current exit frame. Expects the return value in r0. |
| 542 // Expect the number of values, pushed prior to the exit frame, to | 542 // Expect the number of values, pushed prior to the exit frame, to |
| 543 // remove in a register (or no_reg, if there is nothing to remove). | 543 // remove in a register (or no_reg, if there is nothing to remove). |
| 544 void LeaveExitFrame(bool save_doubles, Register argument_count); | 544 void LeaveExitFrame(bool save_doubles, |
| 545 Register argument_count, |
| 546 bool restore_context); |
| 545 | 547 |
| 546 // Get the actual activation frame alignment for target environment. | 548 // Get the actual activation frame alignment for target environment. |
| 547 static int ActivationFrameAlignment(); | 549 static int ActivationFrameAlignment(); |
| 548 | 550 |
| 549 void LoadContext(Register dst, int context_chain_length); | 551 void LoadContext(Register dst, int context_chain_length); |
| 550 | 552 |
| 551 // Conditionally load the cached Array transitioned map of type | 553 // Conditionally load the cached Array transitioned map of type |
| 552 // transitioned_kind from the native context if the map in register | 554 // transitioned_kind from the native context if the map in register |
| 553 // map_in_out is the cached Array map in the native context of | 555 // map_in_out is the cached Array map in the native context of |
| 554 // expected_kind. | 556 // expected_kind. |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1104 | 1106 |
| 1105 // Calls an API function. Allocates HandleScope, extracts returned value | 1107 // Calls an API function. Allocates HandleScope, extracts returned value |
| 1106 // from handle and propagates exceptions. Restores context. stack_space | 1108 // from handle and propagates exceptions. Restores context. stack_space |
| 1107 // - space to be unwound on exit (includes the call JS arguments space and | 1109 // - space to be unwound on exit (includes the call JS arguments space and |
| 1108 // the additional space allocated for the fast call). | 1110 // the additional space allocated for the fast call). |
| 1109 void CallApiFunctionAndReturn(ExternalReference function, | 1111 void CallApiFunctionAndReturn(ExternalReference function, |
| 1110 Address function_address, | 1112 Address function_address, |
| 1111 ExternalReference thunk_ref, | 1113 ExternalReference thunk_ref, |
| 1112 Register thunk_last_arg, | 1114 Register thunk_last_arg, |
| 1113 int stack_space, | 1115 int stack_space, |
| 1114 int return_value_offset_from_fp); | 1116 MemOperand return_value_operand, |
| 1117 MemOperand* context_restore_operand); |
| 1115 | 1118 |
| 1116 // Jump to a runtime routine. | 1119 // Jump to a runtime routine. |
| 1117 void JumpToExternalReference(const ExternalReference& builtin); | 1120 void JumpToExternalReference(const ExternalReference& builtin); |
| 1118 | 1121 |
| 1119 // Invoke specified builtin JavaScript function. Adds an entry to | 1122 // Invoke specified builtin JavaScript function. Adds an entry to |
| 1120 // the unresolved list if the name does not resolve. | 1123 // the unresolved list if the name does not resolve. |
| 1121 void InvokeBuiltin(Builtins::JavaScript id, | 1124 void InvokeBuiltin(Builtins::JavaScript id, |
| 1122 InvokeFlag flag, | 1125 InvokeFlag flag, |
| 1123 const CallWrapper& call_wrapper = NullCallWrapper()); | 1126 const CallWrapper& call_wrapper = NullCallWrapper()); |
| 1124 | 1127 |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1479 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1482 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1480 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1483 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1481 #else | 1484 #else |
| 1482 #define ACCESS_MASM(masm) masm-> | 1485 #define ACCESS_MASM(masm) masm-> |
| 1483 #endif | 1486 #endif |
| 1484 | 1487 |
| 1485 | 1488 |
| 1486 } } // namespace v8::internal | 1489 } } // namespace v8::internal |
| 1487 | 1490 |
| 1488 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1491 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |