Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 122463004: Revert "Fix compilation with C++11." and "Allocation site support for monomorphic StringAdds in Bin… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ic.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 instr->hydrogen()->pretenure_flag()); 4915 isolate()->heap()->GetPretenureMode());
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
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
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698