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

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

Issue 2668613002: [inspector] added Debugger.moduleRequested notification
Patch Set: added missing test 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
« no previous file with comments | « src/objects-debug.cc ('k') | src/objects-printer.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 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, Script, 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 2602 matching lines...) Expand 10 before | Expand all | Expand 10 after
8376 #undef WRITE_INT64_FIELD 8377 #undef WRITE_INT64_FIELD
8377 #undef READ_BYTE_FIELD 8378 #undef READ_BYTE_FIELD
8378 #undef WRITE_BYTE_FIELD 8379 #undef WRITE_BYTE_FIELD
8379 #undef NOBARRIER_READ_BYTE_FIELD 8380 #undef NOBARRIER_READ_BYTE_FIELD
8380 #undef NOBARRIER_WRITE_BYTE_FIELD 8381 #undef NOBARRIER_WRITE_BYTE_FIELD
8381 8382
8382 } // namespace internal 8383 } // namespace internal
8383 } // namespace v8 8384 } // namespace v8
8384 8385
8385 #endif // V8_OBJECTS_INL_H_ 8386 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698