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

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

Issue 1140673002: [V8] Added Script::is_opaque flag for embedders (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Introduces ScriptOriginOptions Created 5 years, 7 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
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 5536 matching lines...) Expand 10 before | Expand all | Expand 10 after
5547 ACCESSORS(Script, wrapper, HeapObject, kWrapperOffset) 5547 ACCESSORS(Script, wrapper, HeapObject, kWrapperOffset)
5548 ACCESSORS_TO_SMI(Script, type, kTypeOffset) 5548 ACCESSORS_TO_SMI(Script, type, kTypeOffset)
5549 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) 5549 ACCESSORS(Script, line_ends, Object, kLineEndsOffset)
5550 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) 5550 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset)
5551 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, 5551 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset,
5552 kEvalFrominstructionsOffsetOffset) 5552 kEvalFrominstructionsOffsetOffset)
5553 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) 5553 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset)
5554 BOOL_ACCESSORS(Script, flags, is_embedder_debug_script, 5554 BOOL_ACCESSORS(Script, flags, is_embedder_debug_script,
5555 kIsEmbedderDebugScriptBit) 5555 kIsEmbedderDebugScriptBit)
5556 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit) 5556 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit)
5557 BOOL_ACCESSORS(Script, flags, is_opaque, kIsOpaqueBit)
5557 ACCESSORS(Script, source_url, Object, kSourceUrlOffset) 5558 ACCESSORS(Script, source_url, Object, kSourceUrlOffset)
5558 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset) 5559 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset)
5559 5560
5560 Script::CompilationType Script::compilation_type() { 5561 Script::CompilationType Script::compilation_type() {
5561 return BooleanBit::get(flags(), kCompilationTypeBit) ? 5562 return BooleanBit::get(flags(), kCompilationTypeBit) ?
5562 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; 5563 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST;
5563 } 5564 }
5564 void Script::set_compilation_type(CompilationType type) { 5565 void Script::set_compilation_type(CompilationType type) {
5565 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, 5566 set_flags(BooleanBit::set(flags(), kCompilationTypeBit,
5566 type == COMPILATION_TYPE_EVAL)); 5567 type == COMPILATION_TYPE_EVAL));
(...skipping 2050 matching lines...) Expand 10 before | Expand all | Expand 10 after
7617 #undef READ_SHORT_FIELD 7618 #undef READ_SHORT_FIELD
7618 #undef WRITE_SHORT_FIELD 7619 #undef WRITE_SHORT_FIELD
7619 #undef READ_BYTE_FIELD 7620 #undef READ_BYTE_FIELD
7620 #undef WRITE_BYTE_FIELD 7621 #undef WRITE_BYTE_FIELD
7621 #undef NOBARRIER_READ_BYTE_FIELD 7622 #undef NOBARRIER_READ_BYTE_FIELD
7622 #undef NOBARRIER_WRITE_BYTE_FIELD 7623 #undef NOBARRIER_WRITE_BYTE_FIELD
7623 7624
7624 } } // namespace v8::internal 7625 } } // namespace v8::internal
7625 7626
7626 #endif // V8_OBJECTS_INL_H_ 7627 #endif // V8_OBJECTS_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698