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 1863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1874 | 1874 |
1875 void LCodeGen::DoReturn(LReturn* instr) { | 1875 void LCodeGen::DoReturn(LReturn* instr) { |
1876 if (FLAG_trace) { | 1876 if (FLAG_trace) { |
1877 // Preserve the return value on the stack and rely on the runtime | 1877 // Preserve the return value on the stack and rely on the runtime |
1878 // call to return the value in the same register. | 1878 // call to return the value in the same register. |
1879 __ push(eax); | 1879 __ push(eax); |
1880 __ CallRuntime(Runtime::kTraceExit, 1); | 1880 __ CallRuntime(Runtime::kTraceExit, 1); |
1881 } | 1881 } |
1882 __ mov(esp, ebp); | 1882 __ mov(esp, ebp); |
1883 __ pop(ebp); | 1883 __ pop(ebp); |
1884 __ ret((ParameterCount() + 1) * kPointerSize); | 1884 __ Ret((ParameterCount() + 1) * kPointerSize, ecx); |
1885 } | 1885 } |
1886 | 1886 |
1887 | 1887 |
1888 void LCodeGen::DoLoadGlobal(LLoadGlobal* instr) { | 1888 void LCodeGen::DoLoadGlobal(LLoadGlobal* instr) { |
1889 Register result = ToRegister(instr->result()); | 1889 Register result = ToRegister(instr->result()); |
1890 __ mov(result, Operand::Cell(instr->hydrogen()->cell())); | 1890 __ mov(result, Operand::Cell(instr->hydrogen()->cell())); |
1891 if (instr->hydrogen()->check_hole_value()) { | 1891 if (instr->hydrogen()->check_hole_value()) { |
1892 __ cmp(result, Factory::the_hole_value()); | 1892 __ cmp(result, Factory::the_hole_value()); |
1893 DeoptimizeIf(equal, instr->environment()); | 1893 DeoptimizeIf(equal, instr->environment()); |
1894 } | 1894 } |
(...skipping 1799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3694 ASSERT(osr_pc_offset_ == -1); | 3694 ASSERT(osr_pc_offset_ == -1); |
3695 osr_pc_offset_ = masm()->pc_offset(); | 3695 osr_pc_offset_ = masm()->pc_offset(); |
3696 } | 3696 } |
3697 | 3697 |
3698 | 3698 |
3699 #undef __ | 3699 #undef __ |
3700 | 3700 |
3701 } } // namespace v8::internal | 3701 } } // namespace v8::internal |
3702 | 3702 |
3703 #endif // V8_TARGET_ARCH_IA32 | 3703 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |