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

Side by Side Diff: src/arm/lithium-codegen-arm.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 | « no previous file | src/mips/lithium-codegen-mips.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. 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 4487 matching lines...) Expand 10 before | Expand all | Expand 10 after
4498 DeoptimizeIf(eq, instr->environment()); 4498 DeoptimizeIf(eq, instr->environment());
4499 __ bind(&no_memento_found); 4499 __ bind(&no_memento_found);
4500 } 4500 }
4501 4501
4502 4502
4503 void LCodeGen::DoStringAdd(LStringAdd* instr) { 4503 void LCodeGen::DoStringAdd(LStringAdd* instr) {
4504 ASSERT(ToRegister(instr->context()).is(cp)); 4504 ASSERT(ToRegister(instr->context()).is(cp));
4505 ASSERT(ToRegister(instr->left()).is(r1)); 4505 ASSERT(ToRegister(instr->left()).is(r1));
4506 ASSERT(ToRegister(instr->right()).is(r0)); 4506 ASSERT(ToRegister(instr->right()).is(r0));
4507 StringAddStub stub(instr->hydrogen()->flags(), 4507 StringAddStub stub(instr->hydrogen()->flags(),
4508 isolate()->heap()->GetPretenureMode()); 4508 instr->hydrogen()->pretenure_flag());
4509 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 4509 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
4510 } 4510 }
4511 4511
4512 4512
4513 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { 4513 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) {
4514 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode { 4514 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode {
4515 public: 4515 public:
4516 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) 4516 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr)
4517 : LDeferredCode(codegen), instr_(instr) { } 4517 : LDeferredCode(codegen), instr_(instr) { }
4518 virtual void Generate() V8_OVERRIDE { 4518 virtual void Generate() V8_OVERRIDE {
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
5818 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5818 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5819 __ ldr(result, FieldMemOperand(scratch, 5819 __ ldr(result, FieldMemOperand(scratch,
5820 FixedArray::kHeaderSize - kPointerSize)); 5820 FixedArray::kHeaderSize - kPointerSize));
5821 __ bind(&done); 5821 __ bind(&done);
5822 } 5822 }
5823 5823
5824 5824
5825 #undef __ 5825 #undef __
5826 5826
5827 } } // namespace v8::internal 5827 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698