| 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 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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  Loading... | 
| 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_ | 
| OLD | NEW | 
|---|