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

Side by Side Diff: src/objects-inl.h

Issue 1036743004: add access checks to receivers on function callbacks (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: super nit Created 5 years, 9 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/objects.h ('k') | test/cctest/test-accessors.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 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 5565 matching lines...) Expand 10 before | Expand all | Expand 10 after
5576 BOOL_ACCESSORS(FunctionTemplateInfo, flag, undetectable, kUndetectableBit) 5576 BOOL_ACCESSORS(FunctionTemplateInfo, flag, undetectable, kUndetectableBit)
5577 BOOL_ACCESSORS(FunctionTemplateInfo, flag, needs_access_check, 5577 BOOL_ACCESSORS(FunctionTemplateInfo, flag, needs_access_check,
5578 kNeedsAccessCheckBit) 5578 kNeedsAccessCheckBit)
5579 BOOL_ACCESSORS(FunctionTemplateInfo, flag, read_only_prototype, 5579 BOOL_ACCESSORS(FunctionTemplateInfo, flag, read_only_prototype,
5580 kReadOnlyPrototypeBit) 5580 kReadOnlyPrototypeBit)
5581 BOOL_ACCESSORS(FunctionTemplateInfo, flag, remove_prototype, 5581 BOOL_ACCESSORS(FunctionTemplateInfo, flag, remove_prototype,
5582 kRemovePrototypeBit) 5582 kRemovePrototypeBit)
5583 BOOL_ACCESSORS(FunctionTemplateInfo, flag, do_not_cache, 5583 BOOL_ACCESSORS(FunctionTemplateInfo, flag, do_not_cache,
5584 kDoNotCacheBit) 5584 kDoNotCacheBit)
5585 BOOL_ACCESSORS(FunctionTemplateInfo, flag, instantiated, kInstantiatedBit) 5585 BOOL_ACCESSORS(FunctionTemplateInfo, flag, instantiated, kInstantiatedBit)
5586 BOOL_ACCESSORS(FunctionTemplateInfo, flag, accept_any_receiver,
5587 kAcceptAnyReceiver)
5586 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_expression, 5588 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_expression,
5587 kIsExpressionBit) 5589 kIsExpressionBit)
5588 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_toplevel, 5590 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_toplevel,
5589 kIsTopLevelBit) 5591 kIsTopLevelBit)
5590 5592
5591 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, allows_lazy_compilation, 5593 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, allows_lazy_compilation,
5592 kAllowLazyCompilation) 5594 kAllowLazyCompilation)
5593 BOOL_ACCESSORS(SharedFunctionInfo, 5595 BOOL_ACCESSORS(SharedFunctionInfo,
5594 compiler_hints, 5596 compiler_hints,
5595 allows_lazy_compilation_without_context, 5597 allows_lazy_compilation_without_context,
(...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after
7510 #undef READ_SHORT_FIELD 7512 #undef READ_SHORT_FIELD
7511 #undef WRITE_SHORT_FIELD 7513 #undef WRITE_SHORT_FIELD
7512 #undef READ_BYTE_FIELD 7514 #undef READ_BYTE_FIELD
7513 #undef WRITE_BYTE_FIELD 7515 #undef WRITE_BYTE_FIELD
7514 #undef NOBARRIER_READ_BYTE_FIELD 7516 #undef NOBARRIER_READ_BYTE_FIELD
7515 #undef NOBARRIER_WRITE_BYTE_FIELD 7517 #undef NOBARRIER_WRITE_BYTE_FIELD
7516 7518
7517 } } // namespace v8::internal 7519 } } // namespace v8::internal
7518 7520
7519 #endif // V8_OBJECTS_INL_H_ 7521 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | test/cctest/test-accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698