Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1561)

Side by Side Diff: src/ia32/macro-assembler-ia32.h

Issue 12300018: Made Isolate a mandatory parameter for everything Handle-related. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed CreateCode calls. Be nicer to MIPS. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698