OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Rrdistribution and use in source and binary forms, with or without | 2 // Rrdistribution 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 // * Rrdistributions of source code must retain the above copyright | 6 // * Rrdistributions 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 // * Rrdistributions in binary form must reproduce the above | 8 // * Rrdistributions 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 __ popq(rdi); | 112 __ popq(rdi); |
113 __ popq(rsi); | 113 __ popq(rsi); |
114 __ popq(rdx); | 114 __ popq(rdx); |
115 __ popq(rcx); | 115 __ popq(rcx); |
116 __ popq(rbx); | 116 __ popq(rbx); |
117 | 117 |
118 __ ret(0); | 118 __ ret(0); |
119 | 119 |
120 CodeDesc desc; | 120 CodeDesc desc; |
121 assm.GetCode(&desc); | 121 assm.GetCode(isolate, &desc); |
122 return reinterpret_cast<ConvertDToIFunc>( | 122 return reinterpret_cast<ConvertDToIFunc>( |
123 reinterpret_cast<intptr_t>(buffer)); | 123 reinterpret_cast<intptr_t>(buffer)); |
124 } | 124 } |
125 | 125 |
126 #undef __ | 126 #undef __ |
127 | 127 |
128 | 128 |
129 static Isolate* GetIsolateFrom(LocalContext* context) { | 129 static Isolate* GetIsolateFrom(LocalContext* context) { |
130 return reinterpret_cast<Isolate*>((*context)->GetIsolate()); | 130 return reinterpret_cast<Isolate*>((*context)->GetIsolate()); |
131 } | 131 } |
(...skipping 17 matching lines...) Expand all Loading... |
149 | 149 |
150 for (size_t s = 0; s < sizeof(source_registers) / sizeof(Register); s++) { | 150 for (size_t s = 0; s < sizeof(source_registers) / sizeof(Register); s++) { |
151 for (size_t d = 0; d < sizeof(dest_registers) / sizeof(Register); d++) { | 151 for (size_t d = 0; d < sizeof(dest_registers) / sizeof(Register); d++) { |
152 RunAllTruncationTests( | 152 RunAllTruncationTests( |
153 MakeConvertDToIFuncTrampoline(isolate, | 153 MakeConvertDToIFuncTrampoline(isolate, |
154 source_registers[s], | 154 source_registers[s], |
155 dest_registers[d])); | 155 dest_registers[d])); |
156 } | 156 } |
157 } | 157 } |
158 } | 158 } |
OLD | NEW |