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

Side by Side Diff: src/x64/lithium-codegen-x64.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/x64/full-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.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 1632 matching lines...) Expand 10 before | Expand all | Expand 10 after
1643 1643
1644 void LCodeGen::DoReturn(LReturn* instr) { 1644 void LCodeGen::DoReturn(LReturn* instr) {
1645 if (FLAG_trace) { 1645 if (FLAG_trace) {
1646 // Preserve the return value on the stack and rely on the runtime 1646 // Preserve the return value on the stack and rely on the runtime
1647 // call to return the value in the same register. 1647 // call to return the value in the same register.
1648 __ push(rax); 1648 __ push(rax);
1649 __ CallRuntime(Runtime::kTraceExit, 1); 1649 __ CallRuntime(Runtime::kTraceExit, 1);
1650 } 1650 }
1651 __ movq(rsp, rbp); 1651 __ movq(rsp, rbp);
1652 __ pop(rbp); 1652 __ pop(rbp);
1653 __ ret((ParameterCount() + 1) * kPointerSize); 1653 __ Ret((ParameterCount() + 1) * kPointerSize, rcx);
1654 } 1654 }
1655 1655
1656 1656
1657 void LCodeGen::DoLoadGlobal(LLoadGlobal* instr) { 1657 void LCodeGen::DoLoadGlobal(LLoadGlobal* instr) {
1658 Register result = ToRegister(instr->result()); 1658 Register result = ToRegister(instr->result());
1659 if (result.is(rax)) { 1659 if (result.is(rax)) {
1660 __ load_rax(instr->hydrogen()->cell().location(), 1660 __ load_rax(instr->hydrogen()->cell().location(),
1661 RelocInfo::GLOBAL_PROPERTY_CELL); 1661 RelocInfo::GLOBAL_PROPERTY_CELL);
1662 } else { 1662 } else {
1663 __ movq(result, instr->hydrogen()->cell(), RelocInfo::GLOBAL_PROPERTY_CELL); 1663 __ movq(result, instr->hydrogen()->cell(), RelocInfo::GLOBAL_PROPERTY_CELL);
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
2572 2572
2573 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { 2573 void LCodeGen::DoOsrEntry(LOsrEntry* instr) {
2574 Abort("Unimplemented: %s", "DoOsrEntry"); 2574 Abort("Unimplemented: %s", "DoOsrEntry");
2575 } 2575 }
2576 2576
2577 #undef __ 2577 #undef __
2578 2578
2579 } } // namespace v8::internal 2579 } } // namespace v8::internal
2580 2580
2581 #endif // V8_TARGET_ARCH_X64 2581 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698