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

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

Issue 12218008: Inline getters of byte array view in the optimized flow graph. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: updated vm.status with new test Created 7 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
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/assembler_macros.h" 10 #include "vm/assembler_macros.h"
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 static const int kLocalsOffsetFromFP = (-1 * kWordSize); 377 static const int kLocalsOffsetFromFP = (-1 * kWordSize);
378 378
379 static Condition FlipCondition(Condition condition); 379 static Condition FlipCondition(Condition condition);
380 380
381 static bool EvaluateCondition(Condition condition, intptr_t l, intptr_t r); 381 static bool EvaluateCondition(Condition condition, intptr_t l, intptr_t r);
382 382
383 // Array/list element address computations. 383 // Array/list element address computations.
384 static intptr_t DataOffsetFor(intptr_t cid); 384 static intptr_t DataOffsetFor(intptr_t cid);
385 static intptr_t ElementSizeFor(intptr_t cid); 385 static intptr_t ElementSizeFor(intptr_t cid);
386 static FieldAddress ElementAddressForIntIndex(intptr_t cid, 386 static FieldAddress ElementAddressForIntIndex(intptr_t cid,
387 intptr_t index_scale,
387 Register array, 388 Register array,
388 intptr_t offset); 389 intptr_t offset);
389 static FieldAddress ElementAddressForRegIndex(intptr_t cid, 390 static FieldAddress ElementAddressForRegIndex(intptr_t cid,
391 intptr_t index_scale,
390 Register array, 392 Register array,
391 Register index); 393 Register index);
392 static Address ExternalElementAddressForIntIndex(intptr_t cid, 394 static Address ExternalElementAddressForIntIndex(intptr_t cid,
395 intptr_t index_scale,
393 Register array, 396 Register array,
394 intptr_t offset); 397 intptr_t offset);
395 static Address ExternalElementAddressForRegIndex(intptr_t cid, 398 static Address ExternalElementAddressForRegIndex(intptr_t cid,
399 intptr_t index_scale,
396 Register array, 400 Register array,
397 Register index); 401 Register index);
398 402
399 private: 403 private:
400 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_. 404 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_.
401 405
402 void EmitFrameEntry(); 406 void EmitFrameEntry();
403 407
404 void AddStaticCallTarget(const Function& function); 408 void AddStaticCallTarget(const Function& function);
405 409
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 // that should be used when deoptimizing we store it in this variable. 523 // that should be used when deoptimizing we store it in this variable.
520 // In future AddDeoptStub should be moved out of the instruction template. 524 // In future AddDeoptStub should be moved out of the instruction template.
521 Environment* pending_deoptimization_env_; 525 Environment* pending_deoptimization_env_;
522 526
523 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 527 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
524 }; 528 };
525 529
526 } // namespace dart 530 } // namespace dart
527 531
528 #endif // VM_FLOW_GRAPH_COMPILER_H_ 532 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698