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

Side by Side Diff: src/crankshaft/s390/lithium-s390.cc

Issue 1973883003: S390: [crankshaft] Fragmentation-free allocation folding. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: use kNear more Created 4 years, 7 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
« no previous file with comments | « src/crankshaft/s390/lithium-s390.h ('k') | src/s390/macro-assembler-s390.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/crankshaft/s390/lithium-s390.h" 5 #include "src/crankshaft/s390/lithium-s390.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/lithium-inl.h" 10 #include "src/crankshaft/lithium-inl.h"
(...skipping 2106 matching lines...) Expand 10 before | Expand all | Expand 10 after
2117 2117
2118 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) { 2118 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) {
2119 LOperand* char_code = UseRegister(instr->value()); 2119 LOperand* char_code = UseRegister(instr->value());
2120 LOperand* context = UseAny(instr->context()); 2120 LOperand* context = UseAny(instr->context());
2121 LStringCharFromCode* result = 2121 LStringCharFromCode* result =
2122 new (zone()) LStringCharFromCode(context, char_code); 2122 new (zone()) LStringCharFromCode(context, char_code);
2123 return AssignPointerMap(DefineAsRegister(result)); 2123 return AssignPointerMap(DefineAsRegister(result));
2124 } 2124 }
2125 2125
2126 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { 2126 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) {
2127 info()->MarkAsDeferredCalling();
2128 LOperand* context = UseAny(instr->context());
2129 LOperand* size = UseRegisterOrConstant(instr->size()); 2127 LOperand* size = UseRegisterOrConstant(instr->size());
2130 LOperand* temp1 = TempRegister(); 2128 LOperand* temp1 = TempRegister();
2131 LOperand* temp2 = TempRegister(); 2129 LOperand* temp2 = TempRegister();
2132 LAllocate* result = new (zone()) LAllocate(context, size, temp1, temp2); 2130 if (instr->IsAllocationFolded()) {
2133 return AssignPointerMap(DefineAsRegister(result)); 2131 LFastAllocate* result = new (zone()) LFastAllocate(size, temp1, temp2);
2132 return DefineAsRegister(result);
2133 } else {
2134 info()->MarkAsDeferredCalling();
2135 LOperand* context = UseAny(instr->context());
2136 LAllocate* result = new (zone()) LAllocate(context, size, temp1, temp2);
2137 return AssignPointerMap(DefineAsRegister(result));
2138 }
2134 } 2139 }
2135 2140
2136 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { 2141 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) {
2137 DCHECK(argument_count_ == 0); 2142 DCHECK(argument_count_ == 0);
2138 allocator_->MarkAsOsrEntry(); 2143 allocator_->MarkAsOsrEntry();
2139 current_block_->last_environment()->set_ast_id(instr->ast_id()); 2144 current_block_->last_environment()->set_ast_id(instr->ast_id());
2140 return AssignEnvironment(new (zone()) LOsrEntry); 2145 return AssignEnvironment(new (zone()) LOsrEntry);
2141 } 2146 }
2142 2147
2143 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2148 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
2281 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2286 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2282 LOperand* object = UseRegister(instr->object()); 2287 LOperand* object = UseRegister(instr->object());
2283 LOperand* index = UseTempRegister(instr->index()); 2288 LOperand* index = UseTempRegister(instr->index());
2284 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); 2289 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index);
2285 LInstruction* result = DefineSameAsFirst(load); 2290 LInstruction* result = DefineSameAsFirst(load);
2286 return AssignPointerMap(result); 2291 return AssignPointerMap(result);
2287 } 2292 }
2288 2293
2289 } // namespace internal 2294 } // namespace internal
2290 } // namespace v8 2295 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-s390.h ('k') | src/s390/macro-assembler-s390.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698