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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate, | 49 ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate, |
50 Register source_reg, | 50 Register source_reg, |
51 Register destination_reg, | 51 Register destination_reg, |
52 bool inline_fastpath) { | 52 bool inline_fastpath) { |
53 // Allocate an executable page of memory. | 53 // Allocate an executable page of memory. |
54 size_t actual_size; | 54 size_t actual_size; |
55 byte* buffer = static_cast<byte*>(v8::base::OS::Allocate( | 55 byte* buffer = static_cast<byte*>(v8::base::OS::Allocate( |
56 Assembler::kMinimalBufferSize, &actual_size, true)); | 56 Assembler::kMinimalBufferSize, &actual_size, true)); |
57 CHECK(buffer); | 57 CHECK(buffer); |
58 HandleScope handles(isolate); | 58 HandleScope handles(isolate); |
59 MacroAssembler masm(isolate, buffer, static_cast<int>(actual_size)); | 59 MacroAssembler masm(isolate, buffer, static_cast<int>(actual_size), |
| 60 v8::internal::CodeObjectRequired::kYes); |
60 DoubleToIStub stub(isolate, source_reg, destination_reg, 0, true, | 61 DoubleToIStub stub(isolate, source_reg, destination_reg, 0, true, |
61 inline_fastpath); | 62 inline_fastpath); |
62 | 63 |
63 byte* start = stub.GetCode()->instruction_start(); | 64 byte* start = stub.GetCode()->instruction_start(); |
64 Label done; | 65 Label done; |
65 | 66 |
66 // Save callee save registers. | 67 // Save callee save registers. |
67 __ MultiPush(kCalleeSaved | ra.bit()); | 68 __ MultiPush(kCalleeSaved | ra.bit()); |
68 | 69 |
69 // Save callee-saved FPU registers. | 70 // Save callee-saved FPU registers. |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 false)); | 197 false)); |
197 RunAllTruncationTests( | 198 RunAllTruncationTests( |
198 RunGeneratedCodeCallWrapper, | 199 RunGeneratedCodeCallWrapper, |
199 MakeConvertDToIFuncTrampoline(isolate, | 200 MakeConvertDToIFuncTrampoline(isolate, |
200 source_registers[s], | 201 source_registers[s], |
201 dest_registers[d], | 202 dest_registers[d], |
202 true)); | 203 true)); |
203 } | 204 } |
204 } | 205 } |
205 } | 206 } |
OLD | NEW |