| 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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 void CallSelf() { | 781 void CallSelf() { |
| 782 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); | 782 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); |
| 783 call(self, RelocInfo::CODE_TARGET); | 783 call(self, RelocInfo::CODE_TARGET); |
| 784 } | 784 } |
| 785 | 785 |
| 786 // Move if the registers are not identical. | 786 // Move if the registers are not identical. |
| 787 void Move(Register target, Register source); | 787 void Move(Register target, Register source); |
| 788 | 788 |
| 789 // Push a handle value. | 789 // Push a handle value. |
| 790 void Push(Handle<Object> handle) { push(Immediate(handle)); } | 790 void Push(Handle<Object> handle) { push(Immediate(handle)); } |
| 791 void Push(Smi* smi) { Push(Handle<Smi>(smi)); } |
| 791 | 792 |
| 792 Handle<Object> CodeObject() { | 793 Handle<Object> CodeObject() { |
| 793 ASSERT(!code_object_.is_null()); | 794 ASSERT(!code_object_.is_null()); |
| 794 return code_object_; | 795 return code_object_; |
| 795 } | 796 } |
| 796 | 797 |
| 797 | 798 |
| 798 // --------------------------------------------------------------------------- | 799 // --------------------------------------------------------------------------- |
| 799 // StatsCounter support | 800 // StatsCounter support |
| 800 | 801 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 } \ | 999 } \ |
| 999 masm-> | 1000 masm-> |
| 1000 #else | 1001 #else |
| 1001 #define ACCESS_MASM(masm) masm-> | 1002 #define ACCESS_MASM(masm) masm-> |
| 1002 #endif | 1003 #endif |
| 1003 | 1004 |
| 1004 | 1005 |
| 1005 } } // namespace v8::internal | 1006 } } // namespace v8::internal |
| 1006 | 1007 |
| 1007 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1008 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |