| /third_party/jsframework/runtime/main/model/ |
| D | directive.ts | 49 import Vm from './index'; 63 * @param {Vm} vm - Vm object. 68 export function bindElement(vm: Vm, el: Element, template: TemplateInterface, parentElement: Elemen… 71 vm.selector, 78 vm, 83 const css = vm.css || {}; 86 setStyle(vm, el, style); 92 const value = vm['show']; 95 // vm['show'] is assigned to this.show in initPropsToData() 105 setId(vm, el, template.id, vm); [all …]
|
| D | compiler.ts | 55 import Vm from './index'; 68 vms?: Vm[]; 72 vm?: Vm; property 120 export function build(vm: Vm) { 121 const opt: any = vm.vmOptions || {}; 123 compile(vm, template, vm.parentEl); 124 Log.debug(`"OnReady" lifecycle in Vm(${vm.type}).`); 125 vm.$emit('hook:onReady'); 126 if (vm.parent) { 127 vm.$emit('hook:onAttached'); [all …]
|
| D | pageLife.ts | 23 import Vm from './index'; 122 * @param {Vm} vm - Vm object. 125 export function bindPageLifeCycle(vm: Vm, element: Element): void { 126 const options = vm.vmOptions || {}; 168 emitSubVmLife(vm, 'onPageShow'); 169 vm.visible = true; 171 emitSubVmLife(vm, 'onPageHide'); 172 vm.visible = false; 174 return vm.$emitDirect(`hook:${type}`, ...args); 186 return vm.$emitDirect(`hook:${type}`, ...args); [all …]
|
| D | domHelper.ts | 27 import Vm from './index'; 36 * @param {Vm} vm - Vm object. 40 export function createBody(vm: Vm, type: string): Node { 41 const doc = vm.app.doc; 47 * @param {Vm} vm - Vm object. 51 export function createElement(vm: Vm, type: string): Element { 52 const doc = vm.app.doc; 58 * @param {Vm} vm - Vm object. 62 export function createBlock(vm: Vm, element: Element | FragBlockInterface): FragBlockInterface { 63 const start = createBlockStart(vm); [all …]
|
| D | index.ts | 20 * 2021.01.08 - Reconstruct the class 'Vm' and make it more adaptable to framework. 72 * VM constructor. 75 * @param {Vm} parentVm which contains _app. 80 export default class Vm { class 81 private _parent: Vm; 90 private _ids: Record<string, {vm: Vm, el: Element}>; 95 private _childrenVms: Vm[]; 99 private _realParent: Vm 107 private _slotContext: { content: Record<string, any>, parentVm: Vm }; 113 parentVm: Vm | any, [all …]
|
| /third_party/jsframework/runtime/main/reactivity/ |
| D | state.js | 13 export function initState (vm) { argument 14 vm._watchers = []; 15 initData(vm); 16 initComputed(vm); 17 initMethods(vm); 20 export function initData (vm) { argument 21 let data = vm._data; 22 initDataSegment(vm, data); 23 let shareData = vm._shareData; 24 initDataSegment(vm, shareData); [all …]
|
| D | observer.js | 68 * <p>Add an owner vm, so that when $set/$delete mutations<br> 71 * @param {Vue} vm 73 Observer.prototype.addVm = function (vm) { argument 74 (this.vms || (this.vms = [])).push(vm); 78 * Remove an owner vm. This is called when the object is swapped out as a page's $data object. 79 * @param {Vue} vm 81 Observer.prototype.removeVm = function (vm) { argument 82 remove(this.vms, vm); 102 * @param {Vue} [vm] 106 export function observe (value, vm) { argument [all …]
|
| /third_party/boost/libs/program_options/example/ |
| D | real.cpp | 17 void conflicting_options(const variables_map& vm, in conflicting_options() argument 20 if (vm.count(opt1) && !vm[opt1].defaulted() in conflicting_options() 21 && vm.count(opt2) && !vm[opt2].defaulted()) in conflicting_options() 28 void option_dependency(const variables_map& vm, in option_dependency() argument 31 if (vm.count(for_what) && !vm[for_what].defaulted()) in option_dependency() 32 if (vm.count(required_option) == 0 || vm[required_option].defaulted()) in option_dependency() 69 variables_map vm; in main() local 70 store(parse_command_line(argc, argv, desc), vm); in main() 72 if (vm.count("help")) { in main() 77 conflicting_options(vm, "output", "two"); in main() [all …]
|
| D | config_file_types.cpp | 138 vector<string> parse_file(stringstream &file, po::options_description &opts, po::variables_map &vm) in parse_file() argument 144 store(parsed, vm); in parse_file() 146 notify(vm); in parse_file() 151 void check_results(po::variables_map &vm, vector<string> unregistered) in check_results() argument 193 assert(vm["global_string"].as<string>() == expected_global_string); in check_results() 198 assert(vm["strings.word"].as<string>() == expected_strings_word); in check_results() 199 assert(vm["strings.phrase"].as<string>() == expected_strings_phrase); in check_results() 200 assert(vm["strings.quoted"].as<string>() == expected_strings_quoted); in check_results() 202 assert(vm["ints.positive"].as<int>() == expected_int_postitive); in check_results() 203 assert(vm["ints.negative"].as<int>() == expected_int_negative); in check_results() [all …]
|
| /third_party/flutter/engine/flutter/runtime/ |
| D | dart_vm_lifecycle.cc | 12 // critical section. All accesses (not just const members) to the global VM 19 // following weak pointers (in the |Create| case where an old VM could not be 31 DartVMRef::DartVMRef(std::shared_ptr<DartVM> vm) : vm_(vm) {} in DartVMRef() argument 37 // If there is no valid VM (possible via a move), there is no way that the in ~DartVMRef() 55 << "Launch settings indicated that the VM should shut down in the " in Create() 56 "process when done but a previous launch asked the VM to leak in " in Create() 57 "the same process. For proper VM shutdown, all VM launches must " in Create() 61 // If there is already a running VM in the process, grab a strong reference to in Create() 63 if (auto vm = gVM.lock()) { in Create() local 64 FML_DLOG(WARNING) << "Attempted to create a VM in a process where one was " in Create() [all …]
|
| /third_party/node/test/parallel/ |
| D | test-vm-basic.js | 25 const vm = require('vm'); constant 27 // vm.runInNewContext 30 const result = vm.runInNewContext( 41 // vm.runInContext 44 const context = vm.createContext(sandbox); 45 const result = vm.runInContext( 57 // vm.runInThisContext 59 const result = vm.runInThisContext( 67 // vm.runInNewContext 69 const result = vm.runInNewContext( [all …]
|
| D | test-vm-options-validation.js | 5 const vm = require('vm'); constant 18 new vm.Script('void 0', 42); 23 new vm.Script('void 0', { lineOffset: value }); 27 new vm.Script('void 0', { columnOffset: value }); 33 new vm.Script('void 0', { lineOffset: value }); 37 new vm.Script('void 0', { columnOffset: value }); 42 new vm.Script('void 0', { lineOffset: Number.MAX_SAFE_INTEGER }); 46 new vm.Script('void 0', { columnOffset: Number.MAX_SAFE_INTEGER }); 50 new vm.Script('void 0', { filename: 123 }); 54 new vm.Script('void 0', { produceCachedData: 1 }); [all …]
|
| D | test-vm-timeout.js | 25 const vm = require('vm'); constant 30 vm.runInThisContext('while(true) {}', { timeout: 100 }); 38 vm.runInThisContext('', { timeout: 1000 }); 40 // Nested vm timeouts, inner timeout propagates out 46 vm.runInNewContext('while(true) {}', context, { timeout }); 49 vm.runInNewContext('runInVM(10)', context, { timeout: 10000 }); 57 // Nested vm timeouts, outer timeout is shorter and fires first. 62 vm.runInNewContext('while(true) {}', context, { timeout }); 65 vm.runInNewContext('runInVM(10000)', context, { timeout: 100 }); 73 // Nested vm timeouts, inner script throws an error. [all …]
|
| D | test-vm-is-context.js | 25 const vm = require('vm'); constant 31 vm.isContext(valToTest); 38 assert.strictEqual(vm.isContext({}), false); 39 assert.strictEqual(vm.isContext([]), false); 41 assert.strictEqual(vm.isContext(vm.createContext()), true); 42 assert.strictEqual(vm.isContext(vm.createContext([])), true); 45 vm.createContext(sandbox); 46 assert.strictEqual(vm.isContext(sandbox), true);
|
| D | test-vm-global-non-writable-properties.js | 6 const vm = require('vm'); constant 8 const ctx = vm.createContext(); 9 vm.runInContext('Object.defineProperty(this, "x", { value: 42 })', ctx); 10 assert.strictEqual(vm.runInContext('x', ctx), 42); 11 vm.runInContext('x = 0', ctx); // Does not throw but x... 12 assert.strictEqual(vm.runInContext('x', ctx), 42); // ...should be unaltered. 13 assert.throws(() => vm.runInContext('"use strict"; x = 0', ctx), 15 assert.strictEqual(vm.runInContext('x', ctx), 42);
|
| D | test-vm-strict-assign.js | 5 const vm = require('vm'); constant 8 const ctx = vm.createContext(); 11 vm.runInContext('Object.defineProperty(this, "x", { value: 42 })', ctx); 13 assert.strictEqual(vm.runInContext('x', ctx), 42); 15 vm.runInContext('x = 0', ctx); // Does not throw but x... 16 assert.strictEqual(vm.runInContext('x', ctx), 42); // ...should be unaltered. 18 assert.throws(() => vm.runInContext('"use strict"; x = 0', ctx), 20 assert.strictEqual(vm.runInContext('x', ctx), 42);
|
| /third_party/node/doc/api/ |
| D | vm.md | 1 # VM (executing JavaScript) 7 <!--name=vm--> 9 <!-- source_link=lib/vm.js --> 11 The `vm` module enables compiling and running code within V8 Virtual 12 Machine contexts. **The `vm` module is not a security mechanism. Do 27 const vm = require('vm'); 32 vm.createContext(context); // Contextify the object. 37 vm.runInContext(code, context); 45 ## Class: `vm.Script` 50 Instances of the `vm.Script` class contain precompiled scripts that can be [all …]
|
| /third_party/boost/libs/process/test/ |
| D | sparring_partner.cpp | 69 variables_map vm; in main() local 71 store(parser.options(desc).allow_unregistered().run(), vm); in main() 72 notify(vm); in main() 74 if (vm.count("echo-stdout")) in main() 76 std::cout << vm["echo-stdout"].as<std::string>() << std::endl; in main() 78 else if (vm.count("echo-stderr")) in main() 80 std::cerr << vm["echo-stderr"].as<std::string>() << std::endl; in main() 82 else if (vm.count("echo-stdout-stderr")) in main() 84 std::cout << vm["echo-stdout-stderr"].as<std::string>() << std::endl; in main() 85 std::cerr << vm["echo-stdout-stderr"].as<std::string>() << std::endl; in main() [all …]
|
| /third_party/boost/libs/program_options/test/ |
| D | variable_map_test.cpp | 45 variables_map vm; in test_variable_map() local 46 store(a3, vm); in test_variable_map() 47 notify(vm); in test_variable_map() 48 BOOST_REQUIRE(vm.size() == 4); in test_variable_map() 49 BOOST_CHECK(vm["foo"].as<string>() == "'12'"); in test_variable_map() 50 BOOST_CHECK(vm["bar"].as<string>() == "11"); in test_variable_map() 51 BOOST_CHECK(vm.count("biz") == 1); in test_variable_map() 52 BOOST_CHECK(vm["biz"].as<string>() == "3"); in test_variable_map() 53 BOOST_CHECK(vm["output"].as<string>() == "foo"); in test_variable_map() 147 variables_map vm; in test_semantic_values() local [all …]
|
| D | split_test.cpp | 43 variables_map vm; in split_whitespace() local 44 store(command_line_parser(tokens).options(description).run(), vm); in split_whitespace() 45 notify(vm); in split_whitespace() 64 variables_map vm; in split_equalsign() local 65 store(command_line_parser(tokens).options(description).run(), vm); in split_equalsign() 66 notify(vm); in split_equalsign() 85 variables_map vm; in split_semi() local 86 store(command_line_parser(tokens).options(description).run(), vm); in split_semi() 87 notify(vm); in split_semi() 105 variables_map vm; in split_quotes() local [all …]
|
| D | exception_test.cpp | 33 variables_map vm; in test_ambiguous() local 36 const_cast<char**>(cmdline), desc), vm); in test_ambiguous() 59 variables_map vm; in test_ambiguous_long() local 62 const_cast<char**>(cmdline), desc), vm); in test_ambiguous_long() 83 variables_map vm; in test_ambiguous_multiple_long_names() local 86 const_cast<char**>(cmdline), desc), vm); in test_ambiguous_multiple_long_names() 108 variables_map vm; in test_unknown_option() local 111 const_cast<char**>(cmdline), desc), vm); in test_unknown_option() 132 variables_map vm; in test_multiple_values() local 135 const_cast<char**>(cmdline), desc), vm); in test_multiple_values() [all …]
|
| /third_party/jsframework/test/ut/model/ |
| D | index.ts | 30 import Vm from '../../../runtime/main/model'; 36 describe('api of communication between vm and data methods', () => { 86 const vm = new Vm( constant 100 const subVm = vm.childrenVms[0]; 101 vm.$on('event1', spyParent); 106 vm.$on('event1', fn); 107 expect(vm.vmEvents['event1'].length).eql(2); 108 expect(typeof vm.vmEvents['event1'][1]).eql('function'); 110 vm.$off('event1', fn); 111 expect(vm.vmEvents['event1'].length).eql(1); [all …]
|
| /third_party/flutter/engine/flutter/shell/platform/fuchsia/dart-pkg/zircon/lib/src/ |
| D | system.dart | 10 @pragma('vm:entry-point') 17 @pragma('vm:entry-point') 42 @pragma('vm:entry-point') 45 @pragma('vm:entry-point') 51 @pragma('vm:entry-point') 55 @pragma('vm:entry-point') 63 @pragma('vm:entry-point') 68 @pragma('vm:entry-point') 79 @pragma('vm:entry-point') 82 @pragma('vm:entry-point') [all …]
|
| /third_party/flutter/flutter/packages/fuchsia_remote_debug_protocol/lib/src/ |
| D | fuchsia_remote_connection.dart | 69 /// An enum specifying a Dart VM's state. 71 /// The Dart VM has started. 74 /// The Dart VM has stopped. 76 /// This can mean either the host machine cannot be connect to, the VM service 77 /// has shut down cleanly, or the VM service has crashed. 81 /// An event regarding the Dart VM. 83 /// Specifies the type of the event (whether the VM has started or has stopped), 84 /// and contains the service port of the VM as well as a URI to connect to it. 88 /// The URI used to connect to the Dart VM. 91 /// The type of event regarding this instance of the Dart VM. [all …]
|
| /third_party/libdrm/amdgpu/ |
| D | amdgpu_vm.c | 31 union drm_amdgpu_vm vm; in amdgpu_vm_reserve_vmid() local 33 vm.in.op = AMDGPU_VM_OP_RESERVE_VMID; in amdgpu_vm_reserve_vmid() 34 vm.in.flags = flags; in amdgpu_vm_reserve_vmid() 37 &vm, sizeof(vm)); in amdgpu_vm_reserve_vmid() 43 union drm_amdgpu_vm vm; in amdgpu_vm_unreserve_vmid() local 45 vm.in.op = AMDGPU_VM_OP_UNRESERVE_VMID; in amdgpu_vm_unreserve_vmid() 46 vm.in.flags = flags; in amdgpu_vm_unreserve_vmid() 49 &vm, sizeof(vm)); in amdgpu_vm_unreserve_vmid()
|