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

Side by Side Diff: src/arm64/lithium-arm64.cc

Issue 256303007: Don't add code dependencies on transitioning stores eagerly. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 "v8.h" 5 #include "v8.h"
6 6
7 #include "lithium-allocator-inl.h" 7 #include "lithium-allocator-inl.h"
8 #include "arm64/lithium-arm64.h" 8 #include "arm64/lithium-arm64.h"
9 #include "arm64/lithium-codegen-arm64.h" 9 #include "arm64/lithium-codegen-arm64.h"
10 #include "hydrogen-osr.h" 10 #include "hydrogen-osr.h"
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 } 353 }
354 } 354 }
355 355
356 356
357 void LChunkBuilder::Abort(BailoutReason reason) { 357 void LChunkBuilder::Abort(BailoutReason reason) {
358 info()->set_bailout_reason(reason); 358 info()->set_bailout_reason(reason);
359 status_ = ABORTED; 359 status_ = ABORTED;
360 } 360 }
361 361
362 362
363 void LChunkBuilder::AddDeprecationDependency(Handle<Map> map) {
364 if (map->is_deprecated()) return Abort(kMapBecameDeprecated);
365 chunk_->AddDeprecationDependency(map);
366 }
367
368
363 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { 369 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) {
364 return new(zone()) LUnallocated(LUnallocated::FIXED_REGISTER, 370 return new(zone()) LUnallocated(LUnallocated::FIXED_REGISTER,
365 Register::ToAllocationIndex(reg)); 371 Register::ToAllocationIndex(reg));
366 } 372 }
367 373
368 374
369 LUnallocated* LChunkBuilder::ToUnallocated(DoubleRegister reg) { 375 LUnallocated* LChunkBuilder::ToUnallocated(DoubleRegister reg) {
370 return new(zone()) LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, 376 return new(zone()) LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER,
371 DoubleRegister::ToAllocationIndex(reg)); 377 DoubleRegister::ToAllocationIndex(reg));
372 } 378 }
(...skipping 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after
2243 temp1 = TempRegister(); 2249 temp1 = TempRegister();
2244 } else if (instr->NeedsWriteBarrierForMap()) { 2250 } else if (instr->NeedsWriteBarrierForMap()) {
2245 value = UseRegister(instr->value()); 2251 value = UseRegister(instr->value());
2246 temp0 = TempRegister(); 2252 temp0 = TempRegister();
2247 temp1 = TempRegister(); 2253 temp1 = TempRegister();
2248 } else { 2254 } else {
2249 value = UseRegister(instr->value()); 2255 value = UseRegister(instr->value());
2250 temp0 = TempRegister(); 2256 temp0 = TempRegister();
2251 } 2257 }
2252 2258
2259 // Add a deprecation dependency on the transition target map.
2260 if (instr->has_transition()) {
2261 AddDeprecationDependency(instr->transition_map());
2262 }
2263
2253 LStoreNamedField* result = 2264 LStoreNamedField* result =
2254 new(zone()) LStoreNamedField(object, value, temp0, temp1); 2265 new(zone()) LStoreNamedField(object, value, temp0, temp1);
2255 if (instr->field_representation().IsHeapObject() && 2266 if (instr->field_representation().IsHeapObject() &&
2256 !instr->value()->type().IsHeapObject()) { 2267 !instr->value()->type().IsHeapObject()) {
2257 return AssignEnvironment(result); 2268 return AssignEnvironment(result);
2258 } 2269 }
2259 return result; 2270 return result;
2260 } 2271 }
2261 2272
2262 2273
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
2558 2569
2559 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 2570 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
2560 LOperand* receiver = UseRegister(instr->receiver()); 2571 LOperand* receiver = UseRegister(instr->receiver());
2561 LOperand* function = UseRegister(instr->function()); 2572 LOperand* function = UseRegister(instr->function());
2562 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 2573 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
2563 return AssignEnvironment(DefineAsRegister(result)); 2574 return AssignEnvironment(DefineAsRegister(result));
2564 } 2575 }
2565 2576
2566 2577
2567 } } // namespace v8::internal 2578 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/lithium-arm64.h ('k') | src/arm64/lithium-codegen-arm64.cc » ('j') | src/handles.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698