| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 void EmitLoadGlobalCheckExtensions(Variable* var, | 459 void EmitLoadGlobalCheckExtensions(Variable* var, |
| 460 TypeofState typeof_state, | 460 TypeofState typeof_state, |
| 461 Label* slow); | 461 Label* slow); |
| 462 MemOperand ContextSlotOperandCheckExtensions(Variable* var, Label* slow); | 462 MemOperand ContextSlotOperandCheckExtensions(Variable* var, Label* slow); |
| 463 void EmitDynamicLookupFastCase(Variable* var, | 463 void EmitDynamicLookupFastCase(Variable* var, |
| 464 TypeofState typeof_state, | 464 TypeofState typeof_state, |
| 465 Label* slow, | 465 Label* slow, |
| 466 Label* done); | 466 Label* done); |
| 467 void EmitVariableLoad(VariableProxy* proxy); | 467 void EmitVariableLoad(VariableProxy* proxy); |
| 468 | 468 |
| 469 enum ResolveEvalFlag { | |
| 470 SKIP_CONTEXT_LOOKUP, | |
| 471 PERFORM_CONTEXT_LOOKUP | |
| 472 }; | |
| 473 | |
| 474 // Expects the arguments and the function already pushed. | 469 // Expects the arguments and the function already pushed. |
| 475 void EmitResolvePossiblyDirectEval(ResolveEvalFlag flag, int arg_count); | 470 void EmitResolvePossiblyDirectEval(int arg_count); |
| 476 | 471 |
| 477 // Platform-specific support for allocating a new closure based on | 472 // Platform-specific support for allocating a new closure based on |
| 478 // the given function info. | 473 // the given function info. |
| 479 void EmitNewClosure(Handle<SharedFunctionInfo> info, bool pretenure); | 474 void EmitNewClosure(Handle<SharedFunctionInfo> info, bool pretenure); |
| 480 | 475 |
| 481 // Platform-specific support for compiling assignments. | 476 // Platform-specific support for compiling assignments. |
| 482 | 477 |
| 483 // Load a value from a named property. | 478 // Load a value from a named property. |
| 484 // The receiver is left on the stack by the IC. | 479 // The receiver is left on the stack by the IC. |
| 485 void EmitNamedPropertyLoad(Property* expr); | 480 void EmitNamedPropertyLoad(Property* expr); |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 | 821 |
| 827 friend class NestedStatement; | 822 friend class NestedStatement; |
| 828 | 823 |
| 829 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 824 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
| 830 }; | 825 }; |
| 831 | 826 |
| 832 | 827 |
| 833 } } // namespace v8::internal | 828 } } // namespace v8::internal |
| 834 | 829 |
| 835 #endif // V8_FULL_CODEGEN_H_ | 830 #endif // V8_FULL_CODEGEN_H_ |
| OLD | NEW |