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

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

Issue 2583153002: Set correct script on fields in kernel. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « runtime/vm/object.h ('k') | 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) 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/become.h" 10 #include "vm/become.h"
(...skipping 7450 matching lines...) Expand 10 before | Expand all | Expand 10 after
7461 result.set_guarded_list_length(Field::kNoFixedLength); 7461 result.set_guarded_list_length(Field::kNoFixedLength);
7462 } 7462 }
7463 } 7463 }
7464 7464
7465 7465
7466 RawField* Field::New(const String& name, 7466 RawField* Field::New(const String& name,
7467 bool is_static, 7467 bool is_static,
7468 bool is_final, 7468 bool is_final,
7469 bool is_const, 7469 bool is_const,
7470 bool is_reflectable, 7470 bool is_reflectable,
7471 const Class& owner, 7471 const Object& owner,
7472 const AbstractType& type, 7472 const AbstractType& type,
7473 TokenPosition token_pos) { 7473 TokenPosition token_pos) {
7474 ASSERT(!owner.IsNull()); 7474 ASSERT(!owner.IsNull());
7475 const Field& result = Field::Handle(Field::New()); 7475 const Field& result = Field::Handle(Field::New());
7476 InitializeNew(result, name, is_static, is_final, is_const, is_reflectable, 7476 InitializeNew(result, name, is_static, is_final, is_const, is_reflectable,
7477 owner, token_pos); 7477 owner, token_pos);
7478 result.SetFieldType(type); 7478 result.SetFieldType(type);
7479 return result.raw(); 7479 return result.raw();
7480 } 7480 }
7481 7481
(...skipping 15323 matching lines...) Expand 10 before | Expand all | Expand 10 after
22805 return UserTag::null(); 22805 return UserTag::null();
22806 } 22806 }
22807 22807
22808 22808
22809 const char* UserTag::ToCString() const { 22809 const char* UserTag::ToCString() const {
22810 const String& tag_label = String::Handle(label()); 22810 const String& tag_label = String::Handle(label());
22811 return tag_label.ToCString(); 22811 return tag_label.ToCString();
22812 } 22812 }
22813 22813
22814 } // namespace dart 22814 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698