 Chromium Code Reviews
 Chromium Code Reviews Issue 9187005:
  Enable optimization of top-level code.  (Closed) 
  Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
    
  
    Issue 9187005:
  Enable optimization of top-level code.  (Closed) 
  Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/| Index: src/ia32/lithium-codegen-ia32.cc | 
| =================================================================== | 
| --- src/ia32/lithium-codegen-ia32.cc (revision 10686) | 
| +++ src/ia32/lithium-codegen-ia32.cc (working copy) | 
| @@ -2690,6 +2690,14 @@ | 
| } | 
| +void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 
| + __ push(esi); // The context is the first argument. | 
| 
Jakob Kummerow
2012/02/14 10:08:26
How about an ASSERT(ToRegister(instr->InputAt(0)).
 
fschneider
2012/02/14 13:03:11
Done.
 | 
| + __ push(Immediate(instr->hydrogen()->pairs())); | 
| + __ push(Immediate(Smi::FromInt(instr->hydrogen()->flags()))); | 
| + CallRuntime(Runtime::kDeclareGlobals, 3, instr); | 
| +} | 
| + | 
| + | 
| void LCodeGen::DoGlobalObject(LGlobalObject* instr) { | 
| Register context = ToRegister(instr->context()); | 
| Register result = ToRegister(instr->result()); |