| 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_ARM_MACRO_ASSEMBLER_ARM_H_ | 5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 
| 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 
| 7 | 7 | 
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" | 
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" | 
| 10 #include "src/frames.h" | 10 #include "src/frames.h" | 
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 548   void StubPrologue(); | 548   void StubPrologue(); | 
| 549   void Prologue(bool code_pre_aging); | 549   void Prologue(bool code_pre_aging); | 
| 550 | 550 | 
| 551   // Enter exit frame. | 551   // Enter exit frame. | 
| 552   // stack_space - extra stack space, used for alignment before call to C. | 552   // stack_space - extra stack space, used for alignment before call to C. | 
| 553   void EnterExitFrame(bool save_doubles, int stack_space = 0); | 553   void EnterExitFrame(bool save_doubles, int stack_space = 0); | 
| 554 | 554 | 
| 555   // Leave the current exit frame. Expects the return value in r0. | 555   // Leave the current exit frame. Expects the return value in r0. | 
| 556   // Expect the number of values, pushed prior to the exit frame, to | 556   // Expect the number of values, pushed prior to the exit frame, to | 
| 557   // remove in a register (or no_reg, if there is nothing to remove). | 557   // remove in a register (or no_reg, if there is nothing to remove). | 
| 558   void LeaveExitFrame(bool save_doubles, | 558   void LeaveExitFrame(bool save_doubles, Register argument_count, | 
| 559                       Register argument_count, | 559                       bool restore_context, | 
| 560                       bool restore_context); | 560                       bool argument_count_is_length = false); | 
| 561 | 561 | 
| 562   // Get the actual activation frame alignment for target environment. | 562   // Get the actual activation frame alignment for target environment. | 
| 563   static int ActivationFrameAlignment(); | 563   static int ActivationFrameAlignment(); | 
| 564 | 564 | 
| 565   void LoadContext(Register dst, int context_chain_length); | 565   void LoadContext(Register dst, int context_chain_length); | 
| 566 | 566 | 
| 567   // Conditionally load the cached Array transitioned map of type | 567   // Conditionally load the cached Array transitioned map of type | 
| 568   // transitioned_kind from the native context if the map in register | 568   // transitioned_kind from the native context if the map in register | 
| 569   // map_in_out is the cached Array map in the native context of | 569   // map_in_out is the cached Array map in the native context of | 
| 570   // expected_kind. | 570   // expected_kind. | 
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1112                      int num_double_arguments); | 1112                      int num_double_arguments); | 
| 1113 | 1113 | 
| 1114   void MovFromFloatParameter(DwVfpRegister dst); | 1114   void MovFromFloatParameter(DwVfpRegister dst); | 
| 1115   void MovFromFloatResult(DwVfpRegister dst); | 1115   void MovFromFloatResult(DwVfpRegister dst); | 
| 1116 | 1116 | 
| 1117   // Calls an API function.  Allocates HandleScope, extracts returned value | 1117   // Calls an API function.  Allocates HandleScope, extracts returned value | 
| 1118   // from handle and propagates exceptions.  Restores context.  stack_space | 1118   // from handle and propagates exceptions.  Restores context.  stack_space | 
| 1119   // - space to be unwound on exit (includes the call JS arguments space and | 1119   // - space to be unwound on exit (includes the call JS arguments space and | 
| 1120   // the additional space allocated for the fast call). | 1120   // the additional space allocated for the fast call). | 
| 1121   void CallApiFunctionAndReturn(Register function_address, | 1121   void CallApiFunctionAndReturn(Register function_address, | 
| 1122                                 ExternalReference thunk_ref, | 1122                                 ExternalReference thunk_ref, int stack_space, | 
| 1123                                 int stack_space, | 1123                                 MemOperand* stack_space_operand, | 
| 1124                                 MemOperand return_value_operand, | 1124                                 MemOperand return_value_operand, | 
| 1125                                 MemOperand* context_restore_operand); | 1125                                 MemOperand* context_restore_operand); | 
| 1126 | 1126 | 
| 1127   // Jump to a runtime routine. | 1127   // Jump to a runtime routine. | 
| 1128   void JumpToExternalReference(const ExternalReference& builtin); | 1128   void JumpToExternalReference(const ExternalReference& builtin); | 
| 1129 | 1129 | 
| 1130   // Invoke specified builtin JavaScript function. Adds an entry to | 1130   // Invoke specified builtin JavaScript function. Adds an entry to | 
| 1131   // the unresolved list if the name does not resolve. | 1131   // the unresolved list if the name does not resolve. | 
| 1132   void InvokeBuiltin(Builtins::JavaScript id, | 1132   void InvokeBuiltin(Builtins::JavaScript id, | 
| 1133                      InvokeFlag flag, | 1133                      InvokeFlag flag, | 
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1550 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1550 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 
| 1551 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1551 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 
| 1552 #else | 1552 #else | 
| 1553 #define ACCESS_MASM(masm) masm-> | 1553 #define ACCESS_MASM(masm) masm-> | 
| 1554 #endif | 1554 #endif | 
| 1555 | 1555 | 
| 1556 | 1556 | 
| 1557 } }  // namespace v8::internal | 1557 } }  // namespace v8::internal | 
| 1558 | 1558 | 
| 1559 #endif  // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1559 #endif  // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 
| OLD | NEW | 
|---|