OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
10 #include "src/ic/ic.h" | 10 #include "src/ic/ic.h" |
(...skipping 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1990 } | 1990 } |
1991 } | 1991 } |
1992 | 1992 |
1993 | 1993 |
1994 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { | 1994 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { |
1995 DCHECK(ToRegister(instr->context()).is(cp)); | 1995 DCHECK(ToRegister(instr->context()).is(cp)); |
1996 DCHECK(ToRegister(instr->left()).is(a1)); | 1996 DCHECK(ToRegister(instr->left()).is(a1)); |
1997 DCHECK(ToRegister(instr->right()).is(a0)); | 1997 DCHECK(ToRegister(instr->right()).is(a0)); |
1998 DCHECK(ToRegister(instr->result()).is(v0)); | 1998 DCHECK(ToRegister(instr->result()).is(v0)); |
1999 | 1999 |
2000 Handle<Code> code = | 2000 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), instr->op()).code(); |
2001 CodeFactory::BinaryOpIC(isolate(), instr->op(), NO_OVERWRITE).code(); | |
2002 CallCode(code, RelocInfo::CODE_TARGET, instr); | 2001 CallCode(code, RelocInfo::CODE_TARGET, instr); |
2003 // Other arch use a nop here, to signal that there is no inlined | 2002 // Other arch use a nop here, to signal that there is no inlined |
2004 // patchable code. Mips does not need the nop, since our marker | 2003 // patchable code. Mips does not need the nop, since our marker |
2005 // instruction (andi zero_reg) will never be used in normal code. | 2004 // instruction (andi zero_reg) will never be used in normal code. |
2006 } | 2005 } |
2007 | 2006 |
2008 | 2007 |
2009 template<class InstrType> | 2008 template<class InstrType> |
2010 void LCodeGen::EmitBranch(InstrType instr, | 2009 void LCodeGen::EmitBranch(InstrType instr, |
2011 Condition condition, | 2010 Condition condition, |
(...skipping 4005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6017 __ li(at, scope_info); | 6016 __ li(at, scope_info); |
6018 __ Push(at, ToRegister(instr->function())); | 6017 __ Push(at, ToRegister(instr->function())); |
6019 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6018 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6020 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6019 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6021 } | 6020 } |
6022 | 6021 |
6023 | 6022 |
6024 #undef __ | 6023 #undef __ |
6025 | 6024 |
6026 } } // namespace v8::internal | 6025 } } // namespace v8::internal |
OLD | NEW |