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

Unified Diff: src/json-parser.h

Issue 1181733002: Revert of Replace SetObjectProperty / DefineObjectProperty with less powerful alternatives where relevant. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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 | « src/ic/ic.cc ('k') | src/lookup.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/json-parser.h
diff --git a/src/json-parser.h b/src/json-parser.h
index 8ed2e84059cfb7aa9fe74e4ff0b3db16ae71cc45..9234e85aa20d171fcad6a1f27a5317457debee1b 100644
--- a/src/json-parser.h
+++ b/src/json-parser.h
@@ -434,7 +434,7 @@
// Commit the intermediate state to the object and stop transitioning.
CommitStateToJsonObject(json_object, map, &properties);
- JSObject::DefinePropertyOrElement(json_object, key, value).Check();
+ Runtime::DefineObjectProperty(json_object, key, value, NONE).Check();
} while (transitioning && MatchSkipWhiteSpace(','));
// If we transitioned until the very end, transition the map now.
@@ -470,7 +470,7 @@
value = ParseJsonValue();
if (value.is_null()) return ReportUnexpectedCharacter();
- JSObject::DefinePropertyOrElement(json_object, key, value).Check();
+ Runtime::DefineObjectProperty(json_object, key, value, NONE).Check();
}
}
« no previous file with comments | « src/ic/ic.cc ('k') | src/lookup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698