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

Unified Diff: src/isolate.cc

Issue 2131383002: [builtins] take slow path in IsConcatSpreadable if proxy in prototype (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Refactor Created 4 years, 5 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
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index adf180db06c7c16e506d0ab83a4b3f5f5202b233..7ce82cde9161d5f95adc64e45b7906eb5d2c4ad1 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -2659,6 +2659,11 @@ bool Isolate::IsIsConcatSpreadableLookupChainIntact() {
return !is_is_concat_spreadable_set;
}
+bool Isolate::IsIsConcatSpreadableLookupChainIntact(JSReceiver* receiver) {
+ if (!IsIsConcatSpreadableLookupChainIntact()) return false;
+ return !receiver->HasProxyInPrototype(this);
+}
+
void Isolate::UpdateArrayProtectorOnSetElement(Handle<JSObject> object) {
DisallowHeapAllocation no_gc;
if (!object->map()->is_prototype_map()) return;
« no previous file with comments | « src/isolate.h ('k') | src/objects.h » ('j') | test/mjsunit/es6/array-concat.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698