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

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

Issue 304703002: Split GuardField into GuardFieldType and GuardFieldLength instructions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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
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 "include/dart_api.h" 5 #include "include/dart_api.h"
6 #include "include/dart_mirrors_api.h" 6 #include "include/dart_mirrors_api.h"
7 #include "include/dart_native_api.h" 7 #include "include/dart_native_api.h"
8 8
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/bigint_operations.h" 10 #include "vm/bigint_operations.h"
(...skipping 3506 matching lines...) Expand 10 before | Expand all | Expand 10 after
3517 while (!iterate_cls.IsNull()) { 3517 while (!iterate_cls.IsNull()) {
3518 ASSERT(iterate_cls.is_finalized()); 3518 ASSERT(iterate_cls.is_finalized());
3519 iterate_cls.set_is_fields_marked_nullable(); 3519 iterate_cls.set_is_fields_marked_nullable();
3520 fields = iterate_cls.fields(); 3520 fields = iterate_cls.fields();
3521 iterate_cls = iterate_cls.SuperClass(); 3521 iterate_cls = iterate_cls.SuperClass();
3522 for (int field_num = 0; field_num < fields.Length(); field_num++) { 3522 for (int field_num = 0; field_num < fields.Length(); field_num++) {
3523 field ^= fields.At(field_num); 3523 field ^= fields.At(field_num);
3524 if (field.is_static()) { 3524 if (field.is_static()) {
3525 continue; 3525 continue;
3526 } 3526 }
3527 field.UpdateGuardedCidAndLength(Object::null_object()); 3527 field.RecordStore(Object::null_object());
3528 } 3528 }
3529 } 3529 }
3530 } 3530 }
3531 3531
3532 // Allocate an object for the given class. 3532 // Allocate an object for the given class.
3533 return Api::NewHandle(isolate, Instance::New(cls)); 3533 return Api::NewHandle(isolate, Instance::New(cls));
3534 } 3534 }
3535 3535
3536 3536
3537 static Dart_Handle SetupArguments(Isolate* isolate, 3537 static Dart_Handle SetupArguments(Isolate* isolate,
(...skipping 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after
5081 5081
5082 5082
5083 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 5083 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
5084 const char* name, 5084 const char* name,
5085 Dart_ServiceRequestCallback callback, 5085 Dart_ServiceRequestCallback callback,
5086 void* user_data) { 5086 void* user_data) {
5087 Service::RegisterRootEmbedderCallback(name, callback, user_data); 5087 Service::RegisterRootEmbedderCallback(name, callback, user_data);
5088 } 5088 }
5089 5089
5090 } // namespace dart 5090 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698