| 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 5899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5910 PropertyAccessInfo* info, | 5910 PropertyAccessInfo* info, |
| 5911 HValue* checked_object) { | 5911 HValue* checked_object) { |
| 5912 // See if this is a load for an immutable property | 5912 // See if this is a load for an immutable property |
| 5913 if (checked_object->ActualValue()->IsConstant()) { | 5913 if (checked_object->ActualValue()->IsConstant()) { |
| 5914 Handle<Object> object( | 5914 Handle<Object> object( |
| 5915 HConstant::cast(checked_object->ActualValue())->handle(isolate())); | 5915 HConstant::cast(checked_object->ActualValue())->handle(isolate())); |
| 5916 | 5916 |
| 5917 if (object->IsJSObject()) { | 5917 if (object->IsJSObject()) { |
| 5918 LookupIterator it(object, info->name(), | 5918 LookupIterator it(object, info->name(), |
| 5919 LookupIterator::OWN_SKIP_INTERCEPTOR); | 5919 LookupIterator::OWN_SKIP_INTERCEPTOR); |
| 5920 Handle<Object> value = JSObject::GetDataProperty(&it); | 5920 Handle<Object> value = JSReceiver::GetDataProperty(&it); |
| 5921 if (it.IsFound() && it.IsReadOnly() && !it.IsConfigurable()) { | 5921 if (it.IsFound() && it.IsReadOnly() && !it.IsConfigurable()) { |
| 5922 return New<HConstant>(value); | 5922 return New<HConstant>(value); |
| 5923 } | 5923 } |
| 5924 } | 5924 } |
| 5925 } | 5925 } |
| 5926 | 5926 |
| 5927 HObjectAccess access = info->access(); | 5927 HObjectAccess access = info->access(); |
| 5928 if (access.representation().IsDouble() && | 5928 if (access.representation().IsDouble() && |
| 5929 (!FLAG_unbox_double_fields || !access.IsInobject())) { | 5929 (!FLAG_unbox_double_fields || !access.IsInobject())) { |
| 5930 // Load the heap number. | 5930 // Load the heap number. |
| (...skipping 7201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13132 if (ShouldProduceTraceOutput()) { | 13132 if (ShouldProduceTraceOutput()) { |
| 13133 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13133 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13134 } | 13134 } |
| 13135 | 13135 |
| 13136 #ifdef DEBUG | 13136 #ifdef DEBUG |
| 13137 graph_->Verify(false); // No full verify. | 13137 graph_->Verify(false); // No full verify. |
| 13138 #endif | 13138 #endif |
| 13139 } | 13139 } |
| 13140 | 13140 |
| 13141 } } // namespace v8::internal | 13141 } } // namespace v8::internal |
| OLD | NEW |