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

Side by Side Diff: runtime/vm/object_store.h

Issue 10823278: Use type propagation for removing Smi checks in binary operations and comparisons. Regis will adapt… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_OBJECT_STORE_H_ 5 #ifndef VM_OBJECT_STORE_H_
6 #define VM_OBJECT_STORE_H_ 6 #define VM_OBJECT_STORE_H_
7 7
8 #include "vm/object.h" 8 #include "vm/object.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 441
442 RawArray* keyword_symbols() const { return keyword_symbols_; } 442 RawArray* keyword_symbols() const { return keyword_symbols_; }
443 void set_keyword_symbols(const Array& value) { 443 void set_keyword_symbols(const Array& value) {
444 keyword_symbols_ = value.raw(); 444 keyword_symbols_ = value.raw();
445 } 445 }
446 void InitKeywordTable(); 446 void InitKeywordTable();
447 447
448 // Visit all object pointers. 448 // Visit all object pointers.
449 void VisitObjectPointers(ObjectPointerVisitor* visitor); 449 void VisitObjectPointers(ObjectPointerVisitor* visitor);
450 450
451 RawType* GetType(int index);
452 int GetTypeIndex(const RawType* raw_type);
453
454 // Called to initialize objects required by the vm but which invoke 451 // Called to initialize objects required by the vm but which invoke
455 // dart code. If an error occurs then false is returned and error 452 // dart code. If an error occurs then false is returned and error
456 // information is stored in sticky_error(). 453 // information is stored in sticky_error().
457 bool PreallocateObjects(); 454 bool PreallocateObjects();
458 455
459 static void Init(Isolate* isolate); 456 static void Init(Isolate* isolate);
460 457
461 private: 458 private:
462 ObjectStore(); 459 ObjectStore();
463 460
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 533 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
537 534
538 friend class SnapshotReader; 535 friend class SnapshotReader;
539 536
540 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 537 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
541 }; 538 };
542 539
543 } // namespace dart 540 } // namespace dart
544 541
545 #endif // VM_OBJECT_STORE_H_ 542 #endif // VM_OBJECT_STORE_H_
OLDNEW
« runtime/vm/intermediate_language.cc ('K') | « runtime/vm/intermediate_language_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698