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

Side by Side Diff: src/x64/lithium-codegen-x64.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/mips/lithium-codegen-mips.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 4367 matching lines...) Expand 10 before | Expand all | Expand 10 after
4378 DeoptimizeIf(equal, instr->environment()); 4378 DeoptimizeIf(equal, instr->environment());
4379 __ bind(&no_memento_found); 4379 __ bind(&no_memento_found);
4380 } 4380 }
4381 4381
4382 4382
4383 void LCodeGen::DoStringAdd(LStringAdd* instr) { 4383 void LCodeGen::DoStringAdd(LStringAdd* instr) {
4384 ASSERT(ToRegister(instr->context()).is(rsi)); 4384 ASSERT(ToRegister(instr->context()).is(rsi));
4385 ASSERT(ToRegister(instr->left()).is(rdx)); 4385 ASSERT(ToRegister(instr->left()).is(rdx));
4386 ASSERT(ToRegister(instr->right()).is(rax)); 4386 ASSERT(ToRegister(instr->right()).is(rax));
4387 StringAddStub stub(instr->hydrogen()->flags(), 4387 StringAddStub stub(instr->hydrogen()->flags(),
4388 isolate()->heap()->GetPretenureMode()); 4388 instr->hydrogen()->pretenure_flag());
4389 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 4389 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
4390 } 4390 }
4391 4391
4392 4392
4393 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { 4393 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) {
4394 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode { 4394 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode {
4395 public: 4395 public:
4396 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) 4396 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr)
4397 : LDeferredCode(codegen), instr_(instr) { } 4397 : LDeferredCode(codegen), instr_(instr) { }
4398 virtual void Generate() V8_OVERRIDE { 4398 virtual void Generate() V8_OVERRIDE {
(...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after
5623 FixedArray::kHeaderSize - kPointerSize)); 5623 FixedArray::kHeaderSize - kPointerSize));
5624 __ bind(&done); 5624 __ bind(&done);
5625 } 5625 }
5626 5626
5627 5627
5628 #undef __ 5628 #undef __
5629 5629
5630 } } // namespace v8::internal 5630 } } // namespace v8::internal
5631 5631
5632 #endif // V8_TARGET_ARCH_X64 5632 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698