Chromium Code Reviews| 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 2660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2671 | 2671 |
| 2672 void LCodeGen::DoContext(LContext* instr) { | 2672 void LCodeGen::DoContext(LContext* instr) { |
| 2673 Register result = ToRegister(instr->result()); | 2673 Register result = ToRegister(instr->result()); |
| 2674 __ mov(result, Operand(ebp, StandardFrameConstants::kContextOffset)); | 2674 __ mov(result, Operand(ebp, StandardFrameConstants::kContextOffset)); |
| 2675 } | 2675 } |
| 2676 | 2676 |
| 2677 | 2677 |
| 2678 void LCodeGen::DoOuterContext(LOuterContext* instr) { | 2678 void LCodeGen::DoOuterContext(LOuterContext* instr) { |
| 2679 Register context = ToRegister(instr->context()); | 2679 Register context = ToRegister(instr->context()); |
| 2680 Register result = ToRegister(instr->result()); | 2680 Register result = ToRegister(instr->result()); |
| 2681 __ mov(result, Operand(context, Context::SlotOffset(Context::CLOSURE_INDEX))); | 2681 __ mov(result, Operand(context, Context::SlotOffset(Context::PREVIOUS_INDEX))) ; |
|
Mads Ager (chromium)
2011/06/09 17:32:07
Long line?
| |
| 2682 __ mov(result, FieldOperand(result, JSFunction::kContextOffset)); | |
| 2683 } | 2682 } |
| 2684 | 2683 |
| 2685 | 2684 |
| 2686 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { | 2685 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { |
| 2687 Register context = ToRegister(instr->context()); | 2686 Register context = ToRegister(instr->context()); |
| 2688 Register result = ToRegister(instr->result()); | 2687 Register result = ToRegister(instr->result()); |
| 2689 __ mov(result, Operand(context, Context::SlotOffset(Context::GLOBAL_INDEX))); | 2688 __ mov(result, Operand(context, Context::SlotOffset(Context::GLOBAL_INDEX))); |
| 2690 } | 2689 } |
| 2691 | 2690 |
| 2692 | 2691 |
| (...skipping 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4459 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); | 4458 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); |
| 4460 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); | 4459 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); |
| 4461 } | 4460 } |
| 4462 | 4461 |
| 4463 | 4462 |
| 4464 #undef __ | 4463 #undef __ |
| 4465 | 4464 |
| 4466 } } // namespace v8::internal | 4465 } } // namespace v8::internal |
| 4467 | 4466 |
| 4468 #endif // V8_TARGET_ARCH_IA32 | 4467 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |