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

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

Issue 879553002: [V8] Added Script::is_debugger_script flag for embedders (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/compiler/test-linkage.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 5589 matching lines...) Expand 10 before | Expand all | Expand 10 after
5600 ACCESSORS_TO_SMI(Script, line_offset, kLineOffsetOffset) 5600 ACCESSORS_TO_SMI(Script, line_offset, kLineOffsetOffset)
5601 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) 5601 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset)
5602 ACCESSORS(Script, context_data, Object, kContextOffset) 5602 ACCESSORS(Script, context_data, Object, kContextOffset)
5603 ACCESSORS(Script, wrapper, HeapObject, kWrapperOffset) 5603 ACCESSORS(Script, wrapper, HeapObject, kWrapperOffset)
5604 ACCESSORS_TO_SMI(Script, type, kTypeOffset) 5604 ACCESSORS_TO_SMI(Script, type, kTypeOffset)
5605 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) 5605 ACCESSORS(Script, line_ends, Object, kLineEndsOffset)
5606 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) 5606 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset)
5607 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, 5607 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset,
5608 kEvalFrominstructionsOffsetOffset) 5608 kEvalFrominstructionsOffsetOffset)
5609 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) 5609 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset)
5610 BOOL_ACCESSORS(Script, flags, is_embedder_debug_script,
5611 kIsEmbedderDebugScriptBit)
5610 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit) 5612 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit)
5611 ACCESSORS(Script, source_url, Object, kSourceUrlOffset) 5613 ACCESSORS(Script, source_url, Object, kSourceUrlOffset)
5612 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset) 5614 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset)
5613 5615
5614 Script::CompilationType Script::compilation_type() { 5616 Script::CompilationType Script::compilation_type() {
5615 return BooleanBit::get(flags(), kCompilationTypeBit) ? 5617 return BooleanBit::get(flags(), kCompilationTypeBit) ?
5616 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; 5618 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST;
5617 } 5619 }
5618 void Script::set_compilation_type(CompilationType type) { 5620 void Script::set_compilation_type(CompilationType type) {
5619 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, 5621 set_flags(BooleanBit::set(flags(), kCompilationTypeBit,
(...skipping 1930 matching lines...) Expand 10 before | Expand all | Expand 10 after
7550 #undef READ_SHORT_FIELD 7552 #undef READ_SHORT_FIELD
7551 #undef WRITE_SHORT_FIELD 7553 #undef WRITE_SHORT_FIELD
7552 #undef READ_BYTE_FIELD 7554 #undef READ_BYTE_FIELD
7553 #undef WRITE_BYTE_FIELD 7555 #undef WRITE_BYTE_FIELD
7554 #undef NOBARRIER_READ_BYTE_FIELD 7556 #undef NOBARRIER_READ_BYTE_FIELD
7555 #undef NOBARRIER_WRITE_BYTE_FIELD 7557 #undef NOBARRIER_WRITE_BYTE_FIELD
7556 7558
7557 } } // namespace v8::internal 7559 } } // namespace v8::internal
7558 7560
7559 #endif // V8_OBJECTS_INL_H_ 7561 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | test/cctest/compiler/test-linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698