| 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 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1510 } | 1510 } |
| 1511 | 1511 |
| 1512 | 1512 |
| 1513 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { | 1513 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { |
| 1514 Register result = ToRegister(instr->result()); | 1514 Register result = ToRegister(instr->result()); |
| 1515 __ movq(result, GlobalObjectOperand()); | 1515 __ movq(result, GlobalObjectOperand()); |
| 1516 } | 1516 } |
| 1517 | 1517 |
| 1518 | 1518 |
| 1519 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) { | 1519 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) { |
| 1520 Abort("Unimplemented: %s", "DoGlobalReceiver"); | 1520 Register result = ToRegister(instr->result()); |
| 1521 __ movq(result, Operand(rsi, Context::SlotOffset(Context::GLOBAL_INDEX))); |
| 1522 __ movq(result, FieldOperand(result, GlobalObject::kGlobalReceiverOffset)); |
| 1521 } | 1523 } |
| 1522 | 1524 |
| 1523 | 1525 |
| 1524 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, | 1526 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
| 1525 int arity, | 1527 int arity, |
| 1526 LInstruction* instr) { | 1528 LInstruction* instr) { |
| 1527 Abort("Unimplemented: %s", "CallKnownFunction"); | 1529 Abort("Unimplemented: %s", "CallKnownFunction"); |
| 1528 } | 1530 } |
| 1529 | 1531 |
| 1530 | 1532 |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1813 DeoptimizeIf(cc, instr->environment()); | 1815 DeoptimizeIf(cc, instr->environment()); |
| 1814 } | 1816 } |
| 1815 | 1817 |
| 1816 | 1818 |
| 1817 void LCodeGen::DoCheckInstanceType(LCheckInstanceType* instr) { | 1819 void LCodeGen::DoCheckInstanceType(LCheckInstanceType* instr) { |
| 1818 Abort("Unimplemented: %s", "DoCheckInstanceType"); | 1820 Abort("Unimplemented: %s", "DoCheckInstanceType"); |
| 1819 } | 1821 } |
| 1820 | 1822 |
| 1821 | 1823 |
| 1822 void LCodeGen::DoCheckFunction(LCheckFunction* instr) { | 1824 void LCodeGen::DoCheckFunction(LCheckFunction* instr) { |
| 1823 Abort("Unimplemented: %s", "DoCheckFunction"); | 1825 ASSERT(instr->InputAt(0)->IsRegister()); |
| 1826 Register reg = ToRegister(instr->InputAt(0)); |
| 1827 __ Cmp(reg, instr->hydrogen()->target()); |
| 1828 DeoptimizeIf(not_equal, instr->environment()); |
| 1824 } | 1829 } |
| 1825 | 1830 |
| 1826 | 1831 |
| 1827 void LCodeGen::DoCheckMap(LCheckMap* instr) { | 1832 void LCodeGen::DoCheckMap(LCheckMap* instr) { |
| 1828 LOperand* input = instr->InputAt(0); | 1833 LOperand* input = instr->InputAt(0); |
| 1829 ASSERT(input->IsRegister()); | 1834 ASSERT(input->IsRegister()); |
| 1830 Register reg = ToRegister(input); | 1835 Register reg = ToRegister(input); |
| 1831 __ Cmp(FieldOperand(reg, HeapObject::kMapOffset), | 1836 __ Cmp(FieldOperand(reg, HeapObject::kMapOffset), |
| 1832 instr->hydrogen()->map()); | 1837 instr->hydrogen()->map()); |
| 1833 DeoptimizeIf(not_equal, instr->environment()); | 1838 DeoptimizeIf(not_equal, instr->environment()); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2007 | 2012 |
| 2008 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { | 2013 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { |
| 2009 Abort("Unimplemented: %s", "DoOsrEntry"); | 2014 Abort("Unimplemented: %s", "DoOsrEntry"); |
| 2010 } | 2015 } |
| 2011 | 2016 |
| 2012 #undef __ | 2017 #undef __ |
| 2013 | 2018 |
| 2014 } } // namespace v8::internal | 2019 } } // namespace v8::internal |
| 2015 | 2020 |
| 2016 #endif // V8_TARGET_ARCH_X64 | 2021 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |