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

Side by Side Diff: src/runtime.h

Issue 22962009: Add access check for observed objects (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Nearly complete Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 F(WeakCollectionDelete, 2, 1) \ 347 F(WeakCollectionDelete, 2, 1) \
348 F(WeakCollectionSet, 3, 1) \ 348 F(WeakCollectionSet, 3, 1) \
349 \ 349 \
350 /* Harmony observe */ \ 350 /* Harmony observe */ \
351 F(IsObserved, 1, 1) \ 351 F(IsObserved, 1, 1) \
352 F(SetIsObserved, 1, 1) \ 352 F(SetIsObserved, 1, 1) \
353 F(SetObserverDeliveryPending, 0, 1) \ 353 F(SetObserverDeliveryPending, 0, 1) \
354 F(GetObservationState, 0, 1) \ 354 F(GetObservationState, 0, 1) \
355 F(ObservationWeakMapCreate, 0, 1) \ 355 F(ObservationWeakMapCreate, 0, 1) \
356 F(UnwrapGlobalProxy, 1, 1) \ 356 F(UnwrapGlobalProxy, 1, 1) \
357 F(GetAccessAllowedForObserver, 3, 1) \
357 \ 358 \
358 /* Harmony typed arrays */ \ 359 /* Harmony typed arrays */ \
359 F(ArrayBufferInitialize, 2, 1)\ 360 F(ArrayBufferInitialize, 2, 1)\
360 F(ArrayBufferGetByteLength, 1, 1)\ 361 F(ArrayBufferGetByteLength, 1, 1)\
361 F(ArrayBufferSliceImpl, 3, 1) \ 362 F(ArrayBufferSliceImpl, 3, 1) \
362 \ 363 \
363 F(TypedArrayInitialize, 5, 1) \ 364 F(TypedArrayInitialize, 5, 1) \
364 F(TypedArrayInitializeFromArrayLike, 4, 1) \ 365 F(TypedArrayInitializeFromArrayLike, 4, 1) \
365 F(TypedArrayGetBuffer, 1, 1) \ 366 F(TypedArrayGetBuffer, 1, 1) \
366 F(TypedArrayGetByteLength, 1, 1) \ 367 F(TypedArrayGetByteLength, 1, 1) \
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 F(HasExternalByteElements, 1, 1) \ 458 F(HasExternalByteElements, 1, 1) \
458 F(HasExternalUnsignedByteElements, 1, 1) \ 459 F(HasExternalUnsignedByteElements, 1, 1) \
459 F(HasExternalShortElements, 1, 1) \ 460 F(HasExternalShortElements, 1, 1) \
460 F(HasExternalUnsignedShortElements, 1, 1) \ 461 F(HasExternalUnsignedShortElements, 1, 1) \
461 F(HasExternalIntElements, 1, 1) \ 462 F(HasExternalIntElements, 1, 1) \
462 F(HasExternalUnsignedIntElements, 1, 1) \ 463 F(HasExternalUnsignedIntElements, 1, 1) \
463 F(HasExternalFloatElements, 1, 1) \ 464 F(HasExternalFloatElements, 1, 1) \
464 F(HasExternalDoubleElements, 1, 1) \ 465 F(HasExternalDoubleElements, 1, 1) \
465 F(HasFastProperties, 1, 1) \ 466 F(HasFastProperties, 1, 1) \
466 F(TransitionElementsKind, 2, 1) \ 467 F(TransitionElementsKind, 2, 1) \
467 F(HaveSameMap, 2, 1) 468 F(HaveSameMap, 2, 1) \
469 F(IsAccessCheckNeeded, 1, 1)
468 470
469 471
470 #ifdef ENABLE_DEBUGGER_SUPPORT 472 #ifdef ENABLE_DEBUGGER_SUPPORT
471 #define RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F) \ 473 #define RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F) \
472 /* Debugger support*/ \ 474 /* Debugger support*/ \
473 F(DebugBreak, 0, 1) \ 475 F(DebugBreak, 0, 1) \
474 F(SetDebugEventListener, 2, 1) \ 476 F(SetDebugEventListener, 2, 1) \
475 F(Break, 0, 1) \ 477 F(Break, 0, 1) \
476 F(DebugGetPropertyDetails, 2, 1) \ 478 F(DebugGetPropertyDetails, 2, 1) \
477 F(DebugGetProperty, 2, 1) \ 479 F(DebugGetProperty, 2, 1) \
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 //--------------------------------------------------------------------------- 838 //---------------------------------------------------------------------------
837 // Constants used by interface to runtime functions. 839 // Constants used by interface to runtime functions.
838 840
839 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 841 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
840 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 842 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
841 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; 843 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {};
842 844
843 } } // namespace v8::internal 845 } } // namespace v8::internal
844 846
845 #endif // V8_RUNTIME_H_ 847 #endif // V8_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/object-observe.js ('k') | src/runtime.cc » ('j') | test/cctest/test-object-observe.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698