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

Side by Side Diff: vm/raw_object.h

Issue 10535180: Allow implicit 'close your eyes' of native methods. This will hopefully fix issue 3466. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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) 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 #ifndef VM_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 intptr_t token_index_; 574 intptr_t token_index_;
575 intptr_t end_token_index_; 575 intptr_t end_token_index_;
576 intptr_t num_fixed_parameters_; 576 intptr_t num_fixed_parameters_;
577 intptr_t num_optional_parameters_; 577 intptr_t num_optional_parameters_;
578 intptr_t usage_counter_; // Incremented while function is running. 578 intptr_t usage_counter_; // Incremented while function is running.
579 intptr_t deoptimization_counter_; 579 intptr_t deoptimization_counter_;
580 Kind kind_; 580 Kind kind_;
581 bool is_static_; 581 bool is_static_;
582 bool is_const_; 582 bool is_const_;
583 bool is_optimizable_; 583 bool is_optimizable_;
584 bool is_native_;
584 }; 585 };
585 586
586 587
587 class RawField : public RawObject { 588 class RawField : public RawObject {
588 RAW_HEAP_OBJECT_IMPLEMENTATION(Field); 589 RAW_HEAP_OBJECT_IMPLEMENTATION(Field);
589 590
590 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } 591 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
591 RawString* name_; 592 RawString* name_;
592 RawClass* owner_; 593 RawClass* owner_;
593 RawAbstractType* type_; 594 RawAbstractType* type_;
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 kExternalUint64Array == kByteArray + 18 && 1507 kExternalUint64Array == kByteArray + 18 &&
1507 kExternalFloat32Array == kByteArray + 19 && 1508 kExternalFloat32Array == kByteArray + 19 &&
1508 kExternalFloat64Array == kByteArray + 20 && 1509 kExternalFloat64Array == kByteArray + 20 &&
1509 kClosure == kByteArray + 21); 1510 kClosure == kByteArray + 21);
1510 return (index >= kByteArray && index <= kClosure); 1511 return (index >= kByteArray && index <= kClosure);
1511 } 1512 }
1512 1513
1513 } // namespace dart 1514 } // namespace dart
1514 1515
1515 #endif // VM_RAW_OBJECT_H_ 1516 #endif // VM_RAW_OBJECT_H_
OLDNEW
« vm/parser.cc ('K') | « vm/parser.cc ('k') | vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698