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