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

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

Issue 6894003: Better support for 'polymorphic' JS and external arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: final review feedback Created 9 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/ic-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 // Check if the map of an object is equal to a specified map (either 571 // Check if the map of an object is equal to a specified map (either
572 // given directly or as an index into the root list) and branch to 572 // given directly or as an index into the root list) and branch to
573 // label if not. Skip the smi check if not required (object is known 573 // label if not. Skip the smi check if not required (object is known
574 // to be a heap object) 574 // to be a heap object)
575 void CheckMap(Register obj, 575 void CheckMap(Register obj,
576 Register scratch, 576 Register scratch,
577 Handle<Map> map, 577 Handle<Map> map,
578 Label* fail, 578 Label* fail,
579 SmiCheckType smi_check_type); 579 SmiCheckType smi_check_type);
580 580
581
581 void CheckMap(Register obj, 582 void CheckMap(Register obj,
582 Register scratch, 583 Register scratch,
583 Heap::RootListIndex index, 584 Heap::RootListIndex index,
584 Label* fail, 585 Label* fail,
585 SmiCheckType smi_check_type); 586 SmiCheckType smi_check_type);
586 587
587 588
589 // Check if the map of an object is equal to a specified map and branch to a
590 // specified target if equal. Skip the smi check if not required (object is
591 // known to be a heap object)
592 void DispatchMap(Register obj,
593 Register scratch,
594 Handle<Map> map,
595 Handle<Code> success,
596 SmiCheckType smi_check_type);
597
598
588 // Compare the object in a register to a value from the root list. 599 // Compare the object in a register to a value from the root list.
589 // Uses the ip register as scratch. 600 // Uses the ip register as scratch.
590 void CompareRoot(Register obj, Heap::RootListIndex index); 601 void CompareRoot(Register obj, Heap::RootListIndex index);
591 602
592 603
593 // Load and check the instance type of an object for being a string. 604 // Load and check the instance type of an object for being a string.
594 // Loads the type into the second argument register. 605 // Loads the type into the second argument register.
595 // Returns a condition that will be enabled if the object was a string. 606 // Returns a condition that will be enabled if the object was a string.
596 Condition IsObjectStringType(Register obj, 607 Condition IsObjectStringType(Register obj,
597 Register type) { 608 Register type) {
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1106 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1096 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1107 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1097 #else 1108 #else
1098 #define ACCESS_MASM(masm) masm-> 1109 #define ACCESS_MASM(masm) masm->
1099 #endif 1110 #endif
1100 1111
1101 1112
1102 } } // namespace v8::internal 1113 } } // namespace v8::internal
1103 1114
1104 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1115 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698