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

Side by Side Diff: src/arm/macro-assembler-arm.h

Issue 10170030: Implement tracking and optimizations of packed arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 8 years, 7 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 | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 void LoadTransitionedArrayMapConditional( 505 void LoadTransitionedArrayMapConditional(
506 ElementsKind expected_kind, 506 ElementsKind expected_kind,
507 ElementsKind transitioned_kind, 507 ElementsKind transitioned_kind,
508 Register map_in_out, 508 Register map_in_out,
509 Register scratch, 509 Register scratch,
510 Label* no_map_match); 510 Label* no_map_match);
511 511
512 // Load the initial map for new Arrays from a JSFunction. 512 // Load the initial map for new Arrays from a JSFunction.
513 void LoadInitialArrayMap(Register function_in, 513 void LoadInitialArrayMap(Register function_in,
514 Register scratch, 514 Register scratch,
515 Register map_out); 515 Register map_out,
516 bool can_have_holes);
516 517
517 void LoadGlobalFunction(int index, Register function); 518 void LoadGlobalFunction(int index, Register function);
518 519
519 // Load the initial map from the global function. The registers 520 // Load the initial map from the global function. The registers
520 // function and map can be the same, function is then overwritten. 521 // function and map can be the same, function is then overwritten.
521 void LoadGlobalFunctionInitialMap(Register function, 522 void LoadGlobalFunctionInitialMap(Register function,
522 Register map, 523 Register map,
523 Register scratch); 524 Register scratch);
524 525
525 void InitializeRootRegister() { 526 void InitializeRootRegister() {
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 Label* fail); 796 Label* fail);
796 797
797 // Check if a map for a JSObject indicates that the object can have both smi 798 // Check if a map for a JSObject indicates that the object can have both smi
798 // and HeapObject elements. Jump to the specified label if it does not. 799 // and HeapObject elements. Jump to the specified label if it does not.
799 void CheckFastObjectElements(Register map, 800 void CheckFastObjectElements(Register map,
800 Register scratch, 801 Register scratch,
801 Label* fail); 802 Label* fail);
802 803
803 // Check if a map for a JSObject indicates that the object has fast smi only 804 // Check if a map for a JSObject indicates that the object has fast smi only
804 // elements. Jump to the specified label if it does not. 805 // elements. Jump to the specified label if it does not.
805 void CheckFastSmiOnlyElements(Register map, 806 void CheckFastSmiElements(Register map,
806 Register scratch, 807 Register scratch,
807 Label* fail); 808 Label* fail);
808 809
809 // Check to see if maybe_number can be stored as a double in 810 // Check to see if maybe_number can be stored as a double in
810 // FastDoubleElements. If it can, store it at the index specified by key in 811 // FastDoubleElements. If it can, store it at the index specified by key in
811 // the FastDoubleElements array elements. Otherwise jump to fail, in which 812 // the FastDoubleElements array elements. Otherwise jump to fail, in which
812 // case scratch2, scratch3 and scratch4 are unmodified. 813 // case scratch2, scratch3 and scratch4 are unmodified.
813 void StoreNumberToDoubleElements(Register value_reg, 814 void StoreNumberToDoubleElements(Register value_reg,
814 Register key_reg, 815 Register key_reg,
815 Register receiver_reg, 816 Register receiver_reg,
816 Register elements_reg, 817 Register elements_reg,
817 Register scratch1, 818 Register scratch1,
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1379 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1379 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1380 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1380 #else 1381 #else
1381 #define ACCESS_MASM(masm) masm-> 1382 #define ACCESS_MASM(masm) masm->
1382 #endif 1383 #endif
1383 1384
1384 1385
1385 } } // namespace v8::internal 1386 } } // namespace v8::internal
1386 1387
1387 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1388 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698