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

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

Issue 12775009: Optimize TypedData operators [] and []= in the same way as ScalarList. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: ARM/MIPS build, comments, rebased Created 7 years, 9 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 | « no previous file | runtime/vm/flow_graph_compiler.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_FLOW_GRAPH_COMPILER_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_H_
6 #define VM_FLOW_GRAPH_COMPILER_H_ 6 #define VM_FLOW_GRAPH_COMPILER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/code_descriptors.h" 10 #include "vm/code_descriptors.h"
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 static intptr_t DataOffsetFor(intptr_t cid); 407 static intptr_t DataOffsetFor(intptr_t cid);
408 static intptr_t ElementSizeFor(intptr_t cid); 408 static intptr_t ElementSizeFor(intptr_t cid);
409 static FieldAddress ElementAddressForIntIndex(intptr_t cid, 409 static FieldAddress ElementAddressForIntIndex(intptr_t cid,
410 intptr_t index_scale, 410 intptr_t index_scale,
411 Register array, 411 Register array,
412 intptr_t offset); 412 intptr_t offset);
413 static FieldAddress ElementAddressForRegIndex(intptr_t cid, 413 static FieldAddress ElementAddressForRegIndex(intptr_t cid,
414 intptr_t index_scale, 414 intptr_t index_scale,
415 Register array, 415 Register array,
416 Register index); 416 Register index);
417 static Address ExternalElementAddressForIntIndex(intptr_t cid, 417 static Address ExternalElementAddressForIntIndex(intptr_t index_scale,
418 intptr_t index_scale,
419 Register array, 418 Register array,
420 intptr_t offset); 419 intptr_t offset);
421 static Address ExternalElementAddressForRegIndex(intptr_t cid, 420 static Address ExternalElementAddressForRegIndex(intptr_t index_scale,
422 intptr_t index_scale,
423 Register array, 421 Register array,
424 Register index); 422 Register index);
425 423
426 private: 424 private:
427 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_. 425 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_.
428 426
429 void EmitFrameEntry(); 427 void EmitFrameEntry();
430 428
431 void AddStaticCallTarget(const Function& function); 429 void AddStaticCallTarget(const Function& function);
432 430
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 // that should be used when deoptimizing we store it in this variable. 547 // that should be used when deoptimizing we store it in this variable.
550 // In future AddDeoptStub should be moved out of the instruction template. 548 // In future AddDeoptStub should be moved out of the instruction template.
551 Environment* pending_deoptimization_env_; 549 Environment* pending_deoptimization_env_;
552 550
553 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 551 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
554 }; 552 };
555 553
556 } // namespace dart 554 } // namespace dart
557 555
558 #endif // VM_FLOW_GRAPH_COMPILER_H_ 556 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698