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

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

Issue 860963002: Refactor _ByteDataView.[set|get]* methods to improve their performance. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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_FLOW_GRAPH_BUILDER_H_ 5 #ifndef VM_FLOW_GRAPH_BUILDER_H_
6 #define VM_FLOW_GRAPH_BUILDER_H_ 6 #define VM_FLOW_GRAPH_BUILDER_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/globals.h" 9 #include "platform/globals.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 static intptr_t ResultCid(const Function& factory) { 56 static intptr_t ResultCid(const Function& factory) {
57 ASSERT(factory.IsFactory()); 57 ASSERT(factory.IsFactory());
58 const Class& function_class = Class::Handle(factory.Owner()); 58 const Class& function_class = Class::Handle(factory.Owner());
59 const Library& lib = Library::Handle(function_class.library()); 59 const Library& lib = Library::Handle(function_class.library());
60 ASSERT((lib.raw() == Library::CoreLibrary()) || 60 ASSERT((lib.raw() == Library::CoreLibrary()) ||
61 (lib.raw() == Library::TypedDataLibrary())); 61 (lib.raw() == Library::TypedDataLibrary()));
62 const String& factory_name = String::Handle(factory.name()); 62 const String& factory_name = String::Handle(factory.name());
63 #define RECOGNIZE_FACTORY(test_factory_symbol, cid, fp) \ 63 #define RECOGNIZE_FACTORY(test_factory_symbol, cid, fp) \
64 if (String::EqualsIgnoringPrivateKey( \ 64 if (String::EqualsIgnoringPrivateKey( \
65 factory_name, Symbols::test_factory_symbol())) { \ 65 factory_name, Symbols::test_factory_symbol())) { \
66 ASSERT(factory.CheckSourceFingerprint(fp)); \ 66 CHECK_FINGERPRINT2(factory, test_factory_symbol, cid, fp); \
67 return cid; \ 67 return cid; \
68 } \ 68 } \
69 69
70 RECOGNIZED_LIST_FACTORY_LIST(RECOGNIZE_FACTORY); 70 RECOGNIZED_LIST_FACTORY_LIST(RECOGNIZE_FACTORY);
71 #undef RECOGNIZE_FACTORY 71 #undef RECOGNIZE_FACTORY
72 72
73 return kDynamicCid; 73 return kDynamicCid;
74 } 74 }
75 }; 75 };
76 76
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 // Output parameters. 603 // Output parameters.
604 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 604 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
605 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 605 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
606 606
607 intptr_t condition_token_pos_; 607 intptr_t condition_token_pos_;
608 }; 608 };
609 609
610 } // namespace dart 610 } // namespace dart
611 611
612 #endif // VM_FLOW_GRAPH_BUILDER_H_ 612 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698