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

Unified Diff: src/objects.cc

Issue 247523004: Fix tracking of computed fields when field type tracking is disabled. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index ba5280e7e796d960854f6cb636404764ef2997b4..6a7931554baf321e3e212337a482a713864d3b3e 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -63,8 +63,8 @@ namespace internal {
Handle<HeapType> Object::OptimalType(Isolate* isolate,
Representation representation) {
+ if (representation.IsNone()) return HeapType::None(isolate);
if (FLAG_track_field_types) {
- if (representation.IsNone()) return HeapType::None(isolate);
if (representation.IsHeapObject() && IsHeapObject()) {
// We can track only JavaScript objects with stable maps.
Handle<Map> map(HeapObject::cast(this)->map(), isolate);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698