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

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

Issue 9114008: Introduce runtime/platform directory for code shared between vm (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Windows fixes. Created 8 years, 11 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/dartutils.h » ('j') | runtime/platform/globals.h » ('J')
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_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
11 #include "bin/globals.h"
12 #include "include/dart_api.h" 11 #include "include/dart_api.h"
13 12
13 #include "platform/globals.h"
14
14 #ifdef DEBUG 15 #ifdef DEBUG
15 #define ASSERT(expr) assert(expr) 16 #define ASSERT(expr) assert(expr)
16 #else 17 #else
17 #define ASSERT(expr) USE(expr) 18 #define ASSERT(expr) USE(expr)
18 #endif 19 #endif
19 20
20 #define FATAL(error) \ 21 #define FATAL(error) \
21 fprintf(stderr, "%s\n", error); \ 22 fprintf(stderr, "%s\n", error); \
22 fflush(stderr); \ 23 fflush(stderr); \
23 abort(); 24 abort();
(...skipping 24 matching lines...) Expand all
48 int argument_count); 49 int argument_count);
49 50
50 static const char Builtin_source_[]; 51 static const char Builtin_source_[];
51 52
52 DISALLOW_ALLOCATION(); 53 DISALLOW_ALLOCATION();
53 DISALLOW_IMPLICIT_CONSTRUCTORS(Builtin); 54 DISALLOW_IMPLICIT_CONSTRUCTORS(Builtin);
54 }; 55 };
55 56
56 57
57 #endif // BIN_BUILTIN_H_ 58 #endif // BIN_BUILTIN_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/dartutils.h » ('j') | runtime/platform/globals.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698