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 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1184 __ bind(&with_write_barrier); | 1184 __ bind(&with_write_barrier); |
1185 | 1185 |
1186 __ InNewSpace(rbx, rcx, equal, &exit); | 1186 __ InNewSpace(rbx, rcx, equal, &exit); |
1187 | 1187 |
1188 RecordWriteStub stub(rbx, rdx, rcx); | 1188 RecordWriteStub stub(rbx, rdx, rcx); |
1189 __ CallStub(&stub); | 1189 __ CallStub(&stub); |
1190 | 1190 |
1191 __ ret((argc + 1) * kPointerSize); | 1191 __ ret((argc + 1) * kPointerSize); |
1192 | 1192 |
1193 __ bind(&attempt_to_grow_elements); | 1193 __ bind(&attempt_to_grow_elements); |
| 1194 if (!FLAG_inline_new) { |
| 1195 __ jmp(&call_builtin); |
| 1196 } |
| 1197 |
1194 ExternalReference new_space_allocation_top = | 1198 ExternalReference new_space_allocation_top = |
1195 ExternalReference::new_space_allocation_top_address(); | 1199 ExternalReference::new_space_allocation_top_address(); |
1196 ExternalReference new_space_allocation_limit = | 1200 ExternalReference new_space_allocation_limit = |
1197 ExternalReference::new_space_allocation_limit_address(); | 1201 ExternalReference::new_space_allocation_limit_address(); |
1198 | 1202 |
1199 const int kAllocationDelta = 4; | 1203 const int kAllocationDelta = 4; |
1200 // Load top. | 1204 // Load top. |
1201 __ movq(rcx, new_space_allocation_top); | 1205 __ movq(rcx, new_space_allocation_top); |
1202 __ movq(rcx, Operand(rcx, 0)); | 1206 __ movq(rcx, Operand(rcx, 0)); |
1203 | 1207 |
(...skipping 1730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2934 // Return the generated code. | 2938 // Return the generated code. |
2935 return GetCode(); | 2939 return GetCode(); |
2936 } | 2940 } |
2937 | 2941 |
2938 | 2942 |
2939 #undef __ | 2943 #undef __ |
2940 | 2944 |
2941 } } // namespace v8::internal | 2945 } } // namespace v8::internal |
2942 | 2946 |
2943 #endif // V8_TARGET_ARCH_X64 | 2947 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |