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

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
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('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) 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 438
439 RawArray* keyword_symbols() const { return keyword_symbols_; } 439 RawArray* keyword_symbols() const { return keyword_symbols_; }
440 void set_keyword_symbols(const Array& value) { 440 void set_keyword_symbols(const Array& value) {
441 keyword_symbols_ = value.raw(); 441 keyword_symbols_ = value.raw();
442 } 442 }
443 void InitKeywordTable(); 443 void InitKeywordTable();
444 444
445 // Visit all object pointers. 445 // Visit all object pointers.
446 void VisitObjectPointers(ObjectPointerVisitor* visitor); 446 void VisitObjectPointers(ObjectPointerVisitor* visitor);
447 447
448 RawType* GetType(int index);
449 int GetTypeIndex(const RawType* raw_type);
450
451 // Called to initialize objects required by the vm but which invoke 448 // Called to initialize objects required by the vm but which invoke
452 // dart code. If an error occurs then false is returned and error 449 // dart code. If an error occurs then false is returned and error
453 // information is stored in sticky_error(). 450 // information is stored in sticky_error().
454 bool PreallocateObjects(); 451 bool PreallocateObjects();
455 452
456 static void Init(Isolate* isolate); 453 static void Init(Isolate* isolate);
457 454
458 private: 455 private:
459 ObjectStore(); 456 ObjectStore();
460 457
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 529 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
533 530
534 friend class SnapshotReader; 531 friend class SnapshotReader;
535 532
536 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 533 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
537 }; 534 };
538 535
539 } // namespace dart 536 } // namespace dart
540 537
541 #endif // VM_OBJECT_STORE_H_ 538 #endif // VM_OBJECT_STORE_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698