| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 // The following are used by class Reference. | 249 // The following are used by class Reference. |
| 250 void LoadReference(Reference* ref); | 250 void LoadReference(Reference* ref); |
| 251 void UnloadReference(Reference* ref); | 251 void UnloadReference(Reference* ref); |
| 252 | 252 |
| 253 MemOperand ContextOperand(Register context, int index) const { | 253 MemOperand ContextOperand(Register context, int index) const { |
| 254 return MemOperand(context, Context::SlotOffset(index)); | 254 return MemOperand(context, Context::SlotOffset(index)); |
| 255 } | 255 } |
| 256 | 256 |
| 257 MemOperand SlotOperand(Slot* slot, Register tmp); | 257 MemOperand SlotOperand(Slot* slot, Register tmp); |
| 258 | 258 |
| 259 MemOperand ContextSlotOperandCheckExtensions(Slot* slot, | |
| 260 Register tmp, | |
| 261 Register tmp2, | |
| 262 Label* slow); | |
| 263 | |
| 264 // Expressions | 259 // Expressions |
| 265 MemOperand GlobalObject() const { | 260 MemOperand GlobalObject() const { |
| 266 return ContextOperand(cp, Context::GLOBAL_INDEX); | 261 return ContextOperand(cp, Context::GLOBAL_INDEX); |
| 267 } | 262 } |
| 268 | 263 |
| 269 void LoadCondition(Expression* x, | 264 void LoadCondition(Expression* x, |
| 270 TypeofState typeof_state, | 265 TypeofState typeof_state, |
| 271 Label* true_target, | 266 Label* true_target, |
| 272 Label* false_target, | 267 Label* false_target, |
| 273 bool force_cc); | 268 bool force_cc); |
| 274 void Load(Expression* x, TypeofState typeof_state = NOT_INSIDE_TYPEOF); | 269 void Load(Expression* x, TypeofState typeof_state = NOT_INSIDE_TYPEOF); |
| 275 void LoadGlobal(); | 270 void LoadGlobal(); |
| 276 void LoadGlobalReceiver(Register scratch); | 271 void LoadGlobalReceiver(Register scratch); |
| 277 | 272 |
| 278 // Read a value from a slot and leave it on top of the expression stack. | 273 // Read a value from a slot and leave it on top of the expression stack. |
| 279 void LoadFromSlot(Slot* slot, TypeofState typeof_state); | 274 void LoadFromSlot(Slot* slot, TypeofState typeof_state); |
| 280 void LoadFromGlobalSlotCheckExtensions(Slot* slot, | |
| 281 TypeofState typeof_state, | |
| 282 Register tmp, | |
| 283 Register tmp2, | |
| 284 Label* slow); | |
| 285 | 275 |
| 286 // Special code for typeof expressions: Unfortunately, we must | 276 // Special code for typeof expressions: Unfortunately, we must |
| 287 // be careful when loading the expression in 'typeof' | 277 // be careful when loading the expression in 'typeof' |
| 288 // expressions. We are not allowed to throw reference errors for | 278 // expressions. We are not allowed to throw reference errors for |
| 289 // non-existing properties of the global object, so we must make it | 279 // non-existing properties of the global object, so we must make it |
| 290 // look like an explicit property access, instead of an access | 280 // look like an explicit property access, instead of an access |
| 291 // through the context chain. | 281 // through the context chain. |
| 292 void LoadTypeofExpression(Expression* x); | 282 void LoadTypeofExpression(Expression* x); |
| 293 | 283 |
| 294 void ToBoolean(Label* true_target, Label* false_target); | 284 void ToBoolean(Label* true_target, Label* false_target); |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 | 408 |
| 419 friend class VirtualFrame; | 409 friend class VirtualFrame; |
| 420 friend class Reference; | 410 friend class Reference; |
| 421 | 411 |
| 422 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 412 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
| 423 }; | 413 }; |
| 424 | 414 |
| 425 } } // namespace v8::internal | 415 } } // namespace v8::internal |
| 426 | 416 |
| 427 #endif // V8_CODEGEN_ARM_H_ | 417 #endif // V8_CODEGEN_ARM_H_ |
| OLD | NEW |