OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1731 Register reg = | 1731 Register reg = |
1732 CheckPrototypes(object, receiver, holder, | 1732 CheckPrototypes(object, receiver, holder, |
1733 scratch1, scratch2, name, miss); | 1733 scratch1, scratch2, name, miss); |
1734 | 1734 |
1735 // Return the constant value. | 1735 // Return the constant value. |
1736 __ Move(rax, Handle<Object>(value)); | 1736 __ Move(rax, Handle<Object>(value)); |
1737 __ ret(0); | 1737 __ ret(0); |
1738 } | 1738 } |
1739 | 1739 |
1740 | 1740 |
| 1741 Object* ConstructStubCompiler::CompileConstructStub( |
| 1742 SharedFunctionInfo* shared) { |
| 1743 // Not implemented yet - just jump to generic stub. |
| 1744 Code* code = Builtins::builtin(Builtins::JSConstructStubGeneric); |
| 1745 Handle<Code> generic_construct_stub(code); |
| 1746 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); |
| 1747 |
| 1748 // Return the generated code. |
| 1749 return GetCode(); |
| 1750 } |
| 1751 |
| 1752 |
1741 #undef __ | 1753 #undef __ |
1742 | 1754 |
1743 } } // namespace v8::internal | 1755 } } // namespace v8::internal |
OLD | NEW |