| OLD | NEW | 
|     1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |     1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 
|     2 // All Rights Reserved. |     2 // All Rights Reserved. | 
|     3 // |     3 // | 
|     4 // Redistribution and use in source and binary forms, with or without |     4 // Redistribution and use in source and binary forms, with or without | 
|     5 // modification, are permitted provided that the following conditions |     5 // modification, are permitted provided that the following conditions | 
|     6 // are met: |     6 // are met: | 
|     7 // |     7 // | 
|     8 // - Redistributions of source code must retain the above copyright notice, |     8 // - Redistributions of source code must retain the above copyright notice, | 
|     9 // this list of conditions and the following disclaimer. |     9 // this list of conditions and the following disclaimer. | 
|    10 // |    10 // | 
| (...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   796  |   796  | 
|   797   // Given the address of the beginning of a call, return the address |   797   // Given the address of the beginning of a call, return the address | 
|   798   // in the instruction stream that the call will return from. |   798   // in the instruction stream that the call will return from. | 
|   799   INLINE(static Address return_address_from_call_start(Address pc)); |   799   INLINE(static Address return_address_from_call_start(Address pc)); | 
|   800  |   800  | 
|   801   // This sets the branch destination (which is in the constant pool on ARM). |   801   // This sets the branch destination (which is in the constant pool on ARM). | 
|   802   // This is for calls and branches within generated code. |   802   // This is for calls and branches within generated code. | 
|   803   inline static void deserialization_set_special_target_at( |   803   inline static void deserialization_set_special_target_at( | 
|   804       Address constant_pool_entry, Address target); |   804       Address constant_pool_entry, Address target); | 
|   805  |   805  | 
|   806   // This sets the branch destination (which is in the constant pool on ARM). |  | 
|   807   // This is for calls and branches to runtime code. |  | 
|   808   inline static void set_external_target_at(Address constant_pool_entry, |  | 
|   809                                             Address target); |  | 
|   810  |  | 
|   811   // Here we are patching the address in the constant pool, not the actual call |   806   // Here we are patching the address in the constant pool, not the actual call | 
|   812   // instruction.  The address in the constant pool is the same size as a |   807   // instruction.  The address in the constant pool is the same size as a | 
|   813   // pointer. |   808   // pointer. | 
|   814   static const int kSpecialTargetSize = kPointerSize; |   809   static const int kSpecialTargetSize = kPointerSize; | 
|   815  |   810  | 
|   816   // Size of an instruction. |   811   // Size of an instruction. | 
|   817   static const int kInstrSize = sizeof(Instr); |   812   static const int kInstrSize = sizeof(Instr); | 
|   818  |   813  | 
|   819   // Distance between start of patched return sequence and the emitted address |   814   // Distance between start of patched return sequence and the emitted address | 
|   820   // to jump to. |   815   // to jump to. | 
| (...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1615  public: |  1610  public: | 
|  1616   explicit EnsureSpace(Assembler* assembler) { |  1611   explicit EnsureSpace(Assembler* assembler) { | 
|  1617     assembler->CheckBuffer(); |  1612     assembler->CheckBuffer(); | 
|  1618   } |  1613   } | 
|  1619 }; |  1614 }; | 
|  1620  |  1615  | 
|  1621  |  1616  | 
|  1622 } }  // namespace v8::internal |  1617 } }  // namespace v8::internal | 
|  1623  |  1618  | 
|  1624 #endif  // V8_ARM_ASSEMBLER_ARM_H_ |  1619 #endif  // V8_ARM_ASSEMBLER_ARM_H_ | 
| OLD | NEW |