| OLD | NEW | 
|---|
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 18 matching lines...) Expand all  Loading... | 
| 29 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 29 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 
| 30 | 30 | 
| 31 #include "assembler.h" | 31 #include "assembler.h" | 
| 32 | 32 | 
| 33 namespace v8 { | 33 namespace v8 { | 
| 34 namespace internal { | 34 namespace internal { | 
| 35 | 35 | 
| 36 // Forward declaration. | 36 // Forward declaration. | 
| 37 class PostCallGenerator; | 37 class PostCallGenerator; | 
| 38 | 38 | 
| 39 |  | 
| 40 // ---------------------------------------------------------------------------- | 39 // ---------------------------------------------------------------------------- | 
| 41 // Static helper functions | 40 // Static helper functions | 
| 42 | 41 | 
| 43 // Generate a MemOperand for loading a field from an object. | 42 // Generate a MemOperand for loading a field from an object. | 
| 44 static inline MemOperand FieldMemOperand(Register object, int offset) { | 43 static inline MemOperand FieldMemOperand(Register object, int offset) { | 
| 45   return MemOperand(object, offset - kHeapObjectTag); | 44   return MemOperand(object, offset - kHeapObjectTag); | 
| 46 } | 45 } | 
| 47 | 46 | 
| 48 | 47 | 
| 49 // Give alias names to registers | 48 // Give alias names to registers | 
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 281                                     Register map, | 280                                     Register map, | 
| 282                                     Register scratch); | 281                                     Register scratch); | 
| 283 | 282 | 
| 284   // --------------------------------------------------------------------------- | 283   // --------------------------------------------------------------------------- | 
| 285   // JavaScript invokes | 284   // JavaScript invokes | 
| 286 | 285 | 
| 287   // Invoke the JavaScript function code by either calling or jumping. | 286   // Invoke the JavaScript function code by either calling or jumping. | 
| 288   void InvokeCode(Register code, | 287   void InvokeCode(Register code, | 
| 289                   const ParameterCount& expected, | 288                   const ParameterCount& expected, | 
| 290                   const ParameterCount& actual, | 289                   const ParameterCount& actual, | 
| 291                   InvokeFlag flag); | 290                   InvokeFlag flag, | 
|  | 291                   PostCallGenerator* post_call_generator = NULL); | 
| 292 | 292 | 
| 293   void InvokeCode(Handle<Code> code, | 293   void InvokeCode(Handle<Code> code, | 
| 294                   const ParameterCount& expected, | 294                   const ParameterCount& expected, | 
| 295                   const ParameterCount& actual, | 295                   const ParameterCount& actual, | 
| 296                   RelocInfo::Mode rmode, | 296                   RelocInfo::Mode rmode, | 
| 297                   InvokeFlag flag); | 297                   InvokeFlag flag); | 
| 298 | 298 | 
| 299   // Invoke the JavaScript function in the given register. Changes the | 299   // Invoke the JavaScript function in the given register. Changes the | 
| 300   // current context to the context in the function before invoking. | 300   // current context to the context in the function before invoking. | 
| 301   void InvokeFunction(Register function, | 301   void InvokeFunction(Register function, | 
| 302                       const ParameterCount& actual, | 302                       const ParameterCount& actual, | 
| 303                       InvokeFlag flag); | 303                       InvokeFlag flag, | 
|  | 304                       PostCallGenerator* post_call_generator = NULL); | 
| 304 | 305 | 
| 305   void InvokeFunction(JSFunction* function, | 306   void InvokeFunction(JSFunction* function, | 
| 306                       const ParameterCount& actual, | 307                       const ParameterCount& actual, | 
| 307                       InvokeFlag flag); | 308                       InvokeFlag flag); | 
| 308 | 309 | 
| 309   void IsObjectJSObjectType(Register heap_object, | 310   void IsObjectJSObjectType(Register heap_object, | 
| 310                             Register map, | 311                             Register map, | 
| 311                             Register scratch, | 312                             Register scratch, | 
| 312                             Label* fail); | 313                             Label* fail); | 
| 313 | 314 | 
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 744  private: | 745  private: | 
| 745   void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); | 746   void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); | 
| 746   void Call(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); | 747   void Call(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); | 
| 747 | 748 | 
| 748   // Helper functions for generating invokes. | 749   // Helper functions for generating invokes. | 
| 749   void InvokePrologue(const ParameterCount& expected, | 750   void InvokePrologue(const ParameterCount& expected, | 
| 750                       const ParameterCount& actual, | 751                       const ParameterCount& actual, | 
| 751                       Handle<Code> code_constant, | 752                       Handle<Code> code_constant, | 
| 752                       Register code_reg, | 753                       Register code_reg, | 
| 753                       Label* done, | 754                       Label* done, | 
| 754                       InvokeFlag flag); | 755                       InvokeFlag flag, | 
|  | 756                       PostCallGenerator* post_call_generator = NULL); | 
| 755 | 757 | 
| 756   // Activation support. | 758   // Activation support. | 
| 757   void EnterFrame(StackFrame::Type type); | 759   void EnterFrame(StackFrame::Type type); | 
| 758   void LeaveFrame(StackFrame::Type type); | 760   void LeaveFrame(StackFrame::Type type); | 
| 759 | 761 | 
| 760   void InitializeNewString(Register string, | 762   void InitializeNewString(Register string, | 
| 761                            Register length, | 763                            Register length, | 
| 762                            Heap::RootListIndex map_index, | 764                            Heap::RootListIndex map_index, | 
| 763                            Register scratch1, | 765                            Register scratch1, | 
| 764                            Register scratch2); | 766                            Register scratch2); | 
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 829 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 831 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 
| 830 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 832 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 
| 831 #else | 833 #else | 
| 832 #define ACCESS_MASM(masm) masm-> | 834 #define ACCESS_MASM(masm) masm-> | 
| 833 #endif | 835 #endif | 
| 834 | 836 | 
| 835 | 837 | 
| 836 } }  // namespace v8::internal | 838 } }  // namespace v8::internal | 
| 837 | 839 | 
| 838 #endif  // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 840 #endif  // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 
| OLD | NEW | 
|---|