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

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

Issue 106453003: Allocation site support for monomorphic StringAdds in BinaryOps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix NewStringAddStub flags bits. Created 7 years 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
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 4900 matching lines...) Expand 10 before | Expand all | Expand 10 after
4911 __ StoreToSafepointRegisterSlot(result, eax); 4911 __ StoreToSafepointRegisterSlot(result, eax);
4912 } 4912 }
4913 4913
4914 4914
4915 void LCodeGen::DoStringAdd(LStringAdd* instr) { 4915 void LCodeGen::DoStringAdd(LStringAdd* instr) {
4916 ASSERT(ToRegister(instr->context()).is(esi)); 4916 ASSERT(ToRegister(instr->context()).is(esi));
4917 if (FLAG_new_string_add) { 4917 if (FLAG_new_string_add) {
4918 ASSERT(ToRegister(instr->left()).is(edx)); 4918 ASSERT(ToRegister(instr->left()).is(edx));
4919 ASSERT(ToRegister(instr->right()).is(eax)); 4919 ASSERT(ToRegister(instr->right()).is(eax));
4920 NewStringAddStub stub(instr->hydrogen()->flags(), 4920 NewStringAddStub stub(instr->hydrogen()->flags(),
4921 isolate()->heap()->GetPretenureMode()); 4921 instr->hydrogen()->pretenure_flag());
4922 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 4922 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
4923 } else { 4923 } else {
4924 EmitPushTaggedOperand(instr->left()); 4924 EmitPushTaggedOperand(instr->left());
4925 EmitPushTaggedOperand(instr->right()); 4925 EmitPushTaggedOperand(instr->right());
4926 StringAddStub stub(instr->hydrogen()->flags()); 4926 StringAddStub stub(instr->hydrogen()->flags());
4927 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 4927 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
4928 } 4928 }
4929 } 4929 }
4930 4930
4931 4931
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after
6369 FixedArray::kHeaderSize - kPointerSize)); 6369 FixedArray::kHeaderSize - kPointerSize));
6370 __ bind(&done); 6370 __ bind(&done);
6371 } 6371 }
6372 6372
6373 6373
6374 #undef __ 6374 #undef __
6375 6375
6376 } } // namespace v8::internal 6376 } } // namespace v8::internal
6377 6377
6378 #endif // V8_TARGET_ARCH_IA32 6378 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698