| 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 752 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   763  |   763  | 
|   764 void FullCodeGenerator::VisitDeclaration(Declaration* decl) { |   764 void FullCodeGenerator::VisitDeclaration(Declaration* decl) { | 
|   765   EmitDeclaration(decl->proxy()->var(), decl->mode(), decl->fun()); |   765   EmitDeclaration(decl->proxy()->var(), decl->mode(), decl->fun()); | 
|   766 } |   766 } | 
|   767  |   767  | 
|   768  |   768  | 
|   769 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { |   769 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { | 
|   770   // Call the runtime to declare the globals. |   770   // Call the runtime to declare the globals. | 
|   771   __ push(esi);  // The context is the first argument. |   771   __ push(esi);  // The context is the first argument. | 
|   772   __ push(Immediate(pairs)); |   772   __ push(Immediate(pairs)); | 
|   773   __ push(Immediate(Smi::FromInt(is_eval() ? 1 : 0))); |   773   __ push(Immediate(Smi::FromInt(DeclareGlobalsFlags()))); | 
|   774   __ push(Immediate(Smi::FromInt(strict_mode_flag()))); |   774   __ CallRuntime(Runtime::kDeclareGlobals, 3); | 
|   775   __ CallRuntime(Runtime::kDeclareGlobals, 4); |  | 
|   776   // Return value is ignored. |   775   // Return value is ignored. | 
|   777 } |   776 } | 
|   778  |   777  | 
|   779  |   778  | 
|   780 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { |   779 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { | 
|   781   Comment cmnt(masm_, "[ SwitchStatement"); |   780   Comment cmnt(masm_, "[ SwitchStatement"); | 
|   782   Breakable nested_statement(this, stmt); |   781   Breakable nested_statement(this, stmt); | 
|   783   SetStatementPosition(stmt); |   782   SetStatementPosition(stmt); | 
|   784  |   783  | 
|   785   int switch_clause_stack_height = stack_height(); |   784   int switch_clause_stack_height = stack_height(); | 
| (...skipping 3474 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  4260   __ add(Operand(edx), Immediate(masm_->CodeObject())); |  4259   __ add(Operand(edx), Immediate(masm_->CodeObject())); | 
|  4261   __ jmp(Operand(edx)); |  4260   __ jmp(Operand(edx)); | 
|  4262 } |  4261 } | 
|  4263  |  4262  | 
|  4264  |  4263  | 
|  4265 #undef __ |  4264 #undef __ | 
|  4266  |  4265  | 
|  4267 } }  // namespace v8::internal |  4266 } }  // namespace v8::internal | 
|  4268  |  4267  | 
|  4269 #endif  // V8_TARGET_ARCH_IA32 |  4268 #endif  // V8_TARGET_ARCH_IA32 | 
| OLD | NEW |