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

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

Issue 23526072: MIPS: Move NumberToStringStub::GenerateLookupNumberStringCache to the MacroAssembler. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 7 years, 3 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
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/macro-assembler-mips.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 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 // HeapNumber utilities. 1420 // HeapNumber utilities.
1421 1421
1422 void JumpIfNotHeapNumber(Register object, 1422 void JumpIfNotHeapNumber(Register object,
1423 Register heap_number_map, 1423 Register heap_number_map,
1424 Register scratch, 1424 Register scratch,
1425 Label* on_not_heap_number); 1425 Label* on_not_heap_number);
1426 1426
1427 // ------------------------------------------------------------------------- 1427 // -------------------------------------------------------------------------
1428 // String utilities. 1428 // String utilities.
1429 1429
1430 // Generate code to do a lookup in the number string cache. If the number in
1431 // the register object is found in the cache the generated code falls through
1432 // with the result in the result register. The object and the result register
1433 // can be the same. If the number is not found in the cache the code jumps to
1434 // the label not_found with only the content of register object unchanged.
1435 void LookupNumberStringCache(Register object,
1436 Register result,
1437 Register scratch1,
1438 Register scratch2,
1439 Register scratch3,
1440 Label* not_found);
1441
1430 // Checks if both instance types are sequential ASCII strings and jumps to 1442 // Checks if both instance types are sequential ASCII strings and jumps to
1431 // label if either is not. 1443 // label if either is not.
1432 void JumpIfBothInstanceTypesAreNotSequentialAscii( 1444 void JumpIfBothInstanceTypesAreNotSequentialAscii(
1433 Register first_object_instance_type, 1445 Register first_object_instance_type,
1434 Register second_object_instance_type, 1446 Register second_object_instance_type,
1435 Register scratch1, 1447 Register scratch1,
1436 Register scratch2, 1448 Register scratch2,
1437 Label* failure); 1449 Label* failure);
1438 1450
1439 // Check if instance type is sequential ASCII string and jump to label if 1451 // Check if instance type is sequential ASCII string and jump to label if
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1623 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1635 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1624 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1636 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1625 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1637 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1626 #else 1638 #else
1627 #define ACCESS_MASM(masm) masm-> 1639 #define ACCESS_MASM(masm) masm->
1628 #endif 1640 #endif
1629 1641
1630 } } // namespace v8::internal 1642 } } // namespace v8::internal
1631 1643
1632 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1644 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698