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

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

Issue 135913003: Optimize getField by caching a closure generated from a specialized function kind. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/object.cc ('k') | runtime/vm/parser.cc » ('j') | 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) 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_PARSER_H_ 5 #ifndef VM_PARSER_H_
6 #define VM_PARSER_H_ 6 #define VM_PARSER_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 #include "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 438
439 SequenceNode* ParseConstructor(const Function& func, 439 SequenceNode* ParseConstructor(const Function& func,
440 Array& default_parameter_values); 440 Array& default_parameter_values);
441 SequenceNode* ParseFunc(const Function& func, 441 SequenceNode* ParseFunc(const Function& func,
442 Array& default_parameter_values); 442 Array& default_parameter_values);
443 443
444 void ParseNativeFunctionBlock(const ParamList* params, const Function& func); 444 void ParseNativeFunctionBlock(const ParamList* params, const Function& func);
445 445
446 SequenceNode* ParseInstanceGetter(const Function& func); 446 SequenceNode* ParseInstanceGetter(const Function& func);
447 SequenceNode* ParseInstanceSetter(const Function& func); 447 SequenceNode* ParseInstanceSetter(const Function& func);
448 SequenceNode* ParseGetFieldClosure(const Function& func);
449 SequenceNode* ParseSetFieldClosure(const Function& func);
448 SequenceNode* ParseStaticFinalGetter(const Function& func); 450 SequenceNode* ParseStaticFinalGetter(const Function& func);
449 SequenceNode* ParseStaticInitializer(const Function& func); 451 SequenceNode* ParseStaticInitializer(const Function& func);
450 SequenceNode* ParseMethodExtractor(const Function& func); 452 SequenceNode* ParseMethodExtractor(const Function& func);
451 SequenceNode* ParseNoSuchMethodDispatcher(const Function& func, 453 SequenceNode* ParseNoSuchMethodDispatcher(const Function& func,
452 Array& default_values); 454 Array& default_values);
453 SequenceNode* ParseInvokeFieldDispatcher(const Function& func, 455 SequenceNode* ParseInvokeFieldDispatcher(const Function& func,
454 Array& default_values); 456 Array& default_values);
455 void BuildDispatcherScope(const Function& func, 457 void BuildDispatcherScope(const Function& func,
456 const ArgumentsDescriptor& desc, 458 const ArgumentsDescriptor& desc,
457 Array& default_values); 459 Array& default_values);
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 intptr_t last_used_try_index_; 716 intptr_t last_used_try_index_;
715 717
716 bool unregister_pending_function_; 718 bool unregister_pending_function_;
717 719
718 DISALLOW_COPY_AND_ASSIGN(Parser); 720 DISALLOW_COPY_AND_ASSIGN(Parser);
719 }; 721 };
720 722
721 } // namespace dart 723 } // namespace dart
722 724
723 #endif // VM_PARSER_H_ 725 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698