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

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

Issue 141713009: A64: Port LSeqStringSetChar optimizations from r16707 and r17521. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1468 // Picks out an array index from the hash field. 1468 // Picks out an array index from the hash field.
1469 // Register use: 1469 // Register use:
1470 // hash - holds the index's hash. Clobbered. 1470 // hash - holds the index's hash. Clobbered.
1471 // index - holds the overwritten index on exit. 1471 // index - holds the overwritten index on exit.
1472 void IndexFromHash(Register hash, Register index); 1472 void IndexFromHash(Register hash, Register index);
1473 1473
1474 // --------------------------------------------------------------------------- 1474 // ---------------------------------------------------------------------------
1475 // Inline caching support. 1475 // Inline caching support.
1476 1476
1477 void EmitSeqStringSetCharCheck(Register string, 1477 void EmitSeqStringSetCharCheck(Register string,
1478 Register index, // Smi 1478 Register index,
1479 bool index_is_smi,
baptiste.afsa1 2014/02/06 15:48:13 Usually v8 functions which use that kind of trick
ulan 2014/02/06 16:06:14 Done.
1480 Register scratch,
1479 uint32_t encoding_mask); 1481 uint32_t encoding_mask);
1480 1482
1481 // Generate code for checking access rights - used for security checks 1483 // Generate code for checking access rights - used for security checks
1482 // on access to global objects across environments. The holder register 1484 // on access to global objects across environments. The holder register
1483 // is left untouched, whereas both scratch registers are clobbered. 1485 // is left untouched, whereas both scratch registers are clobbered.
1484 void CheckAccessGlobalProxy(Register holder_reg, 1486 void CheckAccessGlobalProxy(Register holder_reg,
1485 Register scratch, 1487 Register scratch,
1486 Label* miss); 1488 Label* miss);
1487 1489
1488 // Hash the interger value in 'key' register. 1490 // Hash the interger value in 'key' register.
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
2197 #error "Unsupported option" 2199 #error "Unsupported option"
2198 #define CODE_COVERAGE_STRINGIFY(x) #x 2200 #define CODE_COVERAGE_STRINGIFY(x) #x
2199 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 2201 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
2200 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 2202 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
2201 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 2203 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
2202 #else 2204 #else
2203 #define ACCESS_MASM(masm) masm-> 2205 #define ACCESS_MASM(masm) masm->
2204 #endif 2206 #endif
2205 2207
2206 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ 2208 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698