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

Side by Side Diff: src/ia32/code-stubs-ia32.cc

Issue 6084010: Add partially-implemented TypeRecordingBinaryOpStub to x64 platform. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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/code-stubs-ia32.h ('k') | src/x64/code-stubs-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 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 1754 matching lines...) Expand 10 before | Expand all | Expand 10 after
1765 case Token::SHL: 1765 case Token::SHL:
1766 case Token::SHR: 1766 case Token::SHR:
1767 GenerateTypeTransitionWithSavedArgs(masm); 1767 GenerateTypeTransitionWithSavedArgs(masm);
1768 break; 1768 break;
1769 default: 1769 default:
1770 UNREACHABLE(); 1770 UNREACHABLE();
1771 } 1771 }
1772 } 1772 }
1773 1773
1774 1774
1775
1776 void TypeRecordingBinaryOpStub::GenerateStringStub(MacroAssembler* masm) { 1775 void TypeRecordingBinaryOpStub::GenerateStringStub(MacroAssembler* masm) {
1777 Label call_runtime; 1776 Label call_runtime;
1778 ASSERT(operands_type_ == TRBinaryOpIC::STRING); 1777 ASSERT(operands_type_ == TRBinaryOpIC::STRING);
1779 ASSERT(op_ == Token::ADD); 1778 ASSERT(op_ == Token::ADD);
1780 // If one of the arguments is a string, call the string add stub. 1779 // If one of the arguments is a string, call the string add stub.
1781 // Otherwise, transition to the generic TRBinaryOpIC type. 1780 // Otherwise, transition to the generic TRBinaryOpIC type.
1782 1781
1783 // Registers containing left and right operands respectively. 1782 // Registers containing left and right operands respectively.
1784 Register left = edx; 1783 Register left = edx;
1785 Register right = eax; 1784 Register right = eax;
(...skipping 4619 matching lines...) Expand 10 before | Expand all | Expand 10 after
6405 // Do a tail call to the rewritten stub. 6404 // Do a tail call to the rewritten stub.
6406 __ jmp(Operand(edi)); 6405 __ jmp(Operand(edi));
6407 } 6406 }
6408 6407
6409 6408
6410 #undef __ 6409 #undef __
6411 6410
6412 } } // namespace v8::internal 6411 } } // namespace v8::internal
6413 6412
6414 #endif // V8_TARGET_ARCH_IA32 6413 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.h ('k') | src/x64/code-stubs-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698