| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 JumpTarget* true_target, | 243 JumpTarget* true_target, |
| 244 JumpTarget* false_target, | 244 JumpTarget* false_target, |
| 245 bool force_cc); | 245 bool force_cc); |
| 246 void Load(Expression* x, TypeofState typeof_state = NOT_INSIDE_TYPEOF); | 246 void Load(Expression* x, TypeofState typeof_state = NOT_INSIDE_TYPEOF); |
| 247 void LoadGlobal(); | 247 void LoadGlobal(); |
| 248 void LoadGlobalReceiver(Register scratch); | 248 void LoadGlobalReceiver(Register scratch); |
| 249 | 249 |
| 250 // Read a value from a slot and leave it on top of the expression stack. | 250 // Read a value from a slot and leave it on top of the expression stack. |
| 251 void LoadFromSlot(Slot* slot, TypeofState typeof_state); | 251 void LoadFromSlot(Slot* slot, TypeofState typeof_state); |
| 252 | 252 |
| 253 // Store the value on top of the expression stack into a slot, leaving the |
| 254 // value in place. |
| 255 void StoreToSlot(Slot* slot, InitState init_state); |
| 256 |
| 253 // Special code for typeof expressions: Unfortunately, we must | 257 // Special code for typeof expressions: Unfortunately, we must |
| 254 // be careful when loading the expression in 'typeof' | 258 // be careful when loading the expression in 'typeof' |
| 255 // expressions. We are not allowed to throw reference errors for | 259 // expressions. We are not allowed to throw reference errors for |
| 256 // non-existing properties of the global object, so we must make it | 260 // non-existing properties of the global object, so we must make it |
| 257 // look like an explicit property access, instead of an access | 261 // look like an explicit property access, instead of an access |
| 258 // through the context chain. | 262 // through the context chain. |
| 259 void LoadTypeofExpression(Expression* x); | 263 void LoadTypeofExpression(Expression* x); |
| 260 | 264 |
| 261 void ToBoolean(JumpTarget* true_target, JumpTarget* false_target); | 265 void ToBoolean(JumpTarget* true_target, JumpTarget* false_target); |
| 262 | 266 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 friend class JumpTarget; | 414 friend class JumpTarget; |
| 411 friend class Reference; | 415 friend class Reference; |
| 412 | 416 |
| 413 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 417 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
| 414 }; | 418 }; |
| 415 | 419 |
| 416 | 420 |
| 417 } } // namespace v8::internal | 421 } } // namespace v8::internal |
| 418 | 422 |
| 419 #endif // V8_CODEGEN_IA32_H_ | 423 #endif // V8_CODEGEN_IA32_H_ |
| OLD | NEW |