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

Side by Side Diff: test/cctest/test-code-stubs-mips64.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: enum class FTW 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
« no previous file with comments | « test/cctest/test-code-stubs-mips.cc ('k') | test/cctest/test-code-stubs-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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),
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 false)); 196 false));
196 RunAllTruncationTests( 197 RunAllTruncationTests(
197 RunGeneratedCodeCallWrapper, 198 RunGeneratedCodeCallWrapper,
198 MakeConvertDToIFuncTrampoline(isolate, 199 MakeConvertDToIFuncTrampoline(isolate,
199 source_registers[s], 200 source_registers[s],
200 dest_registers[d], 201 dest_registers[d],
201 true)); 202 true));
202 } 203 }
203 } 204 }
204 } 205 }
OLDNEW
« no previous file with comments | « test/cctest/test-code-stubs-mips.cc ('k') | test/cctest/test-code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698