OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |