| 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 2658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2669 void LCodeGen::DoPushArgument(LPushArgument* instr) { | 2669 void LCodeGen::DoPushArgument(LPushArgument* instr) { |
| 2670 LOperand* argument = instr->InputAt(0); | 2670 LOperand* argument = instr->InputAt(0); |
| 2671 if (argument->IsConstantOperand()) { | 2671 if (argument->IsConstantOperand()) { |
| 2672 __ push(ToImmediate(argument)); | 2672 __ push(ToImmediate(argument)); |
| 2673 } else { | 2673 } else { |
| 2674 __ push(ToOperand(argument)); | 2674 __ push(ToOperand(argument)); |
| 2675 } | 2675 } |
| 2676 } | 2676 } |
| 2677 | 2677 |
| 2678 | 2678 |
| 2679 void LCodeGen::DoThisFunction(LThisFunction* instr) { |
| 2680 Register result = ToRegister(instr->result()); |
| 2681 __ mov(result, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
| 2682 } |
| 2683 |
| 2684 |
| 2679 void LCodeGen::DoContext(LContext* instr) { | 2685 void LCodeGen::DoContext(LContext* instr) { |
| 2680 Register result = ToRegister(instr->result()); | 2686 Register result = ToRegister(instr->result()); |
| 2681 __ mov(result, Operand(ebp, StandardFrameConstants::kContextOffset)); | 2687 __ mov(result, Operand(ebp, StandardFrameConstants::kContextOffset)); |
| 2682 } | 2688 } |
| 2683 | 2689 |
| 2684 | 2690 |
| 2685 void LCodeGen::DoOuterContext(LOuterContext* instr) { | 2691 void LCodeGen::DoOuterContext(LOuterContext* instr) { |
| 2686 Register context = ToRegister(instr->context()); | 2692 Register context = ToRegister(instr->context()); |
| 2687 Register result = ToRegister(instr->result()); | 2693 Register result = ToRegister(instr->result()); |
| 2688 __ mov(result, Operand(context, Context::SlotOffset(Context::CLOSURE_INDEX))); | 2694 __ mov(result, Operand(context, Context::SlotOffset(Context::CLOSURE_INDEX))); |
| (...skipping 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4454 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); | 4460 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); |
| 4455 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); | 4461 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); |
| 4456 } | 4462 } |
| 4457 | 4463 |
| 4458 | 4464 |
| 4459 #undef __ | 4465 #undef __ |
| 4460 | 4466 |
| 4461 } } // namespace v8::internal | 4467 } } // namespace v8::internal |
| 4462 | 4468 |
| 4463 #endif // V8_TARGET_ARCH_IA32 | 4469 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |