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

Side by Side Diff: runtime/bin/builtin.h

Issue 227433004: Add runtime and native entry tags (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/bin/builtin.cc » ('j') | runtime/include/dart_api.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #ifndef BIN_BUILTIN_H_ 5 #ifndef BIN_BUILTIN_H_
6 #define BIN_BUILTIN_H_ 6 #define BIN_BUILTIN_H_
7 7
8 #include <stdio.h> 8 #include <stdio.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 private: 50 private:
51 // Map specified URI to an actual file name from 'source_paths' and read 51 // Map specified URI to an actual file name from 'source_paths' and read
52 // the file. 52 // the file.
53 static Dart_Handle GetSource(const char** source_paths, const char* uri); 53 static Dart_Handle GetSource(const char** source_paths, const char* uri);
54 54
55 // Native method support. 55 // Native method support.
56 static Dart_NativeFunction NativeLookup(Dart_Handle name, 56 static Dart_NativeFunction NativeLookup(Dart_Handle name,
57 int argument_count, 57 int argument_count,
58 bool* auto_setup_scope); 58 bool* auto_setup_scope);
59 59
60 static const char* NativeReverseLookup(Dart_NativeFunction nf);
siva 2014/04/08 16:27:54 Instead of NativeReverseLookup I would call it Nat
Cutch 2014/04/09 17:40:59 Done.
61
60 static const char* builtin_source_paths_[]; 62 static const char* builtin_source_paths_[];
61 static const char* io_source_paths_[]; 63 static const char* io_source_paths_[];
62 static const char* io_patch_paths_[]; 64 static const char* io_patch_paths_[];
63 65
64 typedef struct { 66 typedef struct {
65 const char* url_; 67 const char* url_;
66 const char** source_paths_; 68 const char** source_paths_;
67 const char* patch_url_; 69 const char* patch_url_;
68 const char** patch_paths_; 70 const char** patch_paths_;
69 bool has_natives_; 71 bool has_natives_;
70 } builtin_lib_props; 72 } builtin_lib_props;
71 static builtin_lib_props builtin_libraries_[]; 73 static builtin_lib_props builtin_libraries_[];
72 74
73 DISALLOW_ALLOCATION(); 75 DISALLOW_ALLOCATION();
74 DISALLOW_IMPLICIT_CONSTRUCTORS(Builtin); 76 DISALLOW_IMPLICIT_CONSTRUCTORS(Builtin);
75 }; 77 };
76 78
77 } // namespace bin 79 } // namespace bin
78 } // namespace dart 80 } // namespace dart
79 81
80 #endif // BIN_BUILTIN_H_ 82 #endif // BIN_BUILTIN_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/builtin.cc » ('j') | runtime/include/dart_api.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698