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

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

Issue 147763005: Allocation site pretenuring for StringAdd on all platforms. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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/arm/lithium-codegen-arm.cc ('k') | src/x64/lithium-codegen-x64.cc » ('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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
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 4422 matching lines...) Expand 10 before | Expand all | Expand 10 after
4433 DeoptimizeIf(al, instr->environment()); 4433 DeoptimizeIf(al, instr->environment());
4434 __ bind(&no_memento_found); 4434 __ bind(&no_memento_found);
4435 } 4435 }
4436 4436
4437 4437
4438 void LCodeGen::DoStringAdd(LStringAdd* instr) { 4438 void LCodeGen::DoStringAdd(LStringAdd* instr) {
4439 ASSERT(ToRegister(instr->context()).is(cp)); 4439 ASSERT(ToRegister(instr->context()).is(cp));
4440 ASSERT(ToRegister(instr->left()).is(a1)); 4440 ASSERT(ToRegister(instr->left()).is(a1));
4441 ASSERT(ToRegister(instr->right()).is(a0)); 4441 ASSERT(ToRegister(instr->right()).is(a0));
4442 StringAddStub stub(instr->hydrogen()->flags(), 4442 StringAddStub stub(instr->hydrogen()->flags(),
4443 isolate()->heap()->GetPretenureMode()); 4443 instr->hydrogen()->pretenure_flag());
4444 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 4444 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
4445 } 4445 }
4446 4446
4447 4447
4448 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { 4448 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) {
4449 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode { 4449 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode {
4450 public: 4450 public:
4451 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) 4451 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr)
4452 : LDeferredCode(codegen), instr_(instr) { } 4452 : LDeferredCode(codegen), instr_(instr) { }
4453 virtual void Generate() V8_OVERRIDE { 4453 virtual void Generate() V8_OVERRIDE {
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after
5808 __ Subu(scratch, result, scratch); 5808 __ Subu(scratch, result, scratch);
5809 __ lw(result, FieldMemOperand(scratch, 5809 __ lw(result, FieldMemOperand(scratch,
5810 FixedArray::kHeaderSize - kPointerSize)); 5810 FixedArray::kHeaderSize - kPointerSize));
5811 __ bind(&done); 5811 __ bind(&done);
5812 } 5812 }
5813 5813
5814 5814
5815 #undef __ 5815 #undef __
5816 5816
5817 } } // namespace v8::internal 5817 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698