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

Side by Side Diff: src/runtime/runtime-array.cc

Issue 859713002: ClusterFuzz fix: %NormalizeElements shouldn't process the global proxy. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | test/mjsunit/regress/regress-449070.js » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/runtime/runtime-utils.h" 8 #include "src/runtime/runtime-utils.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 return ArrayConstructorCommon(isolate, constructor, 1163 return ArrayConstructorCommon(isolate, constructor,
1164 Handle<AllocationSite>::null(), caller_args); 1164 Handle<AllocationSite>::null(), caller_args);
1165 } 1165 }
1166 1166
1167 1167
1168 RUNTIME_FUNCTION(Runtime_NormalizeElements) { 1168 RUNTIME_FUNCTION(Runtime_NormalizeElements) {
1169 HandleScope scope(isolate); 1169 HandleScope scope(isolate);
1170 DCHECK(args.length() == 1); 1170 DCHECK(args.length() == 1);
1171 CONVERT_ARG_HANDLE_CHECKED(JSObject, array, 0); 1171 CONVERT_ARG_HANDLE_CHECKED(JSObject, array, 0);
1172 RUNTIME_ASSERT(!array->HasExternalArrayElements() && 1172 RUNTIME_ASSERT(!array->HasExternalArrayElements() &&
1173 !array->HasFixedTypedArrayElements()); 1173 !array->HasFixedTypedArrayElements() &&
1174 !array->IsJSGlobalProxy());
1174 JSObject::NormalizeElements(array); 1175 JSObject::NormalizeElements(array);
1175 return *array; 1176 return *array;
1176 } 1177 }
1177 1178
1178 1179
1179 RUNTIME_FUNCTION(Runtime_HasComplexElements) { 1180 RUNTIME_FUNCTION(Runtime_HasComplexElements) {
1180 HandleScope scope(isolate); 1181 HandleScope scope(isolate);
1181 DCHECK(args.length() == 1); 1182 DCHECK(args.length() == 1);
1182 CONVERT_ARG_HANDLE_CHECKED(JSObject, array, 0); 1183 CONVERT_ARG_HANDLE_CHECKED(JSObject, array, 0);
1183 for (PrototypeIterator iter(isolate, array, 1184 for (PrototypeIterator iter(isolate, array,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1308 } 1309 }
1309 1310
1310 1311
1311 RUNTIME_FUNCTION(RuntimeReference_FastOneByteArrayJoin) { 1312 RUNTIME_FUNCTION(RuntimeReference_FastOneByteArrayJoin) {
1312 SealHandleScope shs(isolate); 1313 SealHandleScope shs(isolate);
1313 DCHECK(args.length() == 2); 1314 DCHECK(args.length() == 2);
1314 return isolate->heap()->undefined_value(); 1315 return isolate->heap()->undefined_value();
1315 } 1316 }
1316 } 1317 }
1317 } // namespace v8::internal 1318 } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-449070.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698