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

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

Issue 1936393002: Make array __proto__ manipulations not disturb the species protector (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix review issues Created 4 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
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/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/frames-inl.h" 9 #include "src/frames-inl.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 520
521 #define FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION(Type, type, TYPE, ctype, s) \ 521 #define FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION(Type, type, TYPE, ctype, s) \
522 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \ 522 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \
523 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ 523 CONVERT_ARG_CHECKED(JSObject, obj, 0); \
524 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ 524 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \
525 } 525 }
526 526
527 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) 527 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION)
528 528
529 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION 529 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION
530
531
532 RUNTIME_FUNCTION(Runtime_SpeciesProtector) {
533 SealHandleScope shs(isolate);
534 DCHECK_EQ(0, args.length());
535 return isolate->heap()->ToBoolean(isolate->IsArraySpeciesLookupChainIntact());
536 }
537
538
530 } // namespace internal 539 } // namespace internal
531 } // namespace v8 540 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698