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

Side by Side Diff: test/cctest/test-macro-assembler-x64.cc

Issue 69413002: Fix compilation with GCC 4.8 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: only use __attribute__ when supported Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/checks.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution 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 // * Redistributions of source code must retain the above copyright 6 // * Redistributions 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 // * Redistributions in binary form must reproduce the above 8 // * Redistributions 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 2309 matching lines...) Expand 10 before | Expand all | Expand 10 after
2320 CodeDesc desc; 2320 CodeDesc desc;
2321 masm->GetCode(&desc); 2321 masm->GetCode(&desc);
2322 // Call the function from C++. 2322 // Call the function from C++.
2323 int result = FUNCTION_CAST<F0>(buffer)(); 2323 int result = FUNCTION_CAST<F0>(buffer)();
2324 CHECK_EQ(0, result); 2324 CHECK_EQ(0, result);
2325 } 2325 }
2326 2326
2327 2327
2328 TEST(OperandOffset) { 2328 TEST(OperandOffset) {
2329 i::V8::Initialize(NULL); 2329 i::V8::Initialize(NULL);
2330 int data[256]; 2330 uint32_t data[256];
2331 for (int i = 0; i < 256; i++) { data[i] = i * 0x01010101; } 2331 for (uint32_t i = 0; i < 256; i++) { data[i] = i * 0x01010101; }
2332 2332
2333 // Allocate an executable page of memory. 2333 // Allocate an executable page of memory.
2334 size_t actual_size; 2334 size_t actual_size;
2335 byte* buffer = 2335 byte* buffer =
2336 static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize * 2, 2336 static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize * 2,
2337 &actual_size, 2337 &actual_size,
2338 true)); 2338 true));
2339 CHECK(buffer); 2339 CHECK(buffer);
2340 Isolate* isolate = CcTest::i_isolate(); 2340 Isolate* isolate = CcTest::i_isolate();
2341 HandleScope handles(isolate); 2341 HandleScope handles(isolate);
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
2827 2827
2828 CodeDesc desc; 2828 CodeDesc desc;
2829 masm->GetCode(&desc); 2829 masm->GetCode(&desc);
2830 // Call the function from C++. 2830 // Call the function from C++.
2831 int result = FUNCTION_CAST<F0>(buffer)(); 2831 int result = FUNCTION_CAST<F0>(buffer)();
2832 CHECK_EQ(0, result); 2832 CHECK_EQ(0, result);
2833 } 2833 }
2834 2834
2835 2835
2836 #undef __ 2836 #undef __
OLDNEW
« no previous file with comments | « src/checks.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698