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

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

Issue 6243005: ARM: Reenable Div and Mod in the ARM lithium codegenerator. The... (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 | « no previous file | src/frames.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 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 } 997 }
998 } 998 }
999 999
1000 1000
1001 void LCodeGen::DoUnknownOSRValue(LUnknownOSRValue* instr) { 1001 void LCodeGen::DoUnknownOSRValue(LUnknownOSRValue* instr) {
1002 // Nothing to do. 1002 // Nothing to do.
1003 } 1003 }
1004 1004
1005 1005
1006 void LCodeGen::DoModI(LModI* instr) { 1006 void LCodeGen::DoModI(LModI* instr) {
1007 Abort("ModI not implemented");
1008 class DeferredModI: public LDeferredCode { 1007 class DeferredModI: public LDeferredCode {
1009 public: 1008 public:
1010 DeferredModI(LCodeGen* codegen, LModI* instr) 1009 DeferredModI(LCodeGen* codegen, LModI* instr)
1011 : LDeferredCode(codegen), instr_(instr) { } 1010 : LDeferredCode(codegen), instr_(instr) { }
1012 virtual void Generate() { 1011 virtual void Generate() {
1013 codegen()->DoDeferredGenericBinaryStub(instr_, Token::MOD); 1012 codegen()->DoDeferredGenericBinaryStub(instr_, Token::MOD);
1014 } 1013 }
1015 private: 1014 private:
1016 LModI* instr_; 1015 LModI* instr_;
1017 }; 1016 };
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 __ mov(result, Operand(result, ASR, 1)); 1052 __ mov(result, Operand(result, ASR, 1));
1054 1053
1055 __ b(al, &done); 1054 __ b(al, &done);
1056 __ bind(&deoptimize); 1055 __ bind(&deoptimize);
1057 DeoptimizeIf(al, instr->environment()); 1056 DeoptimizeIf(al, instr->environment());
1058 __ bind(&done); 1057 __ bind(&done);
1059 } 1058 }
1060 1059
1061 1060
1062 void LCodeGen::DoDivI(LDivI* instr) { 1061 void LCodeGen::DoDivI(LDivI* instr) {
1063 Abort("DivI not implemented");
1064 class DeferredDivI: public LDeferredCode { 1062 class DeferredDivI: public LDeferredCode {
1065 public: 1063 public:
1066 DeferredDivI(LCodeGen* codegen, LDivI* instr) 1064 DeferredDivI(LCodeGen* codegen, LDivI* instr)
1067 : LDeferredCode(codegen), instr_(instr) { } 1065 : LDeferredCode(codegen), instr_(instr) { }
1068 virtual void Generate() { 1066 virtual void Generate() {
1069 codegen()->DoDeferredGenericBinaryStub(instr_, Token::DIV); 1067 codegen()->DoDeferredGenericBinaryStub(instr_, Token::DIV);
1070 } 1068 }
1071 private: 1069 private:
1072 LDivI* instr_; 1070 LDivI* instr_;
1073 }; 1071 };
(...skipping 2130 matching lines...) Expand 10 before | Expand all | Expand 10 after
3204 3202
3205 3203
3206 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { 3204 void LCodeGen::DoOsrEntry(LOsrEntry* instr) {
3207 Abort("DoOsrEntry unimplemented."); 3205 Abort("DoOsrEntry unimplemented.");
3208 } 3206 }
3209 3207
3210 3208
3211 #undef __ 3209 #undef __
3212 3210
3213 } } // namespace v8::internal 3211 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698