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

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

Issue 12827007: Support initialized mixin fields across scripts (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 | « runtime/vm/object.h ('k') | runtime/vm/parser.h » ('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) 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 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/bigint_operations.h" 10 #include "vm/bigint_operations.h"
(...skipping 5331 matching lines...) Expand 10 before | Expand all | Expand 10 after
5342 return result.raw(); 5342 return result.raw();
5343 } 5343 }
5344 5344
5345 5345
5346 const char* TokenStream::ToCString() const { 5346 const char* TokenStream::ToCString() const {
5347 return "TokenStream"; 5347 return "TokenStream";
5348 } 5348 }
5349 5349
5350 5350
5351 TokenStream::Iterator::Iterator(const TokenStream& tokens, intptr_t token_pos) 5351 TokenStream::Iterator::Iterator(const TokenStream& tokens, intptr_t token_pos)
5352 : tokens_(tokens), 5352 : tokens_(TokenStream::Handle(tokens.raw())),
5353 data_(ExternalUint8Array::Handle(tokens.GetStream())), 5353 data_(ExternalUint8Array::Handle(tokens.GetStream())),
5354 stream_(data_.ByteAddr(0), data_.Length()), 5354 stream_(data_.ByteAddr(0), data_.Length()),
5355 token_objects_(Array::Handle(tokens.TokenObjects())), 5355 token_objects_(Array::Handle(tokens.TokenObjects())),
5356 obj_(Object::Handle()), 5356 obj_(Object::Handle()),
5357 cur_token_pos_(token_pos), 5357 cur_token_pos_(token_pos),
5358 cur_token_kind_(Token::kILLEGAL), 5358 cur_token_kind_(Token::kILLEGAL),
5359 cur_token_obj_index_(-1) { 5359 cur_token_obj_index_(-1) {
5360 SetCurrentPosition(token_pos); 5360 SetCurrentPosition(token_pos);
5361 } 5361 }
5362 5362
5363 5363
5364 void TokenStream::Iterator::SetStream(const TokenStream& tokens,
5365 intptr_t token_pos) {
5366 tokens_ = tokens.raw();
5367 data_ = tokens.GetStream();
5368 stream_.SetStream(data_.ByteAddr(0), data_.Length());
5369 token_objects_ = tokens.TokenObjects();
5370 obj_ = Object::null();
5371 cur_token_pos_ = token_pos;
5372 cur_token_kind_ = Token::kILLEGAL;
5373 cur_token_obj_index_ = -1;
5374 SetCurrentPosition(token_pos);
5375 }
5376
5377
5364 bool TokenStream::Iterator::IsValid() const { 5378 bool TokenStream::Iterator::IsValid() const {
5365 return !tokens_.IsNull(); 5379 return !tokens_.IsNull();
5366 } 5380 }
5367 5381
5368 5382
5369 Token::Kind TokenStream::Iterator::LookaheadTokenKind(intptr_t num_tokens) { 5383 Token::Kind TokenStream::Iterator::LookaheadTokenKind(intptr_t num_tokens) {
5370 intptr_t saved_position = stream_.Position(); 5384 intptr_t saved_position = stream_.Position();
5371 Token::Kind kind = Token::kILLEGAL; 5385 Token::Kind kind = Token::kILLEGAL;
5372 intptr_t value = -1; 5386 intptr_t value = -1;
5373 intptr_t count = 0; 5387 intptr_t count = 0;
(...skipping 8244 matching lines...) Expand 10 before | Expand all | Expand 10 after
13618 } 13632 }
13619 return result.raw(); 13633 return result.raw();
13620 } 13634 }
13621 13635
13622 13636
13623 const char* WeakProperty::ToCString() const { 13637 const char* WeakProperty::ToCString() const {
13624 return "_WeakProperty"; 13638 return "_WeakProperty";
13625 } 13639 }
13626 13640
13627 } // namespace dart 13641 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698