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

Side by Side Diff: test/cctest/test-heap.cc

Issue 207823003: Rename A64 port to ARM64 port (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: retry Created 6 years, 9 months 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 | « test/cctest/test-hashing.cc ('k') | test/cctest/test-javascript-a64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 value = heap->NumberFromInt32(Smi::kMinValue)->ToObjectChecked(); 183 value = heap->NumberFromInt32(Smi::kMinValue)->ToObjectChecked();
184 CHECK(value->IsSmi()); 184 CHECK(value->IsSmi());
185 CHECK(value->IsNumber()); 185 CHECK(value->IsNumber());
186 CHECK_EQ(Smi::kMinValue, Smi::cast(value)->value()); 186 CHECK_EQ(Smi::kMinValue, Smi::cast(value)->value());
187 187
188 value = heap->NumberFromInt32(Smi::kMaxValue)->ToObjectChecked(); 188 value = heap->NumberFromInt32(Smi::kMaxValue)->ToObjectChecked();
189 CHECK(value->IsSmi()); 189 CHECK(value->IsSmi());
190 CHECK(value->IsNumber()); 190 CHECK(value->IsNumber());
191 CHECK_EQ(Smi::kMaxValue, Smi::cast(value)->value()); 191 CHECK_EQ(Smi::kMaxValue, Smi::cast(value)->value());
192 192
193 #if !defined(V8_TARGET_ARCH_X64) && !defined(V8_TARGET_ARCH_A64) 193 #if !defined(V8_TARGET_ARCH_X64) && !defined(V8_TARGET_ARCH_ARM64)
194 // TODO(lrn): We need a NumberFromIntptr function in order to test this. 194 // TODO(lrn): We need a NumberFromIntptr function in order to test this.
195 value = heap->NumberFromInt32(Smi::kMinValue - 1)->ToObjectChecked(); 195 value = heap->NumberFromInt32(Smi::kMinValue - 1)->ToObjectChecked();
196 CHECK(value->IsHeapNumber()); 196 CHECK(value->IsHeapNumber());
197 CHECK(value->IsNumber()); 197 CHECK(value->IsNumber());
198 CHECK_EQ(static_cast<double>(Smi::kMinValue - 1), value->Number()); 198 CHECK_EQ(static_cast<double>(Smi::kMinValue - 1), value->Number());
199 #endif 199 #endif
200 200
201 MaybeObject* maybe_value = 201 MaybeObject* maybe_value =
202 heap->NumberFromUint32(static_cast<uint32_t>(Smi::kMaxValue) + 1); 202 heap->NumberFromUint32(static_cast<uint32_t>(Smi::kMaxValue) + 1);
203 value = maybe_value->ToObjectChecked(); 203 value = maybe_value->ToObjectChecked();
(...skipping 3583 matching lines...) Expand 10 before | Expand all | Expand 10 after
3787 v8::Handle<v8::Object> global = CcTest::global(); 3787 v8::Handle<v8::Object> global = CcTest::global();
3788 v8::Handle<v8::Function> g = 3788 v8::Handle<v8::Function> g =
3789 v8::Handle<v8::Function>::Cast(global->Get(v8_str("crash"))); 3789 v8::Handle<v8::Function>::Cast(global->Get(v8_str("crash")));
3790 v8::Handle<v8::Value> args1[] = { v8_num(1) }; 3790 v8::Handle<v8::Value> args1[] = { v8_num(1) };
3791 heap->DisableInlineAllocation(); 3791 heap->DisableInlineAllocation();
3792 heap->set_allocation_timeout(1); 3792 heap->set_allocation_timeout(1);
3793 g->Call(global, 1, args1); 3793 g->Call(global, 1, args1);
3794 heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask); 3794 heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
3795 } 3795 }
3796 #endif 3796 #endif
OLDNEW
« no previous file with comments | « test/cctest/test-hashing.cc ('k') | test/cctest/test-javascript-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698