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

Side by Side Diff: src/runtime/runtime.h

Issue 1346813002: Disallow Object.observe calls on access-checked objects (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add new error message and tests Created 5 years, 3 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 | « src/object-observe.js ('k') | src/runtime/runtime-object.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_RUNTIME_RUNTIME_H_ 5 #ifndef V8_RUNTIME_RUNTIME_H_
6 #define V8_RUNTIME_RUNTIME_H_ 6 #define V8_RUNTIME_RUNTIME_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 #include "src/unicode.h" 10 #include "src/unicode.h"
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 F(ToObject, 1, 1) \ 476 F(ToObject, 1, 1) \
477 F(ToPrimitive, 1, 1) \ 477 F(ToPrimitive, 1, 1) \
478 F(ToPrimitive_Number, 1, 1) \ 478 F(ToPrimitive_Number, 1, 1) \
479 F(ToPrimitive_String, 1, 1) \ 479 F(ToPrimitive_String, 1, 1) \
480 F(ToNumber, 1, 1) \ 480 F(ToNumber, 1, 1) \
481 F(ToString, 1, 1) \ 481 F(ToString, 1, 1) \
482 F(ToName, 1, 1) \ 482 F(ToName, 1, 1) \
483 F(StrictEquals, 2, 1) \ 483 F(StrictEquals, 2, 1) \
484 F(InstanceOf, 2, 1) \ 484 F(InstanceOf, 2, 1) \
485 F(HasInPrototypeChain, 2, 1) \ 485 F(HasInPrototypeChain, 2, 1) \
486 F(CreateIterResultObject, 2, 1) 486 F(CreateIterResultObject, 2, 1) \
487 F(IsAccessCheckNeeded, 1, 1)
487 488
488 489
489 #define FOR_EACH_INTRINSIC_OBSERVE(F) \ 490 #define FOR_EACH_INTRINSIC_OBSERVE(F) \
490 F(IsObserved, 1, 1) \ 491 F(IsObserved, 1, 1) \
491 F(SetIsObserved, 1, 1) \ 492 F(SetIsObserved, 1, 1) \
492 F(EnqueueMicrotask, 1, 1) \ 493 F(EnqueueMicrotask, 1, 1) \
493 F(RunMicrotasks, 0, 1) \ 494 F(RunMicrotasks, 0, 1) \
494 F(DeliverObservationChangeRecords, 2, 1) \ 495 F(DeliverObservationChangeRecords, 2, 1) \
495 F(GetObservationState, 0, 1) \ 496 F(GetObservationState, 0, 1) \
496 F(ObserverObjectAndRecordHaveSameOrigin, 3, 1) \ 497 F(ObserverObjectAndRecordHaveSameOrigin, 3, 1) \
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 1234
1234 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1235 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1235 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1236 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1236 STATIC_ASSERT(LANGUAGE_END == 3); 1237 STATIC_ASSERT(LANGUAGE_END == 3);
1237 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 1238 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
1238 1239
1239 } // namespace internal 1240 } // namespace internal
1240 } // namespace v8 1241 } // namespace v8
1241 1242
1242 #endif // V8_RUNTIME_RUNTIME_H_ 1243 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/object-observe.js ('k') | src/runtime/runtime-object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698