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

Side by Side Diff: runtime/vm/parser.cc

Issue 8680029: Fix Windows build (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years 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 | 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) 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 #include "vm/parser.h" 5 #include "vm/parser.h"
6 6
7 #include "vm/bigint_operations.h" 7 #include "vm/bigint_operations.h"
8 #include "vm/class_finalizer.h" 8 #include "vm/class_finalizer.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/compiler_stats.h" 10 #include "vm/compiler_stats.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 #define TRACE_PARSER(s) \ 69 #define TRACE_PARSER(s) \
70 TraceParser __p__(this->token_index_, this->script_, s) 70 TraceParser __p__(this->token_index_, this->script_, s)
71 71
72 #else // not DEBUG 72 #else // not DEBUG
73 #define TRACE_PARSER(s) 73 #define TRACE_PARSER(s)
74 #endif // DEBUG 74 #endif // DEBUG
75 75
76 76
77 static const char* kManglePrefix = "this:"; 77 static const char* kManglePrefix = "this:";
78 78
79 static RawString* MangledInitParamName(const String& field_name) {
80 return String::Concat(String::Handle(String::New(kManglePrefix)),
81 field_name);
82 }
83
84 79
85 template<typename T> 80 template<typename T>
86 static RawArray* NewArray(const GrowableArray<T*>& objs) { 81 static RawArray* NewArray(const GrowableArray<T*>& objs) {
87 Array& a = Array::Handle(Array::New(objs.length(), Heap::kOld)); 82 Array& a = Array::Handle(Array::New(objs.length(), Heap::kOld));
88 for (int i = 0; i < objs.length(); i++) { 83 for (int i = 0; i < objs.length(); i++) {
89 a.SetAt(i, *objs[i]); 84 a.SetAt(i, *objs[i]);
90 } 85 }
91 return a.raw(); 86 return a.raw();
92 } 87 }
93 88
(...skipping 7435 matching lines...) Expand 10 before | Expand all | Expand 10 after
7529 } 7524 }
7530 7525
7531 7526
7532 void Parser::SkipNestedExpr() { 7527 void Parser::SkipNestedExpr() {
7533 const bool saved_mode = SetAllowFunctionLiterals(true); 7528 const bool saved_mode = SetAllowFunctionLiterals(true);
7534 SkipExpr(); 7529 SkipExpr();
7535 SetAllowFunctionLiterals(saved_mode); 7530 SetAllowFunctionLiterals(saved_mode);
7536 } 7531 }
7537 7532
7538 } // namespace dart 7533 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698