OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1975 } | 1975 } |
1976 | 1976 |
1977 | 1977 |
1978 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 1978 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
1979 LOperand* context = UseFixed(instr->context(), cp); | 1979 LOperand* context = UseFixed(instr->context(), cp); |
1980 return MarkAsCall( | 1980 return MarkAsCall( |
1981 DefineFixed(new(zone()) LRegExpLiteral(context), x0), instr); | 1981 DefineFixed(new(zone()) LRegExpLiteral(context), x0), instr); |
1982 } | 1982 } |
1983 | 1983 |
1984 | 1984 |
| 1985 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) { |
| 1986 HValue* value = instr->value(); |
| 1987 ASSERT(value->representation().IsDouble()); |
| 1988 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value))); |
| 1989 } |
| 1990 |
| 1991 |
| 1992 LInstruction* LChunkBuilder::DoConstructDouble(HConstructDouble* instr) { |
| 1993 LOperand* lo = UseRegister(instr->lo()); |
| 1994 LOperand* hi = UseRegister(instr->hi()); |
| 1995 LOperand* temp = TempRegister(); |
| 1996 return DefineAsRegister(new(zone()) LConstructDouble(hi, lo, temp)); |
| 1997 } |
| 1998 |
| 1999 |
1985 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 2000 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
1986 LOperand* context = info()->IsStub() | 2001 LOperand* context = info()->IsStub() |
1987 ? UseFixed(instr->context(), cp) | 2002 ? UseFixed(instr->context(), cp) |
1988 : NULL; | 2003 : NULL; |
1989 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); | 2004 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
1990 return new(zone()) LReturn(UseFixed(instr->value(), x0), context, | 2005 return new(zone()) LReturn(UseFixed(instr->value(), x0), context, |
1991 parameter_count); | 2006 parameter_count); |
1992 } | 2007 } |
1993 | 2008 |
1994 | 2009 |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2552 | 2567 |
2553 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2568 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
2554 LOperand* receiver = UseRegister(instr->receiver()); | 2569 LOperand* receiver = UseRegister(instr->receiver()); |
2555 LOperand* function = UseRegister(instr->function()); | 2570 LOperand* function = UseRegister(instr->function()); |
2556 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2571 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
2557 return AssignEnvironment(DefineAsRegister(result)); | 2572 return AssignEnvironment(DefineAsRegister(result)); |
2558 } | 2573 } |
2559 | 2574 |
2560 | 2575 |
2561 } } // namespace v8::internal | 2576 } } // namespace v8::internal |
OLD | NEW |