OLD | NEW |
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 4505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4516 } else { | 4516 } else { |
4517 // Non-negative property indices are in the properties array. | 4517 // Non-negative property indices are in the properties array. |
4518 int offset = (index * kPointerSize) + FixedArray::kHeaderSize; | 4518 int offset = (index * kPointerSize) + FixedArray::kHeaderSize; |
4519 return new(zone()) HLoadNamedField(object, false, offset); | 4519 return new(zone()) HLoadNamedField(object, false, offset); |
4520 } | 4520 } |
4521 } | 4521 } |
4522 | 4522 |
4523 | 4523 |
4524 HInstruction* HGraphBuilder::BuildLoadNamedGeneric(HValue* obj, | 4524 HInstruction* HGraphBuilder::BuildLoadNamedGeneric(HValue* obj, |
4525 Property* expr) { | 4525 Property* expr) { |
4526 if (expr->IsUninitialized()) { | 4526 if (expr->IsUninitialized() && !FLAG_always_opt) { |
4527 AddInstruction(new(zone()) HSoftDeoptimize); | 4527 AddInstruction(new(zone()) HSoftDeoptimize); |
4528 current_block()->MarkAsDeoptimizing(); | 4528 current_block()->MarkAsDeoptimizing(); |
4529 } | 4529 } |
4530 ASSERT(expr->key()->IsPropertyName()); | 4530 ASSERT(expr->key()->IsPropertyName()); |
4531 Handle<Object> name = expr->key()->AsLiteral()->handle(); | 4531 Handle<Object> name = expr->key()->AsLiteral()->handle(); |
4532 HValue* context = environment()->LookupContext(); | 4532 HValue* context = environment()->LookupContext(); |
4533 return new(zone()) HLoadNamedGeneric(context, obj, name); | 4533 return new(zone()) HLoadNamedGeneric(context, obj, name); |
4534 } | 4534 } |
4535 | 4535 |
4536 | 4536 |
(...skipping 3628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8165 } | 8165 } |
8166 } | 8166 } |
8167 | 8167 |
8168 #ifdef DEBUG | 8168 #ifdef DEBUG |
8169 if (graph_ != NULL) graph_->Verify(false); // No full verify. | 8169 if (graph_ != NULL) graph_->Verify(false); // No full verify. |
8170 if (allocator_ != NULL) allocator_->Verify(); | 8170 if (allocator_ != NULL) allocator_->Verify(); |
8171 #endif | 8171 #endif |
8172 } | 8172 } |
8173 | 8173 |
8174 } } // namespace v8::internal | 8174 } } // namespace v8::internal |
OLD | NEW |