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

Side by Side Diff: test/cctest/test-code-stubs-arm64.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-arm.cc ('k') | test/cctest/test-code-stubs-ia32.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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate, 47 ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate,
48 Register source_reg, 48 Register source_reg,
49 Register destination_reg, 49 Register destination_reg,
50 bool inline_fastpath) { 50 bool inline_fastpath) {
51 // Allocate an executable page of memory. 51 // Allocate an executable page of memory.
52 size_t actual_size = 4 * Assembler::kMinimalBufferSize; 52 size_t actual_size = 4 * Assembler::kMinimalBufferSize;
53 byte* buffer = static_cast<byte*>( 53 byte* buffer = static_cast<byte*>(
54 v8::base::OS::Allocate(actual_size, &actual_size, true)); 54 v8::base::OS::Allocate(actual_size, &actual_size, true));
55 CHECK(buffer); 55 CHECK(buffer);
56 HandleScope handles(isolate); 56 HandleScope handles(isolate);
57 MacroAssembler masm(isolate, buffer, static_cast<int>(actual_size)); 57 MacroAssembler masm(isolate, buffer, static_cast<int>(actual_size),
58 v8::internal::CodeObjectRequired::kYes);
58 DoubleToIStub stub(isolate, source_reg, destination_reg, 0, true, 59 DoubleToIStub stub(isolate, source_reg, destination_reg, 0, true,
59 inline_fastpath); 60 inline_fastpath);
60 61
61 byte* start = stub.GetCode()->instruction_start(); 62 byte* start = stub.GetCode()->instruction_start();
62 Label done; 63 Label done;
63 64
64 __ SetStackPointer(csp); 65 __ SetStackPointer(csp);
65 __ PushCalleeSavedRegisters(); 66 __ PushCalleeSavedRegisters();
66 __ Mov(jssp, csp); 67 __ Mov(jssp, csp);
67 __ SetStackPointer(jssp); 68 __ SetStackPointer(jssp);
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 false)); 188 false));
188 RunAllTruncationTests( 189 RunAllTruncationTests(
189 RunGeneratedCodeCallWrapper, 190 RunGeneratedCodeCallWrapper,
190 MakeConvertDToIFuncTrampoline(isolate, 191 MakeConvertDToIFuncTrampoline(isolate,
191 source_registers[s], 192 source_registers[s],
192 dest_registers[d], 193 dest_registers[d],
193 true)); 194 true));
194 } 195 }
195 } 196 }
196 } 197 }
OLDNEW
« no previous file with comments | « test/cctest/test-code-stubs-arm.cc ('k') | test/cctest/test-code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698