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

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

Issue 2514373002: VM: [Kernel] Cherry-pick from dart-lang/kernel_sdk (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | runtime/vm/kernel_reader.cc » ('j') | runtime/vm/kernel_reader.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/class_finalizer.h" 5 #include "vm/class_finalizer.h"
6 6
7 #include "vm/code_generator.h" 7 #include "vm/code_generator.h"
8 #include "vm/flags.h" 8 #include "vm/flags.h"
9 #include "vm/heap.h" 9 #include "vm/heap.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 1450 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 const Function& getter = Function::Handle( 1461 const Function& getter = Function::Handle(
1462 zone, Function::New( 1462 zone, Function::New(
1463 getter_name, RawFunction::kImplicitStaticFinalGetter, 1463 getter_name, RawFunction::kImplicitStaticFinalGetter,
1464 /* is_static = */ true, 1464 /* is_static = */ true,
1465 /* is_const = */ field.is_const(), 1465 /* is_const = */ field.is_const(),
1466 /* is_abstract = */ false, 1466 /* is_abstract = */ false,
1467 /* is_external = */ false, 1467 /* is_external = */ false,
1468 /* is_native = */ false, cls, field.token_pos())); 1468 /* is_native = */ false, cls, field.token_pos()));
1469 getter.set_result_type(type); 1469 getter.set_result_type(type);
1470 getter.set_is_debuggable(false); 1470 getter.set_is_debuggable(false);
1471 getter.set_kernel_function(field.kernel_field());
1471 cls.AddFunction(getter); 1472 cls.AddFunction(getter);
1472 field.SetStaticValue(Object::sentinel(), true); 1473 field.SetStaticValue(Object::sentinel(), true);
1473 } 1474 }
1474 } 1475 }
1475 } 1476 }
1476 } 1477 }
1477 // Collect interfaces, super interfaces, and super classes of this class. 1478 // Collect interfaces, super interfaces, and super classes of this class.
1478 GrowableArray<const Class*> interfaces(zone, 4); 1479 GrowableArray<const Class*> interfaces(zone, 4);
1479 CollectInterfaces(cls, &interfaces); 1480 CollectInterfaces(cls, &interfaces);
1480 // Include superclasses in list of interfaces and super interfaces. 1481 // Include superclasses in list of interfaces and super interfaces.
(...skipping 1839 matching lines...) Expand 10 before | Expand all | Expand 10 after
3320 ASSERT(fields_array.Length() == ByteBuffer::NumberOfFields()); 3321 ASSERT(fields_array.Length() == ByteBuffer::NumberOfFields());
3321 field ^= fields_array.At(0); 3322 field ^= fields_array.At(0);
3322 ASSERT(field.Offset() == ByteBuffer::data_offset()); 3323 ASSERT(field.Offset() == ByteBuffer::data_offset());
3323 name ^= field.name(); 3324 name ^= field.name();
3324 expected_name ^= String::New("_data"); 3325 expected_name ^= String::New("_data");
3325 ASSERT(String::EqualsIgnoringPrivateKey(name, expected_name)); 3326 ASSERT(String::EqualsIgnoringPrivateKey(name, expected_name));
3326 #endif 3327 #endif
3327 } 3328 }
3328 3329
3329 } // namespace dart 3330 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/kernel_reader.cc » ('j') | runtime/vm/kernel_reader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698