OLD | NEW |
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 __ pop(edi); | 109 __ pop(edi); |
110 __ pop(esi); | 110 __ pop(esi); |
111 __ pop(edx); | 111 __ pop(edx); |
112 __ pop(ecx); | 112 __ pop(ecx); |
113 __ pop(ebx); | 113 __ pop(ebx); |
114 | 114 |
115 __ ret(kDoubleSize); | 115 __ ret(kDoubleSize); |
116 | 116 |
117 CodeDesc desc; | 117 CodeDesc desc; |
118 assm.GetCode(&desc); | 118 assm.GetCode(isolate, &desc); |
119 return reinterpret_cast<ConvertDToIFunc>( | 119 return reinterpret_cast<ConvertDToIFunc>( |
120 reinterpret_cast<intptr_t>(buffer)); | 120 reinterpret_cast<intptr_t>(buffer)); |
121 } | 121 } |
122 | 122 |
123 #undef __ | 123 #undef __ |
124 | 124 |
125 | 125 |
126 static Isolate* GetIsolateFrom(LocalContext* context) { | 126 static Isolate* GetIsolateFrom(LocalContext* context) { |
127 return reinterpret_cast<Isolate*>((*context)->GetIsolate()); | 127 return reinterpret_cast<Isolate*>((*context)->GetIsolate()); |
128 } | 128 } |
(...skipping 17 matching lines...) Expand all Loading... |
146 | 146 |
147 for (size_t s = 0; s < sizeof(source_registers) / sizeof(Register); s++) { | 147 for (size_t s = 0; s < sizeof(source_registers) / sizeof(Register); s++) { |
148 for (size_t d = 0; d < sizeof(dest_registers) / sizeof(Register); d++) { | 148 for (size_t d = 0; d < sizeof(dest_registers) / sizeof(Register); d++) { |
149 RunAllTruncationTests( | 149 RunAllTruncationTests( |
150 MakeConvertDToIFuncTrampoline(isolate, | 150 MakeConvertDToIFuncTrampoline(isolate, |
151 source_registers[s], | 151 source_registers[s], |
152 dest_registers[d])); | 152 dest_registers[d])); |
153 } | 153 } |
154 } | 154 } |
155 } | 155 } |
OLD | NEW |