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 2042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2053 } | 2053 } |
2054 | 2054 |
2055 | 2055 |
2056 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { | 2056 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { |
2057 DCHECK(ToRegister(instr->context()).is(cp)); | 2057 DCHECK(ToRegister(instr->context()).is(cp)); |
2058 DCHECK(ToRegister(instr->left()).is(a1)); | 2058 DCHECK(ToRegister(instr->left()).is(a1)); |
2059 DCHECK(ToRegister(instr->right()).is(a0)); | 2059 DCHECK(ToRegister(instr->right()).is(a0)); |
2060 DCHECK(ToRegister(instr->result()).is(v0)); | 2060 DCHECK(ToRegister(instr->result()).is(v0)); |
2061 | 2061 |
2062 Handle<Code> code = CodeFactory::BinaryOpIC( | 2062 Handle<Code> code = CodeFactory::BinaryOpIC( |
2063 isolate(), instr->op(), language_mode()).code(); | 2063 isolate(), instr->op(), instr->language_mode()).code(); |
2064 CallCode(code, RelocInfo::CODE_TARGET, instr); | 2064 CallCode(code, RelocInfo::CODE_TARGET, instr); |
2065 // Other arch use a nop here, to signal that there is no inlined | 2065 // Other arch use a nop here, to signal that there is no inlined |
2066 // patchable code. Mips does not need the nop, since our marker | 2066 // patchable code. Mips does not need the nop, since our marker |
2067 // instruction (andi zero_reg) will never be used in normal code. | 2067 // instruction (andi zero_reg) will never be used in normal code. |
2068 } | 2068 } |
2069 | 2069 |
2070 | 2070 |
2071 template<class InstrType> | 2071 template<class InstrType> |
2072 void LCodeGen::EmitBranch(InstrType instr, | 2072 void LCodeGen::EmitBranch(InstrType instr, |
2073 Condition condition, | 2073 Condition condition, |
(...skipping 3919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5993 __ li(at, scope_info); | 5993 __ li(at, scope_info); |
5994 __ Push(at, ToRegister(instr->function())); | 5994 __ Push(at, ToRegister(instr->function())); |
5995 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5995 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5996 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5996 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5997 } | 5997 } |
5998 | 5998 |
5999 | 5999 |
6000 #undef __ | 6000 #undef __ |
6001 | 6001 |
6002 } } // namespace v8::internal | 6002 } } // namespace v8::internal |
OLD | NEW |