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

Side by Side Diff: src/x64/full-codegen-x64.cc

Issue 6456023: x64: Enable inline smi code patching to reenable the inlined code in (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge/out
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/assembler-x64.h ('k') | src/x64/ic-x64.cc » ('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 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after
1631 break; 1631 break;
1632 } 1632 }
1633 1633
1634 __ bind(&done); 1634 __ bind(&done);
1635 context()->Plug(rax); 1635 context()->Plug(rax);
1636 } 1636 }
1637 1637
1638 1638
1639 void FullCodeGenerator::EmitBinaryOp(Token::Value op, 1639 void FullCodeGenerator::EmitBinaryOp(Token::Value op,
1640 OverwriteMode mode) { 1640 OverwriteMode mode) {
1641 __ pop(rdx);
1641 TypeRecordingBinaryOpStub stub(op, mode); 1642 TypeRecordingBinaryOpStub stub(op, mode);
1642 __ pop(rdx); 1643 EmitCallIC(stub.GetCode(), NULL); // NULL signals no inlined smi code.
1643 __ CallStub(&stub);
1644 context()->Plug(rax); 1644 context()->Plug(rax);
1645 } 1645 }
1646 1646
1647 1647
1648 void FullCodeGenerator::EmitAssignment(Expression* expr, int bailout_ast_id) { 1648 void FullCodeGenerator::EmitAssignment(Expression* expr, int bailout_ast_id) {
1649 // Invalid left-hand sides are rewritten to have a 'throw 1649 // Invalid left-hand sides are rewritten to have a 'throw
1650 // ReferenceError' on the left-hand side. 1650 // ReferenceError' on the left-hand side.
1651 if (!expr->IsValidLeftHandSide()) { 1651 if (!expr->IsValidLeftHandSide()) {
1652 VisitForEffect(expr); 1652 VisitForEffect(expr);
1653 return; 1653 return;
(...skipping 2083 matching lines...) Expand 10 before | Expand all | Expand 10 after
3737 __ ret(0); 3737 __ ret(0);
3738 } 3738 }
3739 3739
3740 3740
3741 #undef __ 3741 #undef __
3742 3742
3743 3743
3744 } } // namespace v8::internal 3744 } } // namespace v8::internal
3745 3745
3746 #endif // V8_TARGET_ARCH_X64 3746 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698