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

Side by Side Diff: runtime/observatory/tests/observatory_ui/mocks/objects/function.dart

Issue 2291823002: Converted Observatory function-view element (Closed)
Patch Set: Updated observatory_sources.gypi Created 4 years, 3 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 | « runtime/observatory/observatory_sources.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of mocks; 5 part of mocks;
6 6
7 class FunctionRefMock implements M.FunctionRef { 7 class FunctionRefMock implements M.FunctionRef {
8 final String id; 8 final String id;
9 final String name; 9 final String name;
10 final M.ObjectRef dartOwner; 10 final M.ObjectRef dartOwner;
11 final bool isStatic; 11 final bool isStatic;
12 final bool isConst; 12 final bool isConst;
13 final M.FunctionKind kind; 13 final M.FunctionKind kind;
14 14
15 const FunctionRefMock({this.id, this.name, this.dartOwner, 15 const FunctionRefMock({this.id, this.name, this.dartOwner,
16 this.isStatic : false, this.isConst : false, this.kind}); 16 this.isStatic : false, this.isConst : false, this.kind});
17 } 17 }
18 18
19 class FunctionMock implements M.Function { 19 class FunctionMock implements M.Function {
20 final String id; 20 final String id;
21 final String name; 21 final String name;
22 final M.ClassRef clazz; 22 final M.ClassRef clazz;
23 final int size; 23 final int size;
24 final M.ObjectRef dartOwner; 24 final M.ObjectRef dartOwner;
25 final bool isStatic; 25 final bool isStatic;
26 final bool isConst; 26 final bool isConst;
27 final M.FunctionKind kind; 27 final M.FunctionKind kind;
28 final M.SourceLocation location; 28 final M.SourceLocation location;
29 final M.CodeRef code; 29 final M.CodeRef code;
30 final M.CodeRef unoptimizedCode;
31 final M.FieldRef field;
32 final int usageCounter;
33 final M.InstanceRef icDataArray;
34 final int deoptimizations;
35 final bool isOptimizable;
36 final bool isInlinable;
37 final bool hasIntrinsic;
38 final bool isRecognized;
39 final bool isNative;
40 final String vmName;
30 const FunctionMock({this.id, this.name, this.clazz, this.size, this.dartOwner, 41 const FunctionMock({this.id, this.name, this.clazz, this.size, this.dartOwner,
31 this.isStatic : false, this.isConst : false, this.kind, this.location, 42 this.isStatic : false, this.isConst : false, this.kind, this.location,
32 this.code}); 43 this.code, this.unoptimizedCode, this.field, this.usageCounter: 0,
44 this.icDataArray: const InstanceRefMock(), this.deoptimizations: 0,
45 this.isOptimizable: false, this.isInlinable: false,
46 this.hasIntrinsic: false, this.isRecognized: false, this.isNative: false,
47 this.vmName: 'function-vm-name',});
33 } 48 }
OLDNEW
« no previous file with comments | « runtime/observatory/observatory_sources.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698