Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1497)

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 6447007: Fix a bug that occurs when functions are defined with more than 16,382 parame... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698