| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // argc is the number of arguments excluding the receiver. | 43 // argc is the number of arguments excluding the receiver. |
| 44 // JumpToBuiltin expects eax to contain the number of arguments | 44 // JumpToBuiltin expects eax to contain the number of arguments |
| 45 // including the receiver. | 45 // including the receiver. |
| 46 __ mov(eax, argc + 1); | 46 __ mov(eax, argc + 1); |
| 47 __ mov(Operand::StaticVariable(ExternalReference::builtin_passed_function()), | 47 __ mov(Operand::StaticVariable(ExternalReference::builtin_passed_function()), |
| 48 edi); | 48 edi); |
| 49 __ JumpToBuiltin(ExternalReference(id)); | 49 __ JumpToBuiltin(ExternalReference(id)); |
| 50 } | 50 } |
| 51 | 51 |
| 52 | 52 |
| 53 DEFINE_bool(inline_new, true, "use fast inline allocation"); | |
| 54 | |
| 55 | |
| 56 void Builtins::Generate_JSConstructCall(MacroAssembler* masm) { | 53 void Builtins::Generate_JSConstructCall(MacroAssembler* masm) { |
| 57 // ----------- S t a t e ------------- | 54 // ----------- S t a t e ------------- |
| 58 // -- eax: number of arguments | 55 // -- eax: number of arguments |
| 59 // -- edi: constructor function | 56 // -- edi: constructor function |
| 60 // ----------------------------------- | 57 // ----------------------------------- |
| 61 | 58 |
| 62 // Enter an internal frame. | 59 // Enter an internal frame. |
| 63 __ EnterInternalFrame(); | 60 __ EnterInternalFrame(); |
| 64 | 61 |
| 65 // Store a smi-tagged arguments count on the stack. | 62 // Store a smi-tagged arguments count on the stack. |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 // Register state for stub CallFunction (from CallFunctionStub in ic-ia32.cc). | 873 // Register state for stub CallFunction (from CallFunctionStub in ic-ia32.cc). |
| 877 // ----------- S t a t e ------------- | 874 // ----------- S t a t e ------------- |
| 878 // No registers used on entry. | 875 // No registers used on entry. |
| 879 // ----------------------------------- | 876 // ----------------------------------- |
| 880 Generate_DebugBreakCallHelper(masm, 0, false); | 877 Generate_DebugBreakCallHelper(masm, 0, false); |
| 881 } | 878 } |
| 882 | 879 |
| 883 #undef __ | 880 #undef __ |
| 884 | 881 |
| 885 } } // namespace v8::internal | 882 } } // namespace v8::internal |
| OLD | NEW |