OLD | NEW |
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 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1116 | 1116 |
1117 // Picks out an array index from the hash field. | 1117 // Picks out an array index from the hash field. |
1118 // Register use: | 1118 // Register use: |
1119 // hash - holds the index's hash. Clobbered. | 1119 // hash - holds the index's hash. Clobbered. |
1120 // index - holds the overwritten index on exit. | 1120 // index - holds the overwritten index on exit. |
1121 void IndexFromHash(Register hash, Register index); | 1121 void IndexFromHash(Register hash, Register index); |
1122 | 1122 |
1123 // Find the function context up the context chain. | 1123 // Find the function context up the context chain. |
1124 void LoadContext(Register dst, int context_chain_length); | 1124 void LoadContext(Register dst, int context_chain_length); |
1125 | 1125 |
1126 // Load the initial map for new Arrays of a given type. | 1126 // Conditionally load the cached Array transitioned map of type |
1127 void LoadGlobalInitialConstructedArrayMap(Register function_in, | 1127 // transitioned_kind from the global context if the map in register |
1128 Register scratch, | 1128 // map_in_out is the cached Array map in the global context of |
1129 Register map_out); | 1129 // expected_kind. |
| 1130 void LoadTransitionedArrayMapConditional( |
| 1131 ElementsKind expected_kind, |
| 1132 ElementsKind transitioned_kind, |
| 1133 Register map_in_out, |
| 1134 Register scratch, |
| 1135 Label* no_map_match); |
| 1136 |
| 1137 // Load the initial map for a new Arrays from a JSFunction. |
| 1138 void LoadInitialArrayMap(Register function_in, |
| 1139 Register scratch, |
| 1140 Register map_out); |
1130 | 1141 |
1131 // Load the global function with the given index. | 1142 // Load the global function with the given index. |
1132 void LoadGlobalFunction(int index, Register function); | 1143 void LoadGlobalFunction(int index, Register function); |
1133 | 1144 |
1134 // Load the initial map from the global function. The registers | 1145 // Load the initial map from the global function. The registers |
1135 // function and map can be the same. | 1146 // function and map can be the same. |
1136 void LoadGlobalFunctionInitialMap(Register function, Register map); | 1147 void LoadGlobalFunctionInitialMap(Register function, Register map); |
1137 | 1148 |
1138 // --------------------------------------------------------------------------- | 1149 // --------------------------------------------------------------------------- |
1139 // Runtime calls | 1150 // Runtime calls |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1454 masm->popfd(); \ | 1465 masm->popfd(); \ |
1455 } \ | 1466 } \ |
1456 masm-> | 1467 masm-> |
1457 #else | 1468 #else |
1458 #define ACCESS_MASM(masm) masm-> | 1469 #define ACCESS_MASM(masm) masm-> |
1459 #endif | 1470 #endif |
1460 | 1471 |
1461 } } // namespace v8::internal | 1472 } } // namespace v8::internal |
1462 | 1473 |
1463 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1474 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |