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

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

Issue 553117: Implementing inline caches for binary operations (ia32).... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 9 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/spaces.cc ('k') | no next file » | 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 8880 matching lines...) Expand 10 before | Expand all | Expand 10 after
8891 // If arguments are not passed in registers remove them from the stack before 8891 // If arguments are not passed in registers remove them from the stack before
8892 // returning. 8892 // returning.
8893 if (!HasArgsInRegisters()) { 8893 if (!HasArgsInRegisters()) {
8894 __ ret(2 * kPointerSize); // Remove both operands 8894 __ ret(2 * kPointerSize); // Remove both operands
8895 } else { 8895 } else {
8896 __ ret(0); 8896 __ ret(0);
8897 } 8897 }
8898 } 8898 }
8899 8899
8900 8900
8901 Handle<Code> GetBinaryOpStub(int key, BinaryOpIC::TypeInfo type_info) {
8902 return Handle<Code>::null();
8903 }
8904
8905
8901 int CompareStub::MinorKey() { 8906 int CompareStub::MinorKey() {
8902 // Encode the three parameters in a unique 16 bit value. 8907 // Encode the three parameters in a unique 16 bit value.
8903 ASSERT(static_cast<unsigned>(cc_) < (1 << 14)); 8908 ASSERT(static_cast<unsigned>(cc_) < (1 << 14));
8904 int nnn_value = (never_nan_nan_ ? 2 : 0); 8909 int nnn_value = (never_nan_nan_ ? 2 : 0);
8905 if (cc_ != equal) nnn_value = 0; // Avoid duplicate stubs. 8910 if (cc_ != equal) nnn_value = 0; // Avoid duplicate stubs.
8906 return (static_cast<unsigned>(cc_) << 2) | nnn_value | (strict_ ? 1 : 0); 8911 return (static_cast<unsigned>(cc_) << 2) | nnn_value | (strict_ ? 1 : 0);
8907 } 8912 }
8908 8913
8909 8914
8910 const char* CompareStub::GetName() { 8915 const char* CompareStub::GetName() {
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
9553 // Call the function from C++. 9558 // Call the function from C++.
9554 return FUNCTION_CAST<ModuloFunction>(buffer); 9559 return FUNCTION_CAST<ModuloFunction>(buffer);
9555 } 9560 }
9556 9561
9557 #endif 9562 #endif
9558 9563
9559 9564
9560 #undef __ 9565 #undef __
9561 9566
9562 } } // namespace v8::internal 9567 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/spaces.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698