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

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

Issue 2668613002: [inspector] added Debugger.moduleRequested notification
Patch Set: report existing resolved module on Debugger.enable Created 3 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
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 5743 matching lines...) Expand 10 before | Expand all | Expand 10 after
5754 kConstantValuesOffset) 5754 kConstantValuesOffset)
5755 5755
5756 ACCESSORS(JSModuleNamespace, module, Module, kModuleOffset) 5756 ACCESSORS(JSModuleNamespace, module, Module, kModuleOffset)
5757 5757
5758 ACCESSORS(Module, code, Object, kCodeOffset) 5758 ACCESSORS(Module, code, Object, kCodeOffset)
5759 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset) 5759 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset)
5760 ACCESSORS(Module, regular_exports, FixedArray, kRegularExportsOffset) 5760 ACCESSORS(Module, regular_exports, FixedArray, kRegularExportsOffset)
5761 ACCESSORS(Module, regular_imports, FixedArray, kRegularImportsOffset) 5761 ACCESSORS(Module, regular_imports, FixedArray, kRegularImportsOffset)
5762 ACCESSORS(Module, module_namespace, HeapObject, kModuleNamespaceOffset) 5762 ACCESSORS(Module, module_namespace, HeapObject, kModuleNamespaceOffset)
5763 ACCESSORS(Module, requested_modules, FixedArray, kRequestedModulesOffset) 5763 ACCESSORS(Module, requested_modules, FixedArray, kRequestedModulesOffset)
5764 ACCESSORS(Module, script, Object, kScriptOffset)
5764 SMI_ACCESSORS(Module, hash, kHashOffset) 5765 SMI_ACCESSORS(Module, hash, kHashOffset)
5765 5766
5766 bool Module::evaluated() const { return code()->IsModuleInfo(); } 5767 bool Module::evaluated() const { return code()->IsModuleInfo(); }
5767 5768
5768 void Module::set_evaluated() { 5769 void Module::set_evaluated() {
5769 DCHECK(instantiated()); 5770 DCHECK(instantiated());
5770 DCHECK(!evaluated()); 5771 DCHECK(!evaluated());
5771 return set_code( 5772 return set_code(
5772 JSFunction::cast(code())->shared()->scope_info()->ModuleDescriptorInfo()); 5773 JSFunction::cast(code())->shared()->scope_info()->ModuleDescriptorInfo());
5773 } 5774 }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
5898 SMI_ACCESSORS(Script, type, kTypeOffset) 5899 SMI_ACCESSORS(Script, type, kTypeOffset)
5899 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) 5900 ACCESSORS(Script, line_ends, Object, kLineEndsOffset)
5900 ACCESSORS_CHECKED(Script, eval_from_shared, Object, kEvalFromSharedOffset, 5901 ACCESSORS_CHECKED(Script, eval_from_shared, Object, kEvalFromSharedOffset,
5901 this->type() != TYPE_WASM) 5902 this->type() != TYPE_WASM)
5902 SMI_ACCESSORS_CHECKED(Script, eval_from_position, kEvalFromPositionOffset, 5903 SMI_ACCESSORS_CHECKED(Script, eval_from_position, kEvalFromPositionOffset,
5903 this->type() != TYPE_WASM) 5904 this->type() != TYPE_WASM)
5904 ACCESSORS(Script, shared_function_infos, FixedArray, kSharedFunctionInfosOffset) 5905 ACCESSORS(Script, shared_function_infos, FixedArray, kSharedFunctionInfosOffset)
5905 SMI_ACCESSORS(Script, flags, kFlagsOffset) 5906 SMI_ACCESSORS(Script, flags, kFlagsOffset)
5906 ACCESSORS(Script, source_url, Object, kSourceUrlOffset) 5907 ACCESSORS(Script, source_url, Object, kSourceUrlOffset)
5907 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset) 5908 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset)
5909 ACCESSORS(Script, module, Object, kModuleOffset)
5908 ACCESSORS_CHECKED(Script, wasm_compiled_module, Object, kEvalFromSharedOffset, 5910 ACCESSORS_CHECKED(Script, wasm_compiled_module, Object, kEvalFromSharedOffset,
5909 this->type() == TYPE_WASM) 5911 this->type() == TYPE_WASM)
5910 5912
5911 Script::CompilationType Script::compilation_type() { 5913 Script::CompilationType Script::compilation_type() {
5912 return BooleanBit::get(flags(), kCompilationTypeBit) ? 5914 return BooleanBit::get(flags(), kCompilationTypeBit) ?
5913 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; 5915 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST;
5914 } 5916 }
5915 void Script::set_compilation_type(CompilationType type) { 5917 void Script::set_compilation_type(CompilationType type) {
5916 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, 5918 set_flags(BooleanBit::set(flags(), kCompilationTypeBit,
5917 type == COMPILATION_TYPE_EVAL)); 5919 type == COMPILATION_TYPE_EVAL));
(...skipping 2461 matching lines...) Expand 10 before | Expand all | Expand 10 after
8379 #undef WRITE_INT64_FIELD 8381 #undef WRITE_INT64_FIELD
8380 #undef READ_BYTE_FIELD 8382 #undef READ_BYTE_FIELD
8381 #undef WRITE_BYTE_FIELD 8383 #undef WRITE_BYTE_FIELD
8382 #undef NOBARRIER_READ_BYTE_FIELD 8384 #undef NOBARRIER_READ_BYTE_FIELD
8383 #undef NOBARRIER_WRITE_BYTE_FIELD 8385 #undef NOBARRIER_WRITE_BYTE_FIELD
8384 8386
8385 } // namespace internal 8387 } // namespace internal
8386 } // namespace v8 8388 } // namespace v8
8387 8389
8388 #endif // V8_OBJECTS_INL_H_ 8390 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/objects.h ('K') | « src/objects-debug.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698