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

Side by Side Diff: src/objects-inl.h

Issue 7273066: Simplify EmitCallIC. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 5 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 c.d = value; 918 c.d = value;
919 (*reinterpret_cast<uint32_t*>(FIELD_ADDR(p, offset))) = c.u[0]; 919 (*reinterpret_cast<uint32_t*>(FIELD_ADDR(p, offset))) = c.u[0];
920 (*reinterpret_cast<uint32_t*>(FIELD_ADDR(p, offset + 4))) = c.u[1]; 920 (*reinterpret_cast<uint32_t*>(FIELD_ADDR(p, offset + 4))) = c.u[1];
921 } 921 }
922 #define WRITE_DOUBLE_FIELD(p, offset, value) \ 922 #define WRITE_DOUBLE_FIELD(p, offset, value) \
923 write_double_field(p, offset, value) 923 write_double_field(p, offset, value)
924 #endif // V8_TARGET_ARCH_MIPS 924 #endif // V8_TARGET_ARCH_MIPS
925 925
926 926
927 #define READ_INT_FIELD(p, offset) \ 927 #define READ_INT_FIELD(p, offset) \
928 (*reinterpret_cast<int*>(FIELD_ADDR(p, offset))) 928 (*reinterpret_cast<const int*>(FIELD_ADDR(p, offset)))
Mads Ager (chromium) 2011/06/29 12:58:42 Unrelated change?
Sven Panne 2011/06/29 13:16:43 Ooops, I'll remove that one...
929 929
930 #define WRITE_INT_FIELD(p, offset, value) \ 930 #define WRITE_INT_FIELD(p, offset, value) \
931 (*reinterpret_cast<int*>(FIELD_ADDR(p, offset)) = value) 931 (*reinterpret_cast<int*>(FIELD_ADDR(p, offset)) = value)
932 932
933 #define READ_INTPTR_FIELD(p, offset) \ 933 #define READ_INTPTR_FIELD(p, offset) \
934 (*reinterpret_cast<intptr_t*>(FIELD_ADDR(p, offset))) 934 (*reinterpret_cast<intptr_t*>(FIELD_ADDR(p, offset)))
935 935
936 #define WRITE_INTPTR_FIELD(p, offset, value) \ 936 #define WRITE_INTPTR_FIELD(p, offset, value) \
937 (*reinterpret_cast<intptr_t*>(FIELD_ADDR(p, offset)) = value) 937 (*reinterpret_cast<intptr_t*>(FIELD_ADDR(p, offset)) = value)
938 938
(...skipping 3483 matching lines...) Expand 10 before | Expand all | Expand 10 after
4422 #undef WRITE_INT_FIELD 4422 #undef WRITE_INT_FIELD
4423 #undef READ_SHORT_FIELD 4423 #undef READ_SHORT_FIELD
4424 #undef WRITE_SHORT_FIELD 4424 #undef WRITE_SHORT_FIELD
4425 #undef READ_BYTE_FIELD 4425 #undef READ_BYTE_FIELD
4426 #undef WRITE_BYTE_FIELD 4426 #undef WRITE_BYTE_FIELD
4427 4427
4428 4428
4429 } } // namespace v8::internal 4429 } } // namespace v8::internal
4430 4430
4431 #endif // V8_OBJECTS_INL_H_ 4431 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/arm/full-codegen-arm.cc ('K') | « src/objects.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698