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

Side by Side Diff: bin/dartutils.h

Issue 8537023: Implement automatic loading of dart:core_native_fields library (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 1 month 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 | « bin/builtin_in.cc ('k') | bin/dartutils.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 (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_DARTUTILS_H_ 5 #ifndef BIN_DARTUTILS_H_
6 #define BIN_DARTUTILS_H_ 6 #define BIN_DARTUTILS_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "bin/globals.h" 9 #include "bin/globals.h"
10 10
11 #include "include/dart_api.h" 11 #include "include/dart_api.h"
12 12
13 class DartUtils { 13 class DartUtils {
14 public: 14 public:
15 static int64_t GetIntegerValue(Dart_Handle value_obj); 15 static int64_t GetIntegerValue(Dart_Handle value_obj);
16 static const char* GetStringValue(Dart_Handle str_obj); 16 static const char* GetStringValue(Dart_Handle str_obj);
17 static bool GetBooleanValue(Dart_Handle bool_obj); 17 static bool GetBooleanValue(Dart_Handle bool_obj);
18 static void SetIntegerInstanceField(Dart_Handle handle, 18 static void SetIntegerInstanceField(Dart_Handle handle,
19 const char* name, 19 const char* name,
20 intptr_t val); 20 intptr_t val);
21 static intptr_t GetIntegerInstanceField(Dart_Handle handle, 21 static intptr_t GetIntegerInstanceField(Dart_Handle handle,
22 const char* name); 22 const char* name);
23 static void SetStringInstanceField(Dart_Handle handle, 23 static void SetStringInstanceField(Dart_Handle handle,
24 const char* name, 24 const char* name,
25 const char* val); 25 const char* val);
26 26
27 static const char* kBuiltinLibURL; 27 static const char* kBuiltinLibURL;
28 static const char* kBuiltinLibSpec; 28 static const char* kCoreLibURL;
29 static const char* kCoreImplLibURL;
30 static const char* kCoreNativeWrappersLibURL;
29 31
30 static const char* kIdFieldName; 32 static const char* kIdFieldName;
31 private: 33 private:
32 DISALLOW_ALLOCATION(); 34 DISALLOW_ALLOCATION();
33 DISALLOW_IMPLICIT_CONSTRUCTORS(DartUtils); 35 DISALLOW_IMPLICIT_CONSTRUCTORS(DartUtils);
34 }; 36 };
35 37
36 #endif // BIN_DARTUTILS_H_ 38 #endif // BIN_DARTUTILS_H_
OLDNEW
« no previous file with comments | « bin/builtin_in.cc ('k') | bin/dartutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698