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

Side by Side Diff: src/hydrogen.cc

Issue 1126043004: Migrate error messages, part 10. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixed and rebased Created 5 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
« no previous file with comments | « src/factory.cc ('k') | src/ic/ic.h » ('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 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
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
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
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/ic/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698