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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 return ContextOperand(cp, Context::GLOBAL_INDEX); | 218 return ContextOperand(cp, Context::GLOBAL_INDEX); |
219 } | 219 } |
220 | 220 |
221 void LoadCondition(Expression* x, | 221 void LoadCondition(Expression* x, |
222 TypeofState typeof_state, | 222 TypeofState typeof_state, |
223 Label* true_target, | 223 Label* true_target, |
224 Label* false_target, | 224 Label* false_target, |
225 bool force_cc); | 225 bool force_cc); |
226 void Load(Expression* x, TypeofState typeof_state = NOT_INSIDE_TYPEOF); | 226 void Load(Expression* x, TypeofState typeof_state = NOT_INSIDE_TYPEOF); |
227 void LoadGlobal(); | 227 void LoadGlobal(); |
| 228 void LoadGlobalReceiver(Register scratch); |
228 | 229 |
229 // Read a value from a slot and leave it on top of the expression stack. | 230 // Read a value from a slot and leave it on top of the expression stack. |
230 void LoadFromSlot(Slot* slot, TypeofState typeof_state); | 231 void LoadFromSlot(Slot* slot, TypeofState typeof_state); |
231 | 232 |
232 // Special code for typeof expressions: Unfortunately, we must | 233 // Special code for typeof expressions: Unfortunately, we must |
233 // be careful when loading the expression in 'typeof' | 234 // be careful when loading the expression in 'typeof' |
234 // expressions. We are not allowed to throw reference errors for | 235 // expressions. We are not allowed to throw reference errors for |
235 // non-existing properties of the global object, so we must make it | 236 // non-existing properties of the global object, so we must make it |
236 // look like an explicit property access, instead of an access | 237 // look like an explicit property access, instead of an access |
237 // through the context chain. | 238 // through the context chain. |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 friend class Property; | 363 friend class Property; |
363 friend class VariableProxy; | 364 friend class VariableProxy; |
364 friend class Slot; | 365 friend class Slot; |
365 | 366 |
366 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 367 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
367 }; | 368 }; |
368 | 369 |
369 } } // namespace v8::internal | 370 } } // namespace v8::internal |
370 | 371 |
371 #endif // V8_CODEGEN_ARM_H_ | 372 #endif // V8_CODEGEN_ARM_H_ |
OLD | NEW |