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

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

Issue 16482004: Revert "Enable map dependency to in-flight compilation info." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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/ia32/lithium-codegen-ia32.h ('k') | src/mark-compact.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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 ASSERT(is_done()); 102 ASSERT(is_done());
103 code->set_stack_slots(GetStackSlotCount()); 103 code->set_stack_slots(GetStackSlotCount());
104 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); 104 code->set_safepoint_table_offset(safepoints_.GetCodeOffset());
105 if (FLAG_weak_embedded_maps_in_optimized_code) { 105 if (FLAG_weak_embedded_maps_in_optimized_code) {
106 RegisterDependentCodeForEmbeddedMaps(code); 106 RegisterDependentCodeForEmbeddedMaps(code);
107 } 107 }
108 PopulateDeoptimizationData(code); 108 PopulateDeoptimizationData(code);
109 if (!info()->IsStub()) { 109 if (!info()->IsStub()) {
110 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code); 110 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code);
111 } 111 }
112 info()->CommitDependentMaps(code); 112 for (int i = 0 ; i < prototype_maps_.length(); i++) {
113 prototype_maps_.at(i)->AddDependentCode(
114 DependentCode::kPrototypeCheckGroup, code);
115 }
116 for (int i = 0 ; i < transition_maps_.length(); i++) {
117 transition_maps_.at(i)->AddDependentCode(
118 DependentCode::kTransitionGroup, code);
119 }
120 if (graph()->depends_on_empty_array_proto_elements()) {
121 isolate()->initial_object_prototype()->map()->AddDependentCode(
122 DependentCode::kElementsCantBeAddedGroup, code);
123 isolate()->initial_array_prototype()->map()->AddDependentCode(
124 DependentCode::kElementsCantBeAddedGroup, code);
125 }
113 } 126 }
114 127
115 128
116 void LCodeGen::Abort(const char* reason) { 129 void LCodeGen::Abort(const char* reason) {
117 info()->set_bailout_reason(reason); 130 info()->set_bailout_reason(reason);
118 status_ = ABORTED; 131 status_ = ABORTED;
119 } 132 }
120 133
121 134
122 void LCodeGen::Comment(const char* format, ...) { 135 void LCodeGen::Comment(const char* format, ...) {
(...skipping 4172 matching lines...) Expand 10 before | Expand all | Expand 10 after
4295 CpuFeatureScope scope(masm(), SSE2); 4308 CpuFeatureScope scope(masm(), SSE2);
4296 XMMRegister value = ToDoubleRegister(instr->value()); 4309 XMMRegister value = ToDoubleRegister(instr->value());
4297 __ movdbl(FieldOperand(object, offset), value); 4310 __ movdbl(FieldOperand(object, offset), value);
4298 } else { 4311 } else {
4299 __ fstp_d(FieldOperand(object, offset)); 4312 __ fstp_d(FieldOperand(object, offset));
4300 } 4313 }
4301 return; 4314 return;
4302 } 4315 }
4303 4316
4304 if (!transition.is_null()) { 4317 if (!transition.is_null()) {
4318 if (transition->CanBeDeprecated()) {
4319 transition_maps_.Add(transition, info()->zone());
4320 }
4305 if (!instr->hydrogen()->NeedsWriteBarrierForMap()) { 4321 if (!instr->hydrogen()->NeedsWriteBarrierForMap()) {
4306 __ mov(FieldOperand(object, HeapObject::kMapOffset), transition); 4322 __ mov(FieldOperand(object, HeapObject::kMapOffset), transition);
4307 } else { 4323 } else {
4308 Register temp = ToRegister(instr->temp()); 4324 Register temp = ToRegister(instr->temp());
4309 Register temp_map = ToRegister(instr->temp_map()); 4325 Register temp_map = ToRegister(instr->temp_map());
4310 __ mov(temp_map, transition); 4326 __ mov(temp_map, transition);
4311 __ mov(FieldOperand(object, HeapObject::kMapOffset), temp_map); 4327 __ mov(FieldOperand(object, HeapObject::kMapOffset), temp_map);
4312 // Update the write barrier for the map field. 4328 // Update the write barrier for the map field.
4313 __ RecordWriteField(object, 4329 __ RecordWriteField(object,
4314 HeapObject::kMapOffset, 4330 HeapObject::kMapOffset,
(...skipping 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after
5970 5986
5971 5987
5972 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) { 5988 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) {
5973 Register reg = ToRegister(instr->temp()); 5989 Register reg = ToRegister(instr->temp());
5974 5990
5975 ZoneList<Handle<JSObject> >* prototypes = instr->prototypes(); 5991 ZoneList<Handle<JSObject> >* prototypes = instr->prototypes();
5976 ZoneList<Handle<Map> >* maps = instr->maps(); 5992 ZoneList<Handle<Map> >* maps = instr->maps();
5977 5993
5978 ASSERT(prototypes->length() == maps->length()); 5994 ASSERT(prototypes->length() == maps->length());
5979 5995
5980 if (!instr->hydrogen()->CanOmitPrototypeChecks()) { 5996 if (instr->hydrogen()->CanOmitPrototypeChecks()) {
5997 for (int i = 0; i < maps->length(); i++) {
5998 prototype_maps_.Add(maps->at(i), info()->zone());
5999 }
6000 } else {
5981 for (int i = 0; i < prototypes->length(); i++) { 6001 for (int i = 0; i < prototypes->length(); i++) {
5982 __ LoadHeapObject(reg, prototypes->at(i)); 6002 __ LoadHeapObject(reg, prototypes->at(i));
5983 DoCheckMapCommon(reg, maps->at(i), instr); 6003 DoCheckMapCommon(reg, maps->at(i), instr);
5984 } 6004 }
5985 } 6005 }
5986 } 6006 }
5987 6007
5988 6008
5989 void LCodeGen::DoAllocate(LAllocate* instr) { 6009 void LCodeGen::DoAllocate(LAllocate* instr) {
5990 class DeferredAllocate: public LDeferredCode { 6010 class DeferredAllocate: public LDeferredCode {
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
6499 FixedArray::kHeaderSize - kPointerSize)); 6519 FixedArray::kHeaderSize - kPointerSize));
6500 __ bind(&done); 6520 __ bind(&done);
6501 } 6521 }
6502 6522
6503 6523
6504 #undef __ 6524 #undef __
6505 6525
6506 } } // namespace v8::internal 6526 } } // namespace v8::internal
6507 6527
6508 #endif // V8_TARGET_ARCH_IA32 6528 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.h ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698