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

Unified Diff: src/objects-inl.h

Issue 2633803002: [inspector] implemented blackboxing inside v8 (Closed)
Patch Set: fixed tests Created 3 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 side-by-side diff with in-line comments
Download patch
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index f468c55a56b437946b2785e6addd27a884362256..be8cdc4268e446e9d00b5012194e2d3cd8f22433 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -6043,6 +6043,11 @@ BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_named_expression,
BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_toplevel,
kIsTopLevelBit)
+BOOL_ACCESSORS(SharedFunctionInfo, end_position_and_is_blackboxed,
+ debug_is_blackboxed, kIsBlackboxedBit)
+BOOL_ACCESSORS(SharedFunctionInfo, end_position_and_is_blackboxed,
+ computed_debug_is_blackboxed, kIsBlackboxedComputedBit)
+
BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, allows_lazy_compilation,
kAllowLazyCompilation)
BOOL_ACCESSORS(SharedFunctionInfo,
@@ -6069,7 +6074,8 @@ SMI_ACCESSORS(SharedFunctionInfo, expected_nof_properties,
SMI_ACCESSORS(SharedFunctionInfo, num_literals, kNumLiteralsOffset)
SMI_ACCESSORS(SharedFunctionInfo, start_position_and_type,
kStartPositionAndTypeOffset)
-SMI_ACCESSORS(SharedFunctionInfo, end_position, kEndPositionOffset)
+SMI_ACCESSORS(SharedFunctionInfo, end_position_and_is_blackboxed,
+ kEndPositionAndIsBlackboxedOffset)
SMI_ACCESSORS(SharedFunctionInfo, function_token_position,
kFunctionTokenPositionOffset)
SMI_ACCESSORS(SharedFunctionInfo, compiler_hints,
@@ -6118,7 +6124,8 @@ PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo,
kExpectedNofPropertiesOffset)
PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, num_literals, kNumLiteralsOffset)
-PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, end_position, kEndPositionOffset)
+PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, end_position_and_is_blackboxed,
+ kEndPositionAndIsBlackboxedOffset)
PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo,
start_position_and_type,
kStartPositionAndTypeOffset)
@@ -6234,13 +6241,23 @@ void SharedFunctionInfo::DontAdaptArguments() {
int SharedFunctionInfo::start_position() const {
- return start_position_and_type() >> kStartPositionShift;
+ return start_position_and_type() >> kPositionShift;
}
void SharedFunctionInfo::set_start_position(int start_position) {
- set_start_position_and_type((start_position << kStartPositionShift)
- | (start_position_and_type() & ~kStartPositionMask));
+ set_start_position_and_type((start_position << kPositionShift) |
+ (start_position_and_type() & ~kPositionMask));
+}
+
+int SharedFunctionInfo::end_position() const {
+ return end_position_and_is_blackboxed() >> kPositionShift;
+}
+
+void SharedFunctionInfo::set_end_position(int end_position) {
+ set_end_position_and_is_blackboxed(
+ (end_position << kPositionShift) |
+ (end_position_and_is_blackboxed() & ~kPositionMask));
}
« src/objects.cc ('K') | « src/objects.cc ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698