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

Side by Side Diff: test/cctest/test-code-stubs-mips.cc

Issue 1476763002: Make whether or not a Code object should be created by masm explicit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years 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
OLDNEW
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
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), true);
60 DoubleToIStub stub(isolate, source_reg, destination_reg, 0, true, 60 DoubleToIStub stub(isolate, source_reg, destination_reg, 0, true,
61 inline_fastpath); 61 inline_fastpath);
62 62
63 byte* start = stub.GetCode()->instruction_start(); 63 byte* start = stub.GetCode()->instruction_start();
64 Label done; 64 Label done;
65 65
66 // Save callee save registers. 66 // Save callee save registers.
67 __ MultiPush(kCalleeSaved | ra.bit()); 67 __ MultiPush(kCalleeSaved | ra.bit());
68 68
69 // Save callee-saved FPU registers. 69 // Save callee-saved FPU registers.
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 false)); 196 false));
197 RunAllTruncationTests( 197 RunAllTruncationTests(
198 RunGeneratedCodeCallWrapper, 198 RunGeneratedCodeCallWrapper,
199 MakeConvertDToIFuncTrampoline(isolate, 199 MakeConvertDToIFuncTrampoline(isolate,
200 source_registers[s], 200 source_registers[s],
201 dest_registers[d], 201 dest_registers[d],
202 true)); 202 true));
203 } 203 }
204 } 204 }
205 } 205 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698