| OLD | NEW |
| 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 "src/hydrogen.h" | 5 #include "src/hydrogen.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/v8.h" | 9 #include "src/v8.h" |
| 10 | 10 |
| (...skipping 5914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5925 PropertyAccessInfo* info, | 5925 PropertyAccessInfo* info, |
| 5926 HValue* checked_object) { | 5926 HValue* checked_object) { |
| 5927 // See if this is a load for an immutable property | 5927 // See if this is a load for an immutable property |
| 5928 if (checked_object->ActualValue()->IsConstant()) { | 5928 if (checked_object->ActualValue()->IsConstant()) { |
| 5929 Handle<Object> object( | 5929 Handle<Object> object( |
| 5930 HConstant::cast(checked_object->ActualValue())->handle(isolate())); | 5930 HConstant::cast(checked_object->ActualValue())->handle(isolate())); |
| 5931 | 5931 |
| 5932 if (object->IsJSObject()) { | 5932 if (object->IsJSObject()) { |
| 5933 LookupIterator it(object, info->name(), | 5933 LookupIterator it(object, info->name(), |
| 5934 LookupIterator::OWN_SKIP_INTERCEPTOR); | 5934 LookupIterator::OWN_SKIP_INTERCEPTOR); |
| 5935 Handle<Object> value = JSReceiver::GetDataProperty(&it); | 5935 Handle<Object> value = JSObject::GetDataProperty(&it); |
| 5936 if (it.IsFound() && it.IsReadOnly() && !it.IsConfigurable()) { | 5936 if (it.IsFound() && it.IsReadOnly() && !it.IsConfigurable()) { |
| 5937 return New<HConstant>(value); | 5937 return New<HConstant>(value); |
| 5938 } | 5938 } |
| 5939 } | 5939 } |
| 5940 } | 5940 } |
| 5941 | 5941 |
| 5942 HObjectAccess access = info->access(); | 5942 HObjectAccess access = info->access(); |
| 5943 if (access.representation().IsDouble() && | 5943 if (access.representation().IsDouble() && |
| 5944 (!FLAG_unbox_double_fields || !access.IsInobject())) { | 5944 (!FLAG_unbox_double_fields || !access.IsInobject())) { |
| 5945 // Load the heap number. | 5945 // Load the heap number. |
| (...skipping 7204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13150 if (ShouldProduceTraceOutput()) { | 13150 if (ShouldProduceTraceOutput()) { |
| 13151 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13151 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13152 } | 13152 } |
| 13153 | 13153 |
| 13154 #ifdef DEBUG | 13154 #ifdef DEBUG |
| 13155 graph_->Verify(false); // No full verify. | 13155 graph_->Verify(false); // No full verify. |
| 13156 #endif | 13156 #endif |
| 13157 } | 13157 } |
| 13158 | 13158 |
| 13159 } } // namespace v8::internal | 13159 } } // namespace v8::internal |
| OLD | NEW |