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

Side by Side Diff: src/x64/macro-assembler-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/macro-assembler-x64.h ('k') | test/mjsunit/regress/regress-1122.js » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 // Remove the remaining fields. 1534 // Remove the remaining fields.
1535 addq(rsp, Immediate(StackHandlerConstants::kSize - kPointerSize)); 1535 addq(rsp, Immediate(StackHandlerConstants::kSize - kPointerSize));
1536 } 1536 }
1537 1537
1538 1538
1539 void MacroAssembler::Ret() { 1539 void MacroAssembler::Ret() {
1540 ret(0); 1540 ret(0);
1541 } 1541 }
1542 1542
1543 1543
1544 void MacroAssembler::Ret(int bytes_dropped, Register scratch) {
1545 if (is_uint16(bytes_dropped)) {
1546 ret(bytes_dropped);
1547 } else {
1548 pop(scratch);
1549 addq(rsp, Immediate(bytes_dropped));
1550 push(scratch);
1551 ret(0);
1552 }
1553 }
1554
1555
1544 void MacroAssembler::FCmp() { 1556 void MacroAssembler::FCmp() {
1545 fucomip(); 1557 fucomip();
1546 fstp(0); 1558 fstp(0);
1547 } 1559 }
1548 1560
1549 1561
1550 void MacroAssembler::CmpObjectType(Register heap_object, 1562 void MacroAssembler::CmpObjectType(Register heap_object,
1551 InstanceType type, 1563 InstanceType type,
1552 Register map) { 1564 Register map) {
1553 movq(map, FieldOperand(heap_object, HeapObject::kMapOffset)); 1565 movq(map, FieldOperand(heap_object, HeapObject::kMapOffset));
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
2478 CPU::FlushICache(address_, size_); 2490 CPU::FlushICache(address_, size_);
2479 2491
2480 // Check that the code was patched as expected. 2492 // Check that the code was patched as expected.
2481 ASSERT(masm_.pc_ == address_ + size_); 2493 ASSERT(masm_.pc_ == address_ + size_);
2482 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 2494 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
2483 } 2495 }
2484 2496
2485 } } // namespace v8::internal 2497 } } // namespace v8::internal
2486 2498
2487 #endif // V8_TARGET_ARCH_X64 2499 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | test/mjsunit/regress/regress-1122.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698