OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
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 2025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2036 } | 2036 } |
2037 } | 2037 } |
2038 | 2038 |
2039 | 2039 |
2040 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { | 2040 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { |
2041 DCHECK(ToRegister(instr->context()).is(cp)); | 2041 DCHECK(ToRegister(instr->context()).is(cp)); |
2042 DCHECK(ToRegister(instr->left()).is(a1)); | 2042 DCHECK(ToRegister(instr->left()).is(a1)); |
2043 DCHECK(ToRegister(instr->right()).is(a0)); | 2043 DCHECK(ToRegister(instr->right()).is(a0)); |
2044 DCHECK(ToRegister(instr->result()).is(v0)); | 2044 DCHECK(ToRegister(instr->result()).is(v0)); |
2045 | 2045 |
2046 Handle<Code> code = | 2046 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), instr->op()).code(); |
2047 CodeFactory::BinaryOpIC(isolate(), instr->op(), NO_OVERWRITE).code(); | |
2048 CallCode(code, RelocInfo::CODE_TARGET, instr); | 2047 CallCode(code, RelocInfo::CODE_TARGET, instr); |
2049 // Other arch use a nop here, to signal that there is no inlined | 2048 // Other arch use a nop here, to signal that there is no inlined |
2050 // patchable code. Mips does not need the nop, since our marker | 2049 // patchable code. Mips does not need the nop, since our marker |
2051 // instruction (andi zero_reg) will never be used in normal code. | 2050 // instruction (andi zero_reg) will never be used in normal code. |
2052 } | 2051 } |
2053 | 2052 |
2054 | 2053 |
2055 template<class InstrType> | 2054 template<class InstrType> |
2056 void LCodeGen::EmitBranch(InstrType instr, | 2055 void LCodeGen::EmitBranch(InstrType instr, |
2057 Condition condition, | 2056 Condition condition, |
(...skipping 3931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5989 __ li(at, scope_info); | 5988 __ li(at, scope_info); |
5990 __ Push(at, ToRegister(instr->function())); | 5989 __ Push(at, ToRegister(instr->function())); |
5991 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5990 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5992 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5991 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5993 } | 5992 } |
5994 | 5993 |
5995 | 5994 |
5996 #undef __ | 5995 #undef __ |
5997 | 5996 |
5998 } } // namespace v8::internal | 5997 } } // namespace v8::internal |
OLD | NEW |