OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 // Return and remove the on-stack parameter. | 74 // Return and remove the on-stack parameter. |
75 __ ret(1 * kPointerSize); | 75 __ ret(1 * kPointerSize); |
76 | 76 |
77 // Create a new closure through the slower runtime call. | 77 // Create a new closure through the slower runtime call. |
78 __ bind(&gc); | 78 __ bind(&gc); |
79 __ pop(rcx); // Temporarily remove return address. | 79 __ pop(rcx); // Temporarily remove return address. |
80 __ pop(rdx); | 80 __ pop(rdx); |
81 __ push(rsi); | 81 __ push(rsi); |
82 __ push(rdx); | 82 __ push(rdx); |
| 83 __ Push(Factory::false_value()); |
83 __ push(rcx); // Restore return address. | 84 __ push(rcx); // Restore return address. |
84 __ TailCallRuntime(Runtime::kNewClosure, 2, 1); | 85 __ TailCallRuntime(Runtime::kNewClosure, 3, 1); |
85 } | 86 } |
86 | 87 |
87 | 88 |
88 void FastNewContextStub::Generate(MacroAssembler* masm) { | 89 void FastNewContextStub::Generate(MacroAssembler* masm) { |
89 // Try to allocate the context in new space. | 90 // Try to allocate the context in new space. |
90 Label gc; | 91 Label gc; |
91 int length = slots_ + Context::MIN_CONTEXT_SLOTS; | 92 int length = slots_ + Context::MIN_CONTEXT_SLOTS; |
92 __ AllocateInNewSpace((length * kPointerSize) + FixedArray::kHeaderSize, | 93 __ AllocateInNewSpace((length * kPointerSize) + FixedArray::kHeaderSize, |
93 rax, rbx, rcx, &gc, TAG_OBJECT); | 94 rax, rbx, rcx, &gc, TAG_OBJECT); |
94 | 95 |
(...skipping 3888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3983 // tagged as a small integer. | 3984 // tagged as a small integer. |
3984 __ bind(&runtime); | 3985 __ bind(&runtime); |
3985 __ TailCallRuntime(Runtime::kStringCompare, 2, 1); | 3986 __ TailCallRuntime(Runtime::kStringCompare, 2, 1); |
3986 } | 3987 } |
3987 | 3988 |
3988 #undef __ | 3989 #undef __ |
3989 | 3990 |
3990 } } // namespace v8::internal | 3991 } } // namespace v8::internal |
3991 | 3992 |
3992 #endif // V8_TARGET_ARCH_X64 | 3993 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |