OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 4894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4905 __ StoreToSafepointRegisterSlot(result, eax); | 4905 __ StoreToSafepointRegisterSlot(result, eax); |
4906 } | 4906 } |
4907 | 4907 |
4908 | 4908 |
4909 void LCodeGen::DoStringAdd(LStringAdd* instr) { | 4909 void LCodeGen::DoStringAdd(LStringAdd* instr) { |
4910 ASSERT(ToRegister(instr->context()).is(esi)); | 4910 ASSERT(ToRegister(instr->context()).is(esi)); |
4911 if (FLAG_new_string_add) { | 4911 if (FLAG_new_string_add) { |
4912 ASSERT(ToRegister(instr->left()).is(edx)); | 4912 ASSERT(ToRegister(instr->left()).is(edx)); |
4913 ASSERT(ToRegister(instr->right()).is(eax)); | 4913 ASSERT(ToRegister(instr->right()).is(eax)); |
4914 NewStringAddStub stub(instr->hydrogen()->flags(), | 4914 NewStringAddStub stub(instr->hydrogen()->flags(), |
4915 isolate()->heap()->GetPretenureMode()); | 4915 instr->hydrogen()->pretenure_flag()); |
4916 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 4916 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
4917 } else { | 4917 } else { |
4918 EmitPushTaggedOperand(instr->left()); | 4918 EmitPushTaggedOperand(instr->left()); |
4919 EmitPushTaggedOperand(instr->right()); | 4919 EmitPushTaggedOperand(instr->right()); |
4920 StringAddStub stub(instr->hydrogen()->flags()); | 4920 StringAddStub stub(instr->hydrogen()->flags()); |
4921 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 4921 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
4922 } | 4922 } |
4923 } | 4923 } |
4924 | 4924 |
4925 | 4925 |
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6363 FixedArray::kHeaderSize - kPointerSize)); | 6363 FixedArray::kHeaderSize - kPointerSize)); |
6364 __ bind(&done); | 6364 __ bind(&done); |
6365 } | 6365 } |
6366 | 6366 |
6367 | 6367 |
6368 #undef __ | 6368 #undef __ |
6369 | 6369 |
6370 } } // namespace v8::internal | 6370 } } // namespace v8::internal |
6371 | 6371 |
6372 #endif // V8_TARGET_ARCH_IA32 | 6372 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |