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

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

Issue 6449001: X64 Crankshaft: Use TypeRecordingBinaryStub in crankshaft. (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 | « no previous file | 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 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 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 void LCodeGen::DoArithmeticD(LArithmeticD* instr) { 843 void LCodeGen::DoArithmeticD(LArithmeticD* instr) {
844 Abort("Unimplemented: %s", "DoArithmeticD"); 844 Abort("Unimplemented: %s", "DoArithmeticD");
845 } 845 }
846 846
847 847
848 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { 848 void LCodeGen::DoArithmeticT(LArithmeticT* instr) {
849 ASSERT(ToRegister(instr->InputAt(0)).is(rdx)); 849 ASSERT(ToRegister(instr->InputAt(0)).is(rdx));
850 ASSERT(ToRegister(instr->InputAt(1)).is(rax)); 850 ASSERT(ToRegister(instr->InputAt(1)).is(rax));
851 ASSERT(ToRegister(instr->result()).is(rax)); 851 ASSERT(ToRegister(instr->result()).is(rax));
852 852
853 GenericBinaryOpStub stub(instr->op(), NO_OVERWRITE, NO_GENERIC_BINARY_FLAGS); 853 TypeRecordingBinaryOpStub stub(instr->op(), NO_OVERWRITE);
854 stub.SetArgsInRegisters();
855 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 854 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
856 } 855 }
857 856
858 857
859 int LCodeGen::GetNextEmittedBlock(int block) { 858 int LCodeGen::GetNextEmittedBlock(int block) {
860 for (int i = block + 1; i < graph()->blocks()->length(); ++i) { 859 for (int i = block + 1; i < graph()->blocks()->length(); ++i) {
861 LLabel* label = chunk_->GetLabel(i); 860 LLabel* label = chunk_->GetLabel(i);
862 if (!label->HasReplacement()) return i; 861 if (!label->HasReplacement()) return i;
863 } 862 }
864 return -1; 863 return -1;
(...skipping 1530 matching lines...) Expand 10 before | Expand all | Expand 10 after
2395 2394
2396 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { 2395 void LCodeGen::DoOsrEntry(LOsrEntry* instr) {
2397 Abort("Unimplemented: %s", "DoOsrEntry"); 2396 Abort("Unimplemented: %s", "DoOsrEntry");
2398 } 2397 }
2399 2398
2400 #undef __ 2399 #undef __
2401 2400
2402 } } // namespace v8::internal 2401 } } // namespace v8::internal
2403 2402
2404 #endif // V8_TARGET_ARCH_X64 2403 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698