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

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

Issue 134643026: Cleanup: Unify CodeGenerator class across platforms (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
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 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 1075
1076 // Generate an Operand for loading an indexed field from an object. 1076 // Generate an Operand for loading an indexed field from an object.
1077 inline Operand FieldOperand(Register object, 1077 inline Operand FieldOperand(Register object,
1078 Register index, 1078 Register index,
1079 ScaleFactor scale, 1079 ScaleFactor scale,
1080 int offset) { 1080 int offset) {
1081 return Operand(object, index, scale, offset - kHeapObjectTag); 1081 return Operand(object, index, scale, offset - kHeapObjectTag);
1082 } 1082 }
1083 1083
1084 1084
1085 inline Operand FixedArrayElementOperand(Register array,
1086 Register index_as_smi,
1087 int additional_offset = 0) {
1088 int offset = FixedArray::kHeaderSize + additional_offset * kPointerSize;
1089 return FieldOperand(array, index_as_smi, times_half_pointer_size, offset);
1090 }
1091
1092
1085 inline Operand ContextOperand(Register context, int index) { 1093 inline Operand ContextOperand(Register context, int index) {
1086 return Operand(context, Context::SlotOffset(index)); 1094 return Operand(context, Context::SlotOffset(index));
1087 } 1095 }
1088 1096
1089 1097
1090 inline Operand GlobalObjectOperand() { 1098 inline Operand GlobalObjectOperand() {
1091 return ContextOperand(esi, Context::GLOBAL_OBJECT_INDEX); 1099 return ContextOperand(esi, Context::GLOBAL_OBJECT_INDEX);
1092 } 1100 }
1093 1101
1094 1102
(...skipping 19 matching lines...) Expand all
1114 } \ 1122 } \
1115 masm-> 1123 masm->
1116 #else 1124 #else
1117 #define ACCESS_MASM(masm) masm-> 1125 #define ACCESS_MASM(masm) masm->
1118 #endif 1126 #endif
1119 1127
1120 1128
1121 } } // namespace v8::internal 1129 } } // namespace v8::internal
1122 1130
1123 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1131 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« src/codegen.h ('K') | « src/ia32/ic-ia32.cc ('k') | src/mips/codegen-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698